@treeui/mcp
v0.1.1
Published
Model Context Protocol server and AI catalog for TreeUI.
Downloads
30
Readme
@treeui/mcp
TreeUI ships a local Model Context Protocol server so coding agents can:
- search the TreeUI component catalog
- retrieve setup guidance for consumers
- compare similar components such as
TSelectvsTCombobox - read normalized machine-oriented metadata generated from
docs/ai
What it serves
- a generated catalog built from
docs/ai/*.yaml - MCP resources for catalog, setup, selection, recipes, and per-component metadata
- MCP tools for search, recommendation, setup lookup, and recipe search
Local usage in this repository
pnpm --filter @treeui/mcp startClaude Code can also pick it up automatically through the repository .mcp.json.
Build
pnpm --filter @treeui/mcp buildThat command regenerates:
docs/ai/treeui.catalog.jsonpackages/mcp/src/generated/treeui.catalog.json
Tests
pnpm --filter @treeui/mcp testThe MCP integration test uses the SDK in-memory transport to validate the protocol surface itself: tool listing, resource listing, tool calls, and resource reads.
For release validation, also run a quick stdio smoke test against the compiled
CLI with pnpm --filter @treeui/mcp build followed by node packages/mcp/dist/cli.js.
Published package usage
Once published, consumers can add it as a stdio MCP server, for example:
claude mcp add --transport stdio treeui -- npx -y @treeui/mcpExact commands differ by client, but the package is intended to be usable as a local stdio server across coding agents that support MCP.
