Adds an "a2amcp" bin (alongside the existing "a2a-mcp" for back-compat) so that npx -y a2amcp resolves the binary by package name. Without it npx fell back unreliably when no bin matched. Also rips the hardcoded "0.1.0" out of cli.ts and gateway.ts and reads the version from package.json — that was why serverInfo lagged behind the published tag. Renames the user-facing command in help / error strings / README from a2a-mcp to a2amcp; the legacy bin stays for existing scripts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
855 B
JSON
36 lines
855 B
JSON
{
|
|
"name": "a2amcp",
|
|
"version": "0.1.3",
|
|
"description": "MCP gateway for a2acloud agents. Run as a local MCP server; expose any number of deployed A2A agents to Claude Code, Cursor, and other MCP clients.",
|
|
"type": "module",
|
|
"bin": {
|
|
"a2amcp": "dist/cli.js",
|
|
"a2a-mcp": "dist/cli.js"
|
|
},
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"engines": {
|
|
"node": ">=18.17"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"prepare": "npm run build",
|
|
"test": "node --test --import tsx tests/*.test.ts",
|
|
"dev": "tsx src/cli.ts"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
"commander": "^12.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.12.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.5.0"
|
|
},
|
|
"license": "Apache-2.0"
|
|
}
|