{"_id":"@aaspaiui/mcp","_rev":"3-d28681a7a10bc6e12549f5f289e86582","name":"@aaspaiui/mcp","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@aaspaiui/mcp","version":"1.0.1","keywords":["mcp","mcp-server","ui-components","aaspaiui","model-context-protocol","react","typescript"],"author":{"name":"AASPAI UI Team"},"license":"MIT","_id":"@aaspaiui/mcp@1.0.1","maintainers":[{"name":"aakashzedblock","email":"aakash@zedblock.com"}],"homepage":"https://github.com/aaspaiui/zedblockUIlibrary#readme","bugs":{"url":"https://github.com/aaspaiui/zedblockUIlibrary/issues"},"bin":{"aaspaiui-mcp":"dist/index.js"},"dist":{"shasum":"9d01e7174d0b362803384eac1432e75aa523e9e0","tarball":"https://registry.npmjs.org/@aaspaiui/mcp/-/mcp-1.0.1.tgz","fileCount":39,"integrity":"sha512-i2b+KqCp2TvTTsXt0mdXUyhURn4O0/1wqgDchxgM3rRmuSwgNHqElyTJcWqXKPMDsFJKY7k7ghv79OTN4gIh7g==","signatures":[{"sig":"MEUCIQDtB5b6gLozoZfhuDN1qZnNJikyHeEiEJMEIlyWMwv9WQIgfcShgjXVtEPTTUzNbmpFMZ4nDms2damFOHBzrDWj5pg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72836},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"d32bb16fdd42d06a6451c453645c9319881395bf","scripts":{"dev":"tsx watch src/index.ts","build":"tsc","clean":"rm -rf dist","start":"node dist/index.js","prepare":"npm run copy-components && npm run build","prepublishOnly":"npm run prepare","copy-components":"node scripts/copy-components-json.js"},"_npmUser":{"name":"aakashzedblock","email":"aakash@zedblock.com"},"repository":{"url":"git+https://github.com/aaspaiui/zedblockUIlibrary.git","type":"git","directory":"mcp-server"},"_npmVersion":"10.9.2","description":"Official Model Context Protocol (MCP) server for AASPAI UI component discovery","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@modelcontextprotocol/sdk":"^0.4.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.0","devDependencies":{"tsx":"^4.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_1.0.1_1762345088466_0.40351657789882855","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aaspaiui/mcp","version":"1.0.2","keywords":["mcp","mcp-server","ui-components","aaspaiui","model-context-protocol","react","typescript"],"author":{"name":"AASPAI UI Team"},"license":"MIT","_id":"@aaspaiui/mcp@1.0.2","maintainers":[{"name":"aakashzedblock","email":"aakash@zedblock.com"}],"homepage":"https://github.com/aaspaiui/zedblockUIlibrary#readme","bugs":{"url":"https://github.com/aaspaiui/zedblockUIlibrary/issues"},"bin":{"aaspaiui-mcp":"dist/index.js"},"dist":{"shasum":"148e6262fc8be7419dbf8df7e8bec8fb2b3e10be","tarball":"https://registry.npmjs.org/@aaspaiui/mcp/-/mcp-1.0.2.tgz","fileCount":39,"integrity":"sha512-LRnBFl6L6GXLYdNQne1cwrF4HJkzaeXV9x61w+a2s4csnuJSHZWiknum/slrFz0NTNtWDhhotzYu6Eh/UB26pg==","signatures":[{"sig":"MEUCIG1SliKtu1t/65SQR119Z4ymvLJB3+KyfAW4R2YojHlaAiEAxvZMZeP+18oe+PdEpQ6301rrvJDYLVlvk6aGWMC4phc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76647},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"63dd8e987070f5ff88e48bf83548d1de23e03016","scripts":{"dev":"tsx watch src/index.ts","build":"tsc","clean":"rm -rf dist","start":"node dist/index.js","prepare":"npm run copy-components && npm run build","prepublishOnly":"npm run prepare","copy-components":"node scripts/copy-components-json.js"},"_npmUser":{"name":"aakashzedblock","email":"aakash@zedblock.com"},"repository":{"url":"git+https://github.com/aaspaiui/zedblockUIlibrary.git","type":"git","directory":"mcp-server"},"_npmVersion":"10.9.2","description":"Official Model Context Protocol (MCP) server for AASPAI UI component discovery","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@modelcontextprotocol/sdk":"^0.4.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.0.0","devDependencies":{"tsx":"^4.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_1.0.2_1762345672936_0.5876029075701272","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aaspaiui/mcp","version":"1.0.3","description":"Official Model Context Protocol (MCP) server for AASPAI UI component discovery","type":"module","main":"./dist/index.js","bin":{"aaspaiui-mcp":"dist/index.js"},"scripts":{"copy-components":"node scripts/copy-components-json.js","build":"tsc","prepare":"npm run copy-components && npm run build","prepublishOnly":"npm run prepare","start":"node dist/index.js","dev":"tsx watch src/index.ts","clean":"rm -rf dist"},"dependencies":{"@modelcontextprotocol/sdk":"^0.4.0"},"devDependencies":{"@types/node":"^20.0.0","tsx":"^4.0.0","typescript":"^5.0.0"},"engines":{"node":">=18.0.0"},"keywords":["mcp","mcp-server","ui-components","aaspaiui","model-context-protocol","react","typescript"],"author":{"name":"AASPAI UI Team"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aaspaiui/zedblockUIlibrary.git","directory":"mcp-server"},"homepage":"https://github.com/aaspaiui/zedblockUIlibrary#readme","bugs":{"url":"https://github.com/aaspaiui/zedblockUIlibrary/issues"},"packageManager":"pnpm@9.0.0","_id":"@aaspaiui/mcp@1.0.3","gitHead":"63dd8e987070f5ff88e48bf83548d1de23e03016","types":"./dist/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QcoktinSbH1hVFo5zsm9ign6ekyd4fgR9ihx1eAhpCJf/u49WtOwfuf9erzn2D1ufSt31XB2vZ8pm743L2Cj3w==","shasum":"2bec34253c32aebed787383b358e03a6db56d9e8","tarball":"https://registry.npmjs.org/@aaspaiui/mcp/-/mcp-1.0.3.tgz","fileCount":39,"unpackedSize":77822,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICCRrddVbw4DaRGYMaL9hX/pF3qSz3ru00v4QfP466kaAiB/4m2tGO+yMFo4HjCZeY52JV3XEZynDHQdZEcQCn78nw=="}]},"_npmUser":{"name":"aakashzedblock","email":"aakash@zedblock.com"},"directories":{},"maintainers":[{"name":"aakashzedblock","email":"aakash@zedblock.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_1.0.3_1762351726052_0.17767650860841155"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-05T12:18:08.366Z","modified":"2025-11-05T14:08:46.491Z","1.0.1":"2025-11-05T12:18:08.664Z","1.0.2":"2025-11-05T12:27:53.184Z","1.0.3":"2025-11-05T14:08:46.263Z"},"bugs":{"url":"https://github.com/aaspaiui/zedblockUIlibrary/issues"},"author":{"name":"AASPAI UI Team"},"license":"MIT","homepage":"https://github.com/aaspaiui/zedblockUIlibrary#readme","keywords":["mcp","mcp-server","ui-components","aaspaiui","model-context-protocol","react","typescript"],"repository":{"type":"git","url":"git+https://github.com/aaspaiui/zedblockUIlibrary.git","directory":"mcp-server"},"description":"Official Model Context Protocol (MCP) server for AASPAI UI component discovery","maintainers":[{"name":"aakashzedblock","email":"aakash@zedblock.com"}],"readme":"# @aaspaiui/mcp\n\nOfficial Model Context Protocol (MCP) server for AASPAI UI.\n\n## Installation\n\n### Using npx (Recommended)\n\nThe easiest way to use this MCP server is via npx:\n\n```bash\nnpx -y @aaspaiui/mcp@latest\n```\n\n### Install MCP Configuration\n\nAdd to your IDE's MCP config:\n\n**For Cursor:**\n\n```json\n{\n  \"mcpServers\": {\n    \"@aaspaiui/mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@aaspaiui/mcp@latest\"]\n    }\n  }\n}\n```\n\n**For Claude Desktop:**\n\n```json\n{\n  \"mcpServers\": {\n    \"@aaspaiui/mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@aaspaiui/mcp@latest\"]\n    }\n  }\n}\n```\n\n**For Windsurf:**\n\n```json\n{\n  \"mcpServers\": {\n    \"@aaspaiui/mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@aaspaiui/mcp@latest\"]\n    }\n  }\n}\n```\n\n## Example Usage\n\nOnce configured, you can ask questions like:\n\n> \"List all available UI components\"\n\n> \"Show me components in the Form category\"\n\n> \"Get the code for the button component\"\n\n> \"What categories are available?\"\n\n## Available Tools\n\nThe server provides the following tools callable via MCP:\n\n| Tool Name                | Description                                                                              |\n| ------------------------ | ---------------------------------------------------------------------------------------- |\n| `list_components`        | Lists all available UI components with optional filtering by category, search, and limit |\n| `get_categories`         | Get all available component categories                                                   |\n| `get_component_code`     | Get metadata and source code information for a specific component                        |\n| `get_component_variants` | Get available variants for a specific component                                          |\n\n### Tool Details\n\n#### `list_components`\n\nLists all available UI components with optional filtering.\n\n**Parameters:**\n\n- `category` (optional): Filter by category (e.g., \"Form\", \"Display\", \"Navigation\")\n- `search` (optional): Search components by name, category, or subcategory\n- `limit` (optional): Maximum number of components to return (default: 50, max: 100)\n\n**Example:**\n\n```json\n{\n  \"name\": \"list_components\",\n  \"arguments\": {\n    \"category\": \"Form\",\n    \"limit\": 10\n  }\n}\n```\n\n#### `get_categories`\n\nGet all available component categories.\n\n**Parameters:** None\n\n**Example:**\n\n```json\n{\n  \"name\": \"get_categories\",\n  \"arguments\": {}\n}\n```\n\n#### `get_component_code`\n\nGet metadata and source code information for a specific component.\n\n**Parameters:**\n\n- `componentName` (required): Name of the component (e.g., \"button\", \"card\")\n\n**Example:**\n\n```json\n{\n  \"name\": \"get_component_code\",\n  \"arguments\": {\n    \"componentName\": \"button\"\n  }\n}\n```\n\n#### `get_component_variants`\n\nGet available variants for a specific component.\n\n**Parameters:**\n\n- `componentName` (required): Name of the component\n\n**Example:**\n\n```json\n{\n  \"name\": \"get_component_variants\",\n  \"arguments\": {\n    \"componentName\": \"button\"\n  }\n}\n```\n\n## Component Registry\n\nThe server reads component information from a bundled `components.json` file, which contains:\n\n- Component metadata (name, category, subcategory)\n- Dependencies (npm packages required)\n- Registry dependencies (other components required)\n- File information and content (when available)\n\n## Development\n\n### Building from Source\n\n```bash\ncd mcp-server\nnpm install\nnpm run build\n```\n\n### Project Structure\n\n```\nmcp-server/\n├── src/\n│   ├── index.ts              # Entry point\n│   ├── server.ts             # MCP server setup\n│   ├── types.ts              # TypeScript interfaces\n│   ├── services/\n│   │   └── registry-service.ts  # Component registry service\n│   ├── tools/\n│   │   ├── list-components.ts\n│   │   ├── get-categories.ts\n│   │   ├── get-component-code.ts\n│   │   └── get-component-variants.ts\n│   └── utils/\n│       └── paths.ts          # Path resolution utilities\n├── scripts/\n│   └── copy-components-json.js  # Script to bundle components.json\n├── dist/                     # Compiled output\n├── components.json          # Bundled component registry\n├── package.json\n├── tsconfig.json\n└── README.md\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}