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>
44 lines
1.0 KiB
Markdown
44 lines
1.0 KiB
Markdown
# a2amcp
|
|
|
|
MCP gateway for a2acloud agents. It runs locally as a stdio MCP server and
|
|
exposes deployed A2A agents as tools to Claude Code, Cursor, and other MCP
|
|
clients.
|
|
|
|
## Quickstart
|
|
|
|
```bash
|
|
npx -y a2amcp login
|
|
npx -y a2amcp add <agent-name>
|
|
npx -y a2amcp doctor
|
|
```
|
|
|
|
Add it to your MCP client config:
|
|
|
|
```json
|
|
{
|
|
"mcpServers": {
|
|
"a2a": {
|
|
"command": "npx",
|
|
"args": ["-y", "a2amcp"]
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
Restart the client after adding or removing agents.
|
|
|
|
## Commands
|
|
|
|
```bash
|
|
a2amcp login # save control-plane credentials
|
|
a2amcp whoami # show current account
|
|
a2amcp agents # list agents visible to your account
|
|
a2amcp add <name> # expose one agent through this gateway
|
|
a2amcp list # list locally enabled agents
|
|
a2amcp remove <name> # stop exposing an agent
|
|
a2amcp doctor # probe enabled agents and count tools
|
|
a2amcp logout # clear local credentials
|
|
```
|
|
|
|
Running `a2amcp` with no command starts the MCP gateway over stdio.
|