PettyUI/packages/mcp/package.json
Mats Bosson e20b69d7e8 Wire up MCP CLI
- Add packages/mcp/src/cli.ts with init/list/inspect/discover/add commands
- Add packages/mcp/tests/cli.test.ts with 11 parseCommand tests (42 total)
- Update server.ts to register all 5 tools: discover, inspect, validate, add, compose
- Add @types/node devDep, switch to tsc --noCheck build to avoid re-checking
  core source under stricter NodeNext moduleResolution
- tsconfig: NodeNext module, types: [node], exclude core/src
2026-03-30 01:25:45 +07:00

36 lines
782 B
JSON

{
"name": "pettyui-mcp",
"version": "0.1.0",
"description": "MCP server for PettyUI — AI interface to the component library",
"type": "module",
"bin": {
"pettyui": "./dist/cli.js",
"pettyui-mcp": "./dist/index.js"
},
"exports": {
".": {
"import": "./dist/index.js"
},
"./registry": {
"import": "./dist/registry.js"
}
},
"scripts": {
"build": "tsc --noCheck",
"dev": "tsc --noCheck --watch",
"test": "vitest run",
"start": "node dist/index.js",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.0",
"pettyui": "workspace:*",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^25.5.0",
"typescript": "^6.0.2",
"vitest": "^4.1.2"
}
}