Clinical AI Kit home Documentation hub / MCP and A2A

MCP and A2A

Sources: Antigravity, 2026-07-05 Raw: MCP and A2A Source

MCP and A2A

Two interoperability surfaces let external clients and agents use Clinical AI Kit capabilities.

flowchart LR
    EXT["External client
(Claude Desktop, other agents)"] <-- "MCP (JSON-RPC 2.0 / stdio)" --> MCP["mcp_server/server.py
7 clinical tools (FastMCP)"] REMOTE["Remote agent
(any A2A client)"] <-- "A2A protocol
agent card + tasks" --> A2A["capstone_agent/a2a_server.py
:8001"]

MCP server

mcp_server/server.py — a clinical MCP server with real database-backed tools exposed via FastMCP (JSON-RPC 2.0 over stdio). Any MCP-compatible client (ADK, Claude Desktop, other frameworks) can discover and call the 7 clinical tools. The root orchestrator also consumes MCP tools directly ([[Agent Architecture]]).

A2A server

capstone_agent/a2a_server.pyto_a2a(root_agent) ASGI app (guarded import). Serves the agent card at /.well-known/agent-card.json describing capabilities, input/output schemas, and supported skills. Remote agents delegate tasks over the A2A protocol with isolated memory context — only task-relevant, non-sensitive data crosses the boundary (Layer 4 of [[Memory Layers]]).

uvicorn capstone_agent.a2a_server:app --port 8001

Related: [[System Overview]] · [[Course Concepts Map]] (Days 2a, 5a)