Skip to main content

mcp-a2a-bridge

An MCP server that lets coding agents — GitHub Copilot CLI, Claude Code, Codex, and Hermes — call remote A2A agents. It also includes an optional read-only activity dashboard.

Repository: https://github.com/TonPC64/mcp-a2a-bridge

Licensed under the MIT License.

For coding-agent instructions, start with AGENTS.md, then use skills/setup/SKILL.md for installation or skills/contribute/SKILL.md for changes and PRs.

Dashboard UI showcase

The optional dashboard uses a futuristic Liquid Glass interface with compact agent cards, live task activity, two-column task summaries, status indicators, and responsive layouts. This screenshot uses the opt-in frontend mock data mode so it is safe to reproduce without connecting to real agents or exposing logs.

A2A Bridge Dashboard desktop showcase

To run the same mock UI locally:

cd /absolute/path/to/mcp-a2a-bridge/dashboard
npm ci
npm run dev:mock -- --host 127.0.0.1

The mock mode is for UI development and screenshots only; normal builds use the live dashboard API and SSE.

Getting started

Choose your setup

Both profiles need Python 3.11 or later and uv. The optional dashboard frontend requires Node.js 24.15 or later; CI uses the latest Node.js 24 release.

Install from PyPI

The PyPI distribution is named a2a-mcp-bridge, while the commands keep the mcp-a2a-bridge name.

uvx --from a2a-mcp-bridge mcp-a2a-bridge
uv tool install a2a-mcp-bridge
claude mcp add a2a -- uvx --from a2a-mcp-bridge mcp-a2a-bridge

The dashboard needs the extra:

uvx --from 'a2a-mcp-bridge[dashboard]' mcp-a2a-bridge-dashboard

MCP only

Install and run the MCP bridge only. This does not require Node.js/npm or a dashboard frontend build.

git clone https://github.com/TonPC64/mcp-a2a-bridge.git mcp-a2a-bridge
cd mcp-a2a-bridge
uv sync --locked

MCP + dashboard

Install the optional dashboard web runtime, then build its bundled frontend assets. Node.js and npm are needed only for this build (or frontend development), not to run an already-built dashboard.

git clone https://github.com/TonPC64/mcp-a2a-bridge.git mcp-a2a-bridge
cd mcp-a2a-bridge
uv sync --extra dashboard --locked
npm --prefix dashboard ci
npm --prefix dashboard run build

For development and tests, use uv sync --all-extras --locked; it includes the Python packages needed by the dashboard test suite. The commands below use /absolute/path/to/mcp-a2a-bridge. Replace it with the absolute path to your clone; do not copy another user's path.

Configure A2A agents

Create .a2a-agents.json in the repository root:

{
  "agents": {
    "example-agent": {
      "url": "https://agent.example.invalid",
      "headers": {
        "Authorization": "Bearer REPLACE_WITH_YOUR_TOKEN"
      }
    }
  }
}

Use the base URL of an A2A agent; the bridge requests its /.well-known/agent-card.json automatically. Remove Authorization (or use an empty headers object) when the agent does not require authentication. The registry can contain secrets, so do not commit it and restrict its file permissions where appropriate.

The registry location is resolved in this order:

  1. A2A_BRIDGE_CONFIG
  2. .a2a-agents.json in the bridge process's current directory
  3. ~/.config/a2a-bridge/agents.json

For a host that starts the MCP command outside the repository, set A2A_BRIDGE_CONFIG to an absolute path in that host's MCP environment. You can also add a verified agent at runtime with a2a_add_agent; by default it writes to the resolved registry file.

Register the MCP server

Each host should start the same local checkout command:

uv run --directory /absolute/path/to/mcp-a2a-bridge mcp-a2a-bridge

This uses the editable installation created above. Configure the host with the following portable path placeholder.

GitHub Copilot CLI — add this server to ~/.copilot/mcp-config.json:

{
  "mcpServers": {
    "a2a": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/mcp-a2a-bridge",
        "mcp-a2a-bridge"
      ]
    }
  }
}

Claude Code:

claude mcp add a2a -- uv run --directory /absolute/path/to/mcp-a2a-bridge mcp-a2a-bridge

