A2a Reference MCP Bridge
A2A β MCP bidirectional protocol adapter
Ask AI about A2a Reference MCP Bridge
Powered by Claude Β· Grounded in docs
I know everything about A2a Reference MCP Bridge. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
a2a-reference-ts
Production-ready TypeScript implementation of the Agent-to-Agent (A2A) protocol, with a bidirectional A2A β MCP bridge.
This monorepo provides canonical types, a server framework, a client SDK, and supporting infrastructure for building interoperable AI agents that communicate over the A2A protocol.
Features
- Canonical types & validation β Zod schemas derived from the A2A protocol specification
- Server framework β Express and Hono adapters with JSON-RPC routing, SSE streaming, and task lifecycle management
- Client SDK β Type-safe agent discovery, task submission, and streaming event consumption
- Authentication β Pluggable strategies including OAuth2, JWT, and API key verification
- Persistence β In-memory and Redis-backed task stores with consistent abstractions
- A2A β MCP bridge β Bidirectional adapter enabling A2A agents to invoke MCP tools and MCP clients to interact with A2A agents
- Observability β Structured logging with Pino, built-in tracing hooks, and Prometheus-compatible metrics endpoints
Installation
Using the packages
Packages are published under the @reaatech scope and can be installed individually:
# Core types and schemas
pnpm add @reaatech/a2a-reference-core
# Server framework
pnpm add @reaatech/a2a-reference-server
# Client SDK
pnpm add @reaatech/a2a-reference-client
# Authentication strategies
pnpm add @reaatech/a2a-reference-auth
# Task persistence
pnpm add @reaatech/a2a-reference-persistence
# A2A β MCP bridge
pnpm add @reaatech/a2a-reference-mcp-bridge
# Observability utilities
pnpm add @reaatech/a2a-reference-observability
Contributing
# Clone the repository
git clone https://github.com/reaatech/a2a-reference-ts.git
cd a2a-reference-ts
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run the test suite
pnpm test
# Run linting
pnpm lint
Quick Start
Create a minimal A2A agent with the server framework:
import { createA2AServer } from "@reaatech/a2a-reference-server";
import { z } from "zod";
const server = createA2AServer({
name: "greeter",
description: "A simple agent that greets users",
skills: [
{
id: "greet",
name: "Greet User",
description: "Returns a personalized greeting",
parameters: z.object({ name: z.string() }),
handler: async ({ params }) => ({
artifact: {
parts: [{ type: "text", text: `Hello, ${params.name}!` }],
},
}),
},
],
});
server.listen(3000, () => console.log("A2A agent running on :3000"));
See the examples/ directory for complete working samples, including task streaming, multi-agent workflows, MCP bridging, and authenticated agents.
Packages
| Package | Description |
|---|---|
@reaatech/a2a-reference-core | Canonical A2A types and Zod schemas |
@reaatech/a2a-reference-server | A2A server framework (Express + Hono) |
@reaatech/a2a-reference-client | A2A client SDK |
@reaatech/a2a-reference-auth | Pluggable authentication strategies |
@reaatech/a2a-reference-persistence | Task store abstractions |
@reaatech/a2a-reference-mcp-bridge | A2A β MCP bidirectional adapter |
@reaatech/a2a-reference-observability | Logging, tracing, and metrics |
Documentation
ARCHITECTURE.mdβ System design, package relationships, and data flowsAGENTS.mdβ Coding conventions and development guidelinesCONTRIBUTING.mdβ Contribution workflow and release processdocs/β Deep dives on authentication, deployment, protocol compliance, and the MCP bridge
