npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aui-mcp-server

v0.0.6

Published

AUI-X: generate MCP assets from aui-x-catalog.json

Readme

aui-mcp-server

Automatically generates the AUI-X Catalog and MCP server assets during an MF Remote build.

  • Input: dist/mf-stats.json + dist/@mf-types/compiled-types/*.d.ts
  • Default output:
    • dist/aui-x-catalog.json
    • dist/mcp/manifest.json
    • dist/mcp/server.mjs

Note: the generated MCP server only exposes component metadata (including x-loader). Actual MF import/rendering should be done by the AUI-X runtime on the client side.

CLI

Install in an MF Remote project:

pnpm add -D aui-mcp-server

Generate aui-x-catalog.json (from mf-stats.json):

pnpm exec aui-mcp catalog ./dist/mf-stats.json -o ./aui-x-catalog.json

Generate MCP assets (from aui-x-catalog.json):

pnpm exec aui-mcp generate --catalog ./aui-x-catalog.json --outDir dist

Serve locally (SSE example):

pnpm exec aui-mcp serve \
  --manifest ./dist/mcp/manifest.json \
  --transport sse \
  --port 8001 \
  --watch

Build Plugin (recommended)

Rspack / Webpack

Place this plugin after the MF plugin (so mf-stats.json already exists in compilation assets).

import { AuiMcpRspackPlugin } from 'aui-mcp-server/rspack';

export default {
  plugins: [
    // ModuleFederationPlugin / pluginModuleFederation(...) etc.
    new AuiMcpRspackPlugin({
      transport: 'sse',
      port: 8001,
    }),
  ],
};

In dev mode (watch or mode=development), it automatically starts the MCP server. Generation failures are reported as warnings and will not fail the build.

Rsbuild

import { defineConfig } from '@rsbuild/core';
import { auiMcpRsbuildPlugin } from 'aui-mcp-server/rsbuild';

export default defineConfig({
  plugins: [
    auiMcpRsbuildPlugin({
      transport: 'sse',
      port: 8001,
    }),
  ],
});

Verify

npx @modelcontextprotocol/inspector node dist/mcp/server.mjs

React SDK Entry: aui-mcp-server/react

Install dependencies (example):

pnpm add aui-mcp-server @a2ui/react react react-dom @module-federation/enhanced

In a React host app:

import {
  performHandshake,
  createMFRegistry,
  syncRegistryFromCatalog,
  registerMFComponent,
  useA2UIStream,
  createLogger,
  useLogger,
  type XLoaderConfig,
  type ChatMessage,
  type A2UIStreamOptions,
  type CreateLoggerOptions,
} from 'aui-mcp-server/react';

Core capabilities:

  • performHandshake(agentUrl): fetches A2A AgentCard, parses inlineCatalogs, and calls syncRegistryFromCatalog to register x-loader components as Module Federation remotes.
  • createMFRegistry(options?): creates/returns a ComponentRegistry instance. Shares react / react-dom / @a2ui/react as singletons by default; supports options.shared for extra shared deps and options.exposeGlobal to expose window.__AUI_REGISTRY__.
  • syncRegistryFromCatalog(registry, catalog): registers all x-loader entries from a Catalog into a registry.
  • registerMFComponent(registry, componentType, xLoader): registers a single MF component on demand, falling back to an inline ErrorPlaceholder on failure.
  • useA2UIStream(options?): wraps A2A JSON-RPC 2.0 + SSE streaming. Returns { messages, isLoading, sendMessage, processLocalMessages }. options.agentUrl defaults to /api and supports defaultIsActionPayload mode.
  • createLogger(options?) / useLogger(options?): unified frontend logging + remote reporting. options.endpoint defaults to /api/log; options.hijackConsole controls whether console.* is hijacked.

All SDK types (e.g. XLoaderConfig, ChatMessage, A2UIStreamOptions, CreateLoggerOptions) are also exported from aui-mcp-server/react to keep host apps fully type-safe.