@teamix-evo/mcp 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Teamix Evo Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,105 @@
1
+ # @teamix-evo/mcp
2
+
3
+ > [Model Context Protocol](https://modelcontextprotocol.io) server for teamix-evo. **Single bin / single process / multiple tool groups.** Cursor, Claude Code, Cline, Aider, and any future MCP-aware tool can query teamix-evo's component catalog (and, in future milestones, design tokens / ADRs / scenario packs) **as a service** instead of grepping 56KB of `manifest.json`.
4
+ >
5
+ > Renamed from `@teamix-evo/registry-mcp` per [ADR 0011](../../docs/adr/0011-mcp-single-package-multi-group.md). Tool names within the registry group (`list_components` / `get_component_meta` / `find_components`) are unchanged.
6
+
7
+ ## Why
8
+
9
+ [ADR 0009](../../docs/adr/0009-registry-mcp-protocol-layer.md) (registry MCP rationale) and [ADR 0011](../../docs/adr/0011-mcp-single-package-multi-group.md) (single-package / multi-group consolidation) together explain the design:
10
+
11
+ - **Static `manifest.json` rots**: every consumer pulls a snapshot, drifts from the source.
12
+ - **AI editors handle 56KB poorly**: chunking + RAG is lossy and slow.
13
+ - **MCP server is single-source**: directly reads upstream `manifest.json` + `*.meta.md`, returns structured data on demand.
14
+ - **One process, many groups**: registry today; design / adr / scenario in v0.6-v0.8 — without spawning extra processes or `.mcp.json` entries.
15
+
16
+ ## Tool groups
17
+
18
+ | Group | Status | Tools | Naming |
19
+ | --- | --- | --- | --- |
20
+ | **registry** | ✅ shipping | `list_components` / `get_component_meta` / `find_components` | unprefixed (historical exception, see ADR 0011 §5) |
21
+ | **design** | ✅ shipping | `design_list_principles` / `design_get_tokens` / `design_list_patterns` / `design_get_pattern` / `design_get_brand` | `<group>_<verb>_<noun>` |
22
+ | **skills** | ✅ shipping | `skills_list` / `skills_get` / `skills_find` | `<group>_<verb>_<noun>` |
23
+ | **adr** | ✅ shipping | `adr_list` / `adr_get` / `adr_find` | `<group>_<verb>_<noun>` |
24
+ | **scenario** | ⏸ v0.8 | `scenario_list` / `scenario_get_pack` | `<group>_<verb>_<noun>` |
25
+
26
+ ## Currently shipping — registry group tools
27
+
28
+ | Tool | Input | Output |
29
+ | --- | --- | --- |
30
+ | `list_components` | `status?: 'stable' \| 'experimental' \| 'deprecated'` | Array of `{ id, name, description, status, registryDependencies }` |
31
+ | `get_component_meta` | `id: string` | Full `UiEntry` record + parsed `meta.md` content (frontmatter + body) |
32
+ | `find_components` | `query: string`, `limit?: number` | Substring match over `id` / `name` / `description` (semantic search → v0.7) |
33
+
34
+ ## Install (consumer side)
35
+
36
+ ```bash
37
+ # Project-local (recommended)
38
+ pnpm add -D @teamix-evo/mcp @teamix-evo/ui
39
+ ```
40
+
41
+ Then wire into your IDE's MCP config:
42
+
43
+ ### Cursor (`.cursor/mcp.json`)
44
+
45
+ ```json
46
+ {
47
+ "mcpServers": {
48
+ "teamix-evo": {
49
+ "command": "npx",
50
+ "args": ["-y", "@teamix-evo/mcp"],
51
+ "env": {
52
+ "TEAMIX_EVO_UI_MANIFEST": "${workspaceFolder}/node_modules/@teamix-evo/ui/manifest.json"
53
+ }
54
+ }
55
+ }
56
+ }
57
+ ```
58
+
59
+ ### Claude Code (`.claude/mcp_servers.json`)
60
+
61
+ ```json
62
+ {
63
+ "teamix-evo": {
64
+ "type": "stdio",
65
+ "command": "npx",
66
+ "args": ["-y", "@teamix-evo/mcp"]
67
+ }
68
+ }
69
+ ```
70
+
71
+ ## Manifest resolution
72
+
73
+ The server resolves `@teamix-evo/ui/manifest.json` in this order:
74
+
75
+ 1. `TEAMIX_EVO_UI_MANIFEST` env var (absolute path)
76
+ 2. `<cwd>/node_modules/@teamix-evo/ui/manifest.json`
77
+ 3. Walking up from `<cwd>` until a `node_modules/@teamix-evo/ui/manifest.json` is found
78
+ 4. Fail with a clear error message
79
+
80
+ Meta documents (`<id>.meta.md`) are resolved relative to the manifest's own root.
81
+
82
+ ## Run locally (debug)
83
+
84
+ ```bash
85
+ # From this package directory:
86
+ pnpm build
87
+ pnpm start
88
+
89
+ # Or via the bin shortcut after publishing:
90
+ npx @teamix-evo/mcp
91
+ ```
92
+
93
+ The server speaks **stdio MCP** by default. To test interactively, use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector):
94
+
95
+ ```bash
96
+ npx @modelcontextprotocol/inspector node ./dist/cli.js
97
+ ```
98
+
99
+ ## Adding a new tool group (for maintainers)
100
+
101
+ 1. Create `src/groups/<name>.ts` exporting `createXxxGroup(opts): ToolGroup`
102
+ 2. Tools must use `<group>_<verb>_<noun>` naming (registry is the historical exception)
103
+ 3. Register the group in `src/server.ts` `createServer()`
104
+ 4. Add tests under `tests/groups/<name>/`
105
+ 5. Cross-group tool name uniqueness is enforced at startup
package/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+
2
+ export { }