{"_id":"@andersseen/mcp","_rev":"3-886a5cec06d411fdda5f6aab5190e6b1","name":"@andersseen/mcp","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@andersseen/mcp","version":"0.1.0","keywords":["mcp","model-context-protocol","web-components","andersseen","claude","cursor","copilot","ai","react","vue","angular"],"author":{"name":"Andersseen"},"license":"MIT","_id":"@andersseen/mcp@0.1.0","maintainers":[{"name":"andriipap","email":"andriipap01@gmail.com"}],"homepage":"https://github.com/Andersseen/and-web-components#readme","bugs":{"url":"https://github.com/Andersseen/and-web-components/issues"},"bin":{"and-mcp":"dist/stdio.js"},"dist":{"shasum":"8b05b710785e3c83eaad7922f16a4f64b8092e51","tarball":"https://registry.npmjs.org/@andersseen/mcp/-/mcp-0.1.0.tgz","fileCount":21,"integrity":"sha512-1tn9BL0ya/RZn1vOrPyvlO0RzdDi7mGK0Tn2aSjzRQJG2smyo+EWMwd/t/7l3EEMksjNLl6FebCgjYvfVC9Xew==","signatures":[{"sig":"MEYCIQCdxK/75ySSY7vgwWHUtSb+ifV0D+LkIccEVkByM5xYmgIhAJ+t6cmDw87tbO/oTsYI75pijUcW6d+CK/VIuZAnzIqP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":103050},"main":"./dist/server.js","type":"module","_from":"file:andersseen-mcp-0.1.0.tgz","types":"./dist/server.d.ts","module":"./dist/server.js","exports":{".":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./catalog":{"types":"./dist/catalog.d.ts","import":"./dist/catalog.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","build":"rm -rf dist && tsc && node ../../scripts/fix-esm-extensions.cjs dist && chmod +x dist/stdio.js","format":"prettier --write \"src/**/*.ts\"","generate":"node scripts/generate-catalog.mjs","lint:fix":"eslint src --ext .ts --fix","prebuild":"node scripts/generate-catalog.mjs","format:check":"prettier --check \"src/**/*.ts\"","check:catalog":"node scripts/generate-catalog.mjs --check"},"_npmUser":{"name":"andriipap","email":"andriipap01@gmail.com"},"_resolved":"/private/var/folders/wq/4bgf9dy51d5776cl3qgg362h0000gn/T/ffa4cad3eed00ac3055d2bb3cdc2973a/andersseen-mcp-0.1.0.tgz","_integrity":"sha512-1tn9BL0ya/RZn1vOrPyvlO0RzdDi7mGK0Tn2aSjzRQJG2smyo+EWMwd/t/7l3EEMksjNLl6FebCgjYvfVC9Xew==","repository":{"url":"git+https://github.com/Andersseen/and-web-components.git","type":"git","directory":"packages/mcp"},"_npmVersion":"10.9.8","description":"Model Context Protocol server for And Web Components — lets AI assistants (Claude, Cursor, Copilot, VS Code…) query the component catalog and generate correct, framework-specific usage snippets.","directories":{},"_nodeVersion":"22.23.0","dependencies":{"zod":"^4.4.3","@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.1.0","@eslint/js":"^10.0.1","typescript":"^5.9.3","@types/node":"^22.13.5","typescript-eslint":"^8.57.1","@andersseen/web-components":"0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.0_1784648287787_0.42064629846429247","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@andersseen/mcp","version":"0.1.1","keywords":["mcp","model-context-protocol","web-components","andersseen","claude","cursor","copilot","ai","react","vue","angular"],"author":{"name":"Andersseen"},"license":"MIT","_id":"@andersseen/mcp@0.1.1","maintainers":[{"name":"andriipap","email":"andriipap01@gmail.com"}],"homepage":"https://github.com/Andersseen/and-web-components#readme","bugs":{"url":"https://github.com/Andersseen/and-web-components/issues"},"bin":{"and-mcp":"dist/stdio.js"},"dist":{"shasum":"0021150f4808e20b036bbdcc977932c9463ad618","tarball":"https://registry.npmjs.org/@andersseen/mcp/-/mcp-0.1.1.tgz","fileCount":21,"integrity":"sha512-8k3hM+e4/XzTQ51Vz5UzP/pmnlPR50Gxs1wk2R9hDfULDmbp9FfdN2y0ZtwqeEHdnCqpHfaxGZ2Cd3gYu7saaA==","signatures":[{"sig":"MEUCIAQYcoMN79jA7o6HJUXr2Uqx5hFm78CuKdapWNj7Y9nJAiEAiv1yGQq3DHLWiySLcPq9GfqmvUdMTLyr5kvu1lCsQMM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105938},"main":"./dist/server.js","type":"module","_from":"file:andersseen-mcp-0.1.1.tgz","types":"./dist/server.d.ts","module":"./dist/server.js","exports":{".":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./catalog":{"types":"./dist/catalog.d.ts","import":"./dist/catalog.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","build":"rm -rf dist && tsc && node ../../scripts/fix-esm-extensions.cjs dist && chmod +x dist/stdio.js","format":"prettier --write \"src/**/*.ts\"","generate":"node scripts/generate-catalog.mjs","lint:fix":"eslint src --ext .ts --fix","prebuild":"node scripts/generate-catalog.mjs","format:check":"prettier --check \"src/**/*.ts\"","check:catalog":"node scripts/generate-catalog.mjs --check"},"_npmUser":{"name":"andriipap","email":"andriipap01@gmail.com"},"_resolved":"/tmp/859d62b8849b7ecab42cc5434ea8095f/andersseen-mcp-0.1.1.tgz","_integrity":"sha512-8k3hM+e4/XzTQ51Vz5UzP/pmnlPR50Gxs1wk2R9hDfULDmbp9FfdN2y0ZtwqeEHdnCqpHfaxGZ2Cd3gYu7saaA==","repository":{"url":"git+https://github.com/Andersseen/and-web-components.git","type":"git","directory":"packages/mcp"},"_npmVersion":"10.9.8","description":"Model Context Protocol server for And Web Components — lets AI assistants (Claude, Cursor, Copilot, VS Code…) query the component catalog and generate correct, framework-specific usage snippets.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"zod":"^4.4.3","@modelcontextprotocol/sdk":"^1.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.1.0","@eslint/js":"^10.0.1","typescript":"^5.9.3","@types/node":"^22.13.5","typescript-eslint":"^8.57.1","@andersseen/web-components":"0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.1_1784814154448_0.402591005433967","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@andersseen/mcp","version":"0.1.2","description":"Model Context Protocol server for And Web Components — lets AI assistants (Claude, Cursor, Copilot, VS Code…) query the component catalog and generate correct, framework-specific usage snippets.","type":"module","bin":{"and-mcp":"dist/stdio.js"},"main":"./dist/server.js","module":"./dist/server.js","types":"./dist/server.d.ts","exports":{".":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./catalog":{"types":"./dist/catalog.d.ts","import":"./dist/catalog.js"}},"keywords":["mcp","model-context-protocol","web-components","andersseen","claude","cursor","copilot","ai","react","vue","angular"],"author":{"name":"Andersseen"},"license":"MIT","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0","zod":"^4.4.3"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^22.13.5","eslint":"^10.1.0","typescript":"^5.9.3","typescript-eslint":"^8.57.1","@andersseen/web-components":"0.4.1"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Andersseen/and-web-components.git","directory":"packages/mcp"},"scripts":{"generate":"node scripts/generate-catalog.mjs","check:catalog":"node scripts/generate-catalog.mjs --check","prebuild":"node scripts/generate-catalog.mjs","build":"rm -rf dist && tsc && node ../../scripts/fix-esm-extensions.cjs dist && chmod +x dist/stdio.js","dev":"tsc --watch","lint":"eslint src --ext .ts","lint:fix":"eslint src --ext .ts --fix","format":"prettier --write \"src/**/*.ts\"","format:check":"prettier --check \"src/**/*.ts\""},"_id":"@andersseen/mcp@0.1.2","bugs":{"url":"https://github.com/Andersseen/and-web-components/issues"},"homepage":"https://github.com/Andersseen/and-web-components#readme","_integrity":"sha512-Mbd4zws+OF+pqazgpLVwBCPdgUpsVdI6J5A4Ae1h+V3rctocCAQ8RSghxAMCxiVEmKjr0c6hnVsLQOfaXPM/Ug==","_resolved":"/tmp/28331cd3d6b1cf447bcd0235eab931ad/andersseen-mcp-0.1.2.tgz","_from":"file:andersseen-mcp-0.1.2.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-Mbd4zws+OF+pqazgpLVwBCPdgUpsVdI6J5A4Ae1h+V3rctocCAQ8RSghxAMCxiVEmKjr0c6hnVsLQOfaXPM/Ug==","shasum":"d8e81253e2281f8845dadacabbaa8146bbe51cbd","tarball":"https://registry.npmjs.org/@andersseen/mcp/-/mcp-0.1.2.tgz","fileCount":21,"unpackedSize":106216,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIETYElskow5dEl9qE1GlDZGKXa5evBPjn9qwpYXqTtItAiAw9w3pHTjBv4mBs1aH7/6uurCfSd3S62pc8NxMtimYcQ=="}]},"_npmUser":{"name":"andriipap","email":"andriipap01@gmail.com"},"directories":{},"maintainers":[{"name":"andriipap","email":"andriipap01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_0.1.2_1786136211898_0.27973810350277617"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-21T15:38:07.635Z","modified":"2026-08-07T20:56:52.236Z","0.1.0":"2026-07-21T15:38:07.927Z","0.1.1":"2026-07-23T13:42:34.594Z","0.1.2":"2026-08-07T20:56:52.058Z"},"bugs":{"url":"https://github.com/Andersseen/and-web-components/issues"},"author":{"name":"Andersseen"},"license":"MIT","homepage":"https://github.com/Andersseen/and-web-components#readme","keywords":["mcp","model-context-protocol","web-components","andersseen","claude","cursor","copilot","ai","react","vue","angular"],"repository":{"type":"git","url":"git+https://github.com/Andersseen/and-web-components.git","directory":"packages/mcp"},"description":"Model Context Protocol server for And Web Components — lets AI assistants (Claude, Cursor, Copilot, VS Code…) query the component catalog and generate correct, framework-specific usage snippets.","maintainers":[{"name":"andriipap","email":"andriipap01@gmail.com"}],"readme":"# @andersseen/mcp\n\nA [Model Context Protocol](https://modelcontextprotocol.io) server for **And Web\nComponents**. It lets AI assistants (Claude, Cursor, Windsurf, VS Code, GitHub\nCopilot, …) query the real component catalog and generate **correct,\nframework-specific** usage snippets — instead of guessing attributes, events, or\nselectors.\n\nThe catalog is generated from `@andersseen/web-components`'\n[`custom-elements.json`](../web-components/custom-elements.json), so it always\nmatches the shipped components.\n\n## Run it\n\nNo install required — it runs on the developer's machine over stdio:\n\n```bash\nnpx -y @andersseen/mcp\n```\n\n## Add it to your AI assistant\n\n### Claude Code / Claude Desktop (`.mcp.json`)\n\n```json\n{\n  \"mcpServers\": {\n    \"and-web-components\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@andersseen/mcp\"]\n    }\n  }\n}\n```\n\n### Cursor / Windsurf (`.cursor/mcp.json`)\n\n```json\n{\n  \"mcpServers\": {\n    \"and-web-components\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@andersseen/mcp\"]\n    }\n  }\n}\n```\n\n### VS Code (`.vscode/mcp.json`)\n\n```json\n{\n  \"servers\": {\n    \"and-web-components\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@andersseen/mcp\"]\n    }\n  }\n}\n```\n\n## What it exposes\n\n### Tools\n\n| Tool                | What it does                                                                 |\n| ------------------- | ---------------------------------------------------------------------------- |\n| `list_components`   | List components (top-level with sub-components, or every tag).               |\n| `get_component`     | Full metadata for a tag: attributes, events, methods, slots, CSS parts.      |\n| `get_usage_example` | Ready-to-paste import + snippet for `html` \\| `react` \\| `vue` \\| `angular`. |\n| `get_install_info`  | Which `@andersseen/*` package to install and how to register it.             |\n| `get_theme_info`    | Color palettes, style presets, dark-mode setup.                              |\n| `get_project_info`  | Project overview, package list, naming conventions.                          |\n\n### Resources\n\n- `component://{tag}` — metadata for a single component (listable)\n- `theme://info` — theme colors, styles, dark-mode setup\n- `project://info` — project overview\n\n### Prompts\n\n- `generate-component` — generate a correct example for a component + framework\n- `troubleshooting` — diagnose a common And Web Components problem\n\n## Example\n\n`get_usage_example({ component: \"and-modal\", framework: \"react\" })`:\n\n```jsx\nimport { AndModal } from '@andersseen/react-components';\n\n<AndModal animated={true} open={true} onAndModalClose={handleEvent}>\n  {/* content */}\n</AndModal>;\n```\n\n## How the catalog stays in sync\n\n`custom-elements.json` is a build artifact of `@andersseen/web-components` (not\ncommitted). The committed, published catalog lives in `src/catalog-generated.ts`\nand is regenerated on `build` (via the `prebuild` step) whenever the CEM is\npresent:\n\n```bash\npnpm --filter @andersseen/mcp generate       # rewrite the catalog from the CEM\npnpm --filter @andersseen/mcp check:catalog  # fail if it drifted (CI-friendly)\n```\n\nNever hand-edit `src/catalog-generated.ts`.\n\n## Architecture note\n\nThe server is transport-agnostic: [`src/server.ts`](./src/server.ts) exports a\n`createServer()` factory, and [`src/stdio.ts`](./src/stdio.ts) wires it to\nstdin/stdout. The same factory can later be mounted behind an HTTP transport\n(e.g. a Cloudflare Worker serving a hosted URL) without touching any tool logic.\n","readmeFilename":"README.md"}