Codex — add this to ~/.codex/config.toml:

[mcp_servers.a2a]
command = "uv"
args = ["run", "--directory", "/absolute/path/to/mcp-a2a-bridge", "mcp-a2a-bridge"]

Hermes: use its MCP server registration UI or command, choose a stdio server, and supply the command uv with these arguments:

run --directory /absolute/path/to/mcp-a2a-bridge mcp-a2a-bridge

Restart the host after registration, then call a2a_list_agents to confirm that the registry is available and the agents are reachable.

Expose the interactive Codex CLI as A2A (opt-in)

With Codex CLI 0.150.1 installed, run this separate adapter in another terminal:

uv run python examples/run_codex_interactive_a2a.py

It binds only to 127.0.0.1:9013, publishes /.well-known/agent-card.json, and registers a temporary unique entry in the resolved registry. The exact entry is removed on graceful shutdown. It starts codex app-server --stdio directly; it does not use codex exec or attach to an existing terminal TUI. Each adapter process starts one new ephemeral app-server thread. --thread-id ID may resume a known persisted thread only when app-server reports canAcceptDirectInput: true.

Use --port for another loopback port and --codex-bin when codex is not on the launcher PATH. The adapter has no public bind, token, or credential-file configuration.

Tools

Tool Purpose
a2a_list_agents List agents with skills and reachability
a2a_send_message Send a message; continue a task with task_id
a2a_get_task Poll a task started earlier
a2a_cancel_task Cancel a running task
a2a_add_agent Register an agent by URL

a2a_send_message waits up to timeout_s (60 seconds by default). If a task is still running, it returns done: false with a task_id; poll it with a2a_get_task. If an agent returns state: "input_required", call a2a_send_message again with the same task_id.

Dashboard

The optional standalone dashboard shows configured agents, their status/skills, and live task activity from bridge processes on the same machine. It is read-only: it never sends messages to agents.

Install the dashboard profile and build the assets before starting it:

cd /absolute/path/to/mcp-a2a-bridge
uv sync --extra dashboard --locked
npm --prefix dashboard ci
npm --prefix dashboard run build
uv run mcp-a2a-bridge-dashboard

It listens only on 127.0.0.1:9100 by default. Open http://127.0.0.1:9100 on the same machine.

Frontend mock data

To run the dashboard UI without the Python service or SSE, use the opt-in mock mode. It includes representative agents and task activity for screenshots:

cd /absolute/path/to/mcp-a2a-bridge/dashboard
npm ci
npm run dev:mock -- --host 0.0.0.0

Open the Vite URL on the same network. VITE_USE_MOCK_DATA=true is only used by the frontend build/dev server; normal npm run dev and production builds continue to use the live dashboard API and SSE.

Enable reporting for every bridge process whose activity should appear in the dashboard. Add this environment variable to the MCP server configuration (or when launching it manually):

A2A_BRIDGE_DASHBOARD=1 uv run --directory /absolute/path/to/mcp-a2a-bridge mcp-a2a-bridge

Bridge processes without that flag keep activity in memory and do not appear in the shared dashboard. The dashboard can start before or after them. Each MCP host (Claude, Hermes, Codex) can set A2A_BRIDGE_CLIENT_NAME to its own name.

Environment variable Default Purpose
A2A_BRIDGE_CONFIG — Absolute path to the agents JSON registry
A2A_BRIDGE_DASHBOARD unset (off) Set to 1 to persist this bridge process's activity
A2A_BRIDGE_ACTIVITY_DB ~/.config/a2a-bridge/activity.sqlite3 Shared SQLite activity database
A2A_BRIDGE_ACTIVITY_SOURCE remote Source label for activity written by compatible processes
A2A_BRIDGE_CLIENT_NAME mcp-a2a-bridge Label this bridge sends as X-A2A-Source and records as the source of its own activity.
A2A_BRIDGE_DASHBOARD_HOST 127.0.0.1 Dashboard bind address
A2A_BRIDGE_DASHBOARD_PORT 9100 Dashboard port
A2A_BRIDGE_DASHBOARD_TOKEN unset (off) Optional bearer token that protects the dashboard and API
A2A_BRIDGE_HERMES_AUDIT unset Read-only override for Hermes' a2a_audit.jsonl
HERMES_HOME unset Used to find $HERMES_HOME/a2a_audit.jsonl when no override is set

