@kazee-ds/mcp 0.0.0-stage → 0.1.2
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/README.md +37 -2
- package/bin/kazee-mcp.mjs +25 -0
- package/dist/catalog.json +27706 -0
- package/package.json +47 -3
- package/src/catalog.mjs +66 -0
- package/src/guides.mjs +58 -0
- package/src/server.mjs +210 -0
package/README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Kazee Design System MCP
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Read-only, offline stdio tools for the public React and Vue APIs. No Storybook process is required. The server never installs packages, executes commands, scans a project or reads registry credentials.
|
|
4
|
+
|
|
5
|
+
## Configuration
|
|
6
|
+
|
|
7
|
+
After publishing this package to the public npm registry, merge this entry into the application's Claude Code `.mcp.json`:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"mcpServers": {
|
|
12
|
+
"kazee": {
|
|
13
|
+
"command": "npx",
|
|
14
|
+
"args": ["-y", "@kazee-ds/mcp@0.1.2"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Before publication, use `node` with the absolute `bin/kazee-mcp.mjs` path from a local checkout or installed `.tgz` package. Other clients use their own MCP configuration format. Preserve existing servers; restart/reconnect the client after configuration changes. Public npm downloads need no read token; the running server itself needs no network connection. Keep actual tokens out of `.mcp.json`.
|
|
21
|
+
|
|
22
|
+
## Tools
|
|
23
|
+
|
|
24
|
+
Catalog `0.4.0` is verified against public npm archives: 37 component families, React/Vue declarations and examples, and light/dark semantic tokens. Public installation needs no read token. Historical `0.2.0` and `0.3.0` catalogs retain their original private GitLab provenance. The separate `0.4.0-workspace` selector is only for reviewing the checkout or matching local packed artifacts; it is not a registry installation version. Reconnect the MCP client after updating to reload the catalog.
|
|
25
|
+
|
|
26
|
+
1. `get_catalog_versions`: exact supported versions and provenance.
|
|
27
|
+
2. `list_components`: browse/search by framework, version, function or keyword.
|
|
28
|
+
3. `get_component_docs`: public props, discriminated variants, related types, Vue events/slots and composition limits.
|
|
29
|
+
4. `get_component_examples`: complete, typechecked TSX/Vue examples.
|
|
30
|
+
5. `get_theme_variables`: semantic light/dark CSS variables and resolved values.
|
|
31
|
+
6. `get_installation`: pinned package commands, global CSS and lint guidance.
|
|
32
|
+
7. `get_guides`: agent workflow, framework differences, styling and application composition.
|
|
33
|
+
|
|
34
|
+
All tools carry read-only annotations. `kazee://guides/workflow` and `kazee://catalog/versions` are also exposed as resources.
|
|
35
|
+
|
|
36
|
+
Always supply the exact installed framework package version, obtained from its public package manifest or lockfile. The server rejects unknown versions instead of substituting newer APIs. Both `0.2.0` (eight components per framework) and `0.3.0` (32 per framework) use declarations and tokens extracted from published GitLab registry archives. Their provenance retains SHA-256 archive hashes. The retained catalogs correct the stale candidate label shipped in MCP `0.1.0`. New public MCP `0.1.2` publication is a separate step. Registry verification records a build-time check, not live registry availability.
|
|
37
|
+
|
|
38
|
+
Examples use public `@kazee-ds/react` / `@kazee-ds/vue` imports. The package does not provide shadcn-style component source installation or hosted HTTP transport. MCP supplies reference material; AGENTS.md and consumer lint guide and enforce usage. Successful tool calls do not establish agent instruction-following or production adoption.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
|
+
import { createServer } from '../src/server.mjs';
|
|
5
|
+
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
if (args.length === 1 && ['--help', '-h'].includes(args[0])) {
|
|
8
|
+
console.log(
|
|
9
|
+
'Kazee Design System MCP (React + Vue)\nUsage: kazee-mcp [--version | --help]\nNo arguments: read-only MCP server over stdio. No HTTP listener or project scans.',
|
|
10
|
+
);
|
|
11
|
+
} else if (args.length === 1 && args[0] === '--version') {
|
|
12
|
+
console.log(
|
|
13
|
+
JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version,
|
|
14
|
+
);
|
|
15
|
+
} else if (args.length) {
|
|
16
|
+
console.error('Unsupported arguments. Use kazee-mcp --help.');
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
} else {
|
|
19
|
+
try {
|
|
20
|
+
await createServer().connect(new StdioServerTransport());
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.error(`Kazee MCP could not start: ${error.message}`);
|
|
23
|
+
process.exitCode = 1;
|
|
24
|
+
}
|
|
25
|
+
}
|