dce54c8a3a
Claude Code spawns plugin MCP servers straight from the read-only git-content plugin cache, which never gets an npm install for mcp/. The old tsc-multi-file build imported bare specifiers that only resolved via mcp/node_modules, so every fresh plugin install/update produced a -32000 reconnect failure. Bundle mcp/src into a single dependency-free build/index.js instead; the one CJS-heavy import (express, only used by --transport=http) is now dynamic so the stdio path never evaluates it.
40 lines
1.4 KiB
JSON
40 lines
1.4 KiB
JSON
{
|
|
"name": "agent-dashboard-mcp-server",
|
|
"version": "1.0.0",
|
|
"description": "Local MCP server for the Claude Code Agent Monitor",
|
|
"private": true,
|
|
"type": "module",
|
|
"bin": {
|
|
"agent-dashboard-mcp": "./build/index.js"
|
|
},
|
|
"scripts": {
|
|
"clean": "node -e \"require('node:fs').rmSync('build',{recursive:true,force:true})\"",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"build": "npm run clean && npm run typecheck && esbuild src/index.ts --bundle --platform=node --format=esm --target=node18 --outfile=build/index.js",
|
|
"start": "node build/index.js",
|
|
"start:http": "node build/index.js --transport=http",
|
|
"start:repl": "node build/index.js --transport=repl",
|
|
"test": "node --import tsx --test __tests__/*.test.ts",
|
|
"dev": "tsx src/index.ts",
|
|
"dev:http": "tsx src/index.ts --transport=http",
|
|
"dev:repl": "tsx src/index.ts --transport=repl",
|
|
"docker:build": "docker build -f Dockerfile -t agent-dashboard-mcp:local ..",
|
|
"podman:build": "podman build -f Dockerfile -t localhost/agent-dashboard-mcp:local .."
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
"agent-dashboard": "file:..",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^5.0.6",
|
|
"@types/node": "^22.18.0",
|
|
"esbuild": "^0.24.0",
|
|
"tsx": "^4.20.5",
|
|
"typescript": "^5.9.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.18.0"
|
|
}
|
|
}
|