mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
Fixes #374 - Models were confused by the `type` field name and sent `operation` instead. This change: - Renames DiagramOperation.type to DiagramOperation.operation across all files (MCP server, web app, hooks, components, system prompts) - Adds JSON examples in tool descriptions to show correct format - Updates all test data to use the new field name Affected files: - lib/utils.ts - app/api/chat/route.ts - hooks/use-diagram-tool-handlers.ts - components/chat-message-display.tsx - lib/system-prompts.ts - packages/mcp-server/src/diagram-operations.ts - packages/mcp-server/src/index.ts - scripts/test-diagram-operations.mjs MCP server version bumped to 0.1.6
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"name": "@next-ai-drawio/mcp-server",
|
|
"version": "0.1.6",
|
|
"description": "MCP server for Next AI Draw.io - AI-powered diagram generation with real-time browser preview",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"bin": {
|
|
"next-ai-drawio-mcp": "./dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsx watch src/index.ts",
|
|
"start": "node dist/index.js",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"mcp",
|
|
"drawio",
|
|
"diagram",
|
|
"ai",
|
|
"claude",
|
|
"model-context-protocol"
|
|
],
|
|
"author": "Biki-dev",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Biki-dev/next-ai-draw-io",
|
|
"directory": "packages/mcp-server"
|
|
},
|
|
"homepage": "https://next-ai-drawio.jiang.jp",
|
|
"bugs": {
|
|
"url": "https://github.com/Biki-dev/next-ai-draw-io/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
"linkedom": "^0.18.0",
|
|
"open": "^10.1.0",
|
|
"zod": "^3.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
]
|
|
}
|