KJLavender

A2a Registry Gateway POC — Development skill for Claude Code

Development community

Runnable PoC: A2A agents, an MCP agent registry and a policy gateway (built-in or agentgateway).

How to install A2a Registry Gateway POC

This entry records only its repository, not the path inside it, so there is no exact command to give. Open KJLavender/a2a-registry-gateway-poc and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What A2a Registry Gateway POC does

Runnable PoC: A2A agents, an MCP agent registry and a policy gateway (built-in or agentgateway).

Alternatives in Development

  • Lasso MCP Gateway — Plugin-based gateway that intercepts and sanitizes sensitive information across MCP orchestration 360 ★
  • Claude Desktop Fedora — Claude Desktop for Fedora 44 — native RPM built from Anthropic's official Linux x86_64 build 174 ★
  • Mini Harness — An agent harness built for teaching: ~1,400 lines of Python with goal mode, permissions, skills, MCP and Claud 107 ★

README

A2A Registry + Gateway PoC

**English** | [繁體中文](README.zh-TW.md)

A small, runnable proof of concept for letting AI agents from different teams work together safely. An AI assistant (the "orchestrating agent") can find expert agents owned by other teams, check whether the user is allowed to use them, hand them a task, and wait for the result. A2A (Agent2Agent) is the open protocol agents use to talk to each other. MCP (Model Context Protocol) is the protocol AI assistants use to call tools.

The core is plain Python 3.11+ standard library, with nothing to install. Two optional parts need packages (`pip install -r requirements-extras.txt`): semantic search and one agent built on the official A2A Python SDK.

What is in it

Claude Code / demo runtime  (MCP client, signed in as a user)
        │  Bearer token
        ▼
Agent Gateway  :18000   one policy check point for MCP and A2A
        │               (poc/gateway.py, or the agentgateway binary)
        │  token exchange (the user's token is never forwarded)
        │  + a transaction token that says who started the request (Txn-Token service :18500)
        ▼
Agent Registry :18200   MCP server: search_agents, invoke_agent, provide_input,
        │               cancel_task, resource a2a-task://{agent}/{task}
        │  every A2A call goes back through the gateway
        ▼
Agent Gateway ──► A2A agents :18101-18105 (A2A 1.0, JSON-RPC; one of them runs on the official A2A SDK)
Mock IdP :18300  stands in for Keycloak (RS256 JWT, JWKS, RFC 8693 token exchange)
Keycloak :18080  optional, the real thing (keycloak/docker-compose.yml)
Path What it does
poc/gateway.py Built-in gateway: decides which runtime sees which tools, who may call a tool, who may delegate to which agent, and who owns a task
poc/agw_config.py Turns config/policy.json into an agentgateway config (CEL rules), so both gateways use one policy file
poc/registry.py + poc/search.py Agent catalog, searc