Remove headless SceneGraph mode — the MCP server now always proxies tool calls to the browser via WebSocket. One server, one architecture: HTTP :7600 — /health, /rpc (CLI), /mcp (MCP Streamable HTTP) WS :7601 — browser connects, executes tool calls against live editor - Delete http.ts (merged into server.ts) - Delete headless SceneGraph, open_file, save_file, new_document - Delete canvaskit-wasm dependency (no headless rendering) - Add ws dependency for WebSocket server - Rewrite tests with mock browser over real HTTP+WebSocket - Simplify bridge.ts to 6 lines (just imports and starts the server)
40 lines
843 B
JSON
40 lines
843 B
JSON
{
|
|
"name": "@open-pencil/mcp",
|
|
"version": "0.8.0",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"main": "./src/server.ts",
|
|
"bin": {
|
|
"openpencil-mcp": "./dist/index.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": {
|
|
"@hono/node-server": "^1.19.9",
|
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
"@open-pencil/core": "workspace:*",
|
|
"hono": "^4.11.4",
|
|
"zod": "^4.3.6",
|
|
"ws": "^8.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@types/ws": "^8.18.1"
|
|
}
|
|
}
|