initial: @a2a/mcp gateway for a2acloud agents

Local MCP server that exposes any number of deployed A2A agents to
Claude Code, Cursor, Windsurf, and other MCP clients. Reuses the
~/.a2a/credentials.json token written by the Python a2a CLI. Adding
or removing agents is a single ~/.a2a/mcp.json edit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 20:33:54 -03:00
commit 9c5d8172dc
13 changed files with 2738 additions and 0 deletions

34
package.json Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "@a2a/mcp",
"version": "0.1.0",
"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": {
"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"
}