Connect Google Agent Development Kit (ADK) agents to Civic's MCP Hub for access to 85+ MCP servers with built-in guardrails, audit trails, and instant revocation.
| Language | LLM | API Key Required |
|---|---|---|
| Python | Claude | ANTHROPIC_API_KEY |
| TypeScript | Gemini | GOOGLE_GENAI_API_KEY |
| Go | Gemini | GOOGLE_API_KEY |
All implementations connect to Civic via MCP Streamable HTTP transport.
User Message
|
v
Runner --> LlmAgent --> LLM (Claude / Gemini)
| |
| v
| MCPToolset --(StreamableHTTP)--> Civic MCP Hub
| | |
v v v
Session Tool Discovery Guardrails / Audit / Revocation
+ Invocation
Core components:
| Component | Purpose |
|---|---|
| LlmAgent | Wraps an LLM with instructions and tools |
| MCPToolset | Connects to Civic's MCP Hub, discovers and invokes tools |
| Runner | Orchestrates agent execution and streams response events |
| SessionService | Manages conversation state (in-memory for these demos) |
cd python
cp .env.example .env # fill in CIVIC_TOKEN, ANTHROPIC_API_KEY
uv run adk web # opens ADK console at http://localhost:8000See python/README.md for the FastAPI chat server option.
cd typescript
npm install
cp .env.example .env # fill in CIVIC_TOKEN, GOOGLE_GENAI_API_KEY
npm startSee typescript/README.md for details.
cd go
cp .env.example .env # fill in CIVIC_TOKEN, GOOGLE_API_KEY
go run main.goSee go/README.md for details.
All tool calls route through Civic's MCP Hub. You get guardrails, audit logs, and kill-switch revocation without changing agent code.
Set profile= in your CIVIC_URL to select which toolkit your agent connects to:
CIVIC_URL=https://app.civic.com/hub/mcp?profile=your-skill