LAN deployment

The dashboard can be exposed deliberately on a trusted LAN without a token by setting an explicit non-loopback bind. This mode has no authentication, so use it only on a private, trusted network; never expose it to the public internet.

For protected LAN access, set a strong token and put the service behind a TLS-terminating reverse proxy with its own network access controls:

export A2A_BRIDGE_DASHBOARD_HOST=0.0.0.0
export A2A_BRIDGE_DASHBOARD_TOKEN="$(openssl rand -hex 32)"
uv run mcp-a2a-bridge-dashboard

When a token is set, dashboard HTML, static assets, API routes, and SSE routes all require it. Browser users enter it once at /login; the resulting HttpOnly, same-site session cookie lets EventSource reconnect normally. API clients can instead send Authorization: Bearer <token>. The service never logs the token. A token authenticates access but does not encrypt traffic, so do not use the direct HTTP LAN endpoint across untrusted networks; use HTTPS at the reverse proxy.

For macOS, the launchd/com.example.a2a-bridge-dashboard.plist template can run the dashboard at login. Replace its __REPO__ and __HOME__ placeholders before installing it as a LaunchAgent.

Dashboard frontend development

Node.js 24.15+ and npm are only required to work on the frontend or rebuild its bundled assets:

cd /absolute/path/to/mcp-a2a-bridge/dashboard
npm ci
npm run dev

Vite prints the development URL (normally http://localhost:5173). Build the assets consumed by the Python dashboard with npm run build.

Copilot A2A server

The optional Copilot example requires an authenticated copilot CLI:

PYTHONPATH=examples:src python examples/run_copilot_main_dev.py 9010 --cwd /path/to/default/repository

It binds to 127.0.0.1 because it runs Copilot with --allow-all-tools. Its incoming activity can use the same opt-in shared SQLite store and is shown with source and destination fields in the dashboard.

The dashboard can also read Hermes' native audit file without modifying Hermes. It checks A2A_BRIDGE_HERMES_AUDIT, then $HERMES_HOME/a2a_audit.jsonl, then ~/.hermes/a2a_audit.jsonl.

Development and tests

Run the Python test suite from the repository root:

uv sync --all-extras --locked
uv run pytest -v

Run dashboard tests or make a production dashboard build from dashboard/:

npm test
npm run build

CI runs the Python suite on Python 3.11, validates uv.lock, and runs the dashboard install, tests, and production build on the latest Node.js 24 release.

tests/test_integration.py runs an A2A agent in-process and exercises the bridge end to end.

Metadata

Release files for a2a-mcp-bridge 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a2a-mcp-bridge 0.1.0
File Size Uploaded Provenance Actions
a2a_mcp_bridge-0.1.0.tar.gz 1.2 MB With provenance Details for a2a_mcp_bridge-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a2a-mcp-bridge 0.1.0
File Interpreter ABI Platform Actions
a2a_mcp_bridge-0.1.0-py3-none-any.whl Python 3 none any Details for a2a_mcp_bridge-0.1.0-py3-none-any.whl

Total release size: 1.3 MB

Release files / a2a_mcp_bridge-0.1.0.tar.gz

Download URL a2a_mcp_bridge-0.1.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
5fffb9998a0f5775b5552b92c3c71bd3230b4b9bf93ed2bcbca7b14181e748d5
BLAKE2b-256 checksum
How to use checksums
57aa48b9a0c41afc4fbface6d4b3b2b031157ec8a668a66f440a30717c546e29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / a2a_mcp_bridge-0.1.0-py3-none-any.whl

Download URL a2a_mcp_bridge-0.1.0-py3-none-any.whl
Size 103.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73a4f30fbeb873e9aa8ee1eb51f9df57216593e1fb421408b5f61dc96809df3b
BLAKE2b-256 checksum
How to use checksums
82327a582a52842a4786d9984f00ebf0a2bd80dc3a3bc38325b6c92548c62d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for a2a-mcp-bridge 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for a2a_mcp_bridge-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page