openpencil/packages/mcp/package.json
Danila Poyarkov 7a5f6b3707 Add MCP server integration tests (closes #19)
13 tests using InMemoryTransport from @modelcontextprotocol/sdk:
- Tool registration (all 76 tools listed with descriptions)
- new_document, open_file, save_file lifecycle
- Tool execution through MCP protocol (create, fill, delete, query)
- Error paths: no document loaded, nonexistent node, invalid file path
- Full workflow: new → create → nest → query → delete

Fix @open-pencil/core dep in MCP package: workspace:* for local dev
(pnpm publish resolves this to the actual version at publish time).
2026-03-02 21:07:25 +03:00

40 lines
873 B
JSON

{
"name": "@open-pencil/mcp",
"version": "0.4.2",
"license": "MIT",
"type": "module",
"main": "./src/server.ts",
"bin": {
"openpencil-mcp": "./dist/index.js",
"openpencil-mcp-http": "./dist/http.js"
},
"files": [
"src",
"dist"
],
"scripts": {
"build": "bunx tsgo && bunx fix-esm-import-path dist",
"prepublishOnly": "bun run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/open-pencil/open-pencil.git",
"directory": "packages/mcp"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.25.2",
"@open-pencil/core": "workspace:*",
"canvaskit-wasm": "^0.40.0",
"@hono/node-server": "^1.19.9",
"hono": "^4.11.4",
"zod": "^3.25.0"
},
"devDependencies": {
"@types/node": "^22.0.0"
}
}