Dobby
Google ADK

Connect Your ADK Agent to Dobby

Google's Agent Development Kit (ADK) has native MCP and A2A support. Connect to Dobby in 2 minutes for cost tracking, content safety, approval gates, and a kill-switch.

Get Started in 2 Minutes

  1. 1Install: pip install google-adk
  2. 2Get a key: Create a Gateway key at Dobby Dashboard
  3. 3Add MCPToolset: Copy the Python code below into your agent

3 Integration Paths

Recommended

Path 1: MCP Gateway

2 minutes

ADK native MCPToolset connects to 90 Dobby MCP tools. Fastest path — your agent gets task management, approvals, knowledge base, and more.

Path 2: A2A Protocol

Bidirectional

ADK auto-generates Agent Cards. Dobby auto-discovers them. Task delegation flows both ways with full governance.

Path 3: External Agent

Webhooks

Register your ADK agent endpoint. Set up cron schedules, manual triggers, and approval gates before execution.

Path 1: MCP GatewayFastest

ADK has native MCP support via MCPToolset. Your agent gets access to all 90 Dobby MCP tools — task management, approvals, knowledge base, agent operations, and more.

ADK Agent with Dobby MCP

python
from google.adk import Agent
from google.adk.tools import MCPToolset

# Connect ADK agent to Dobby's MCP Gateway
dobby_tools = MCPToolset(
    command="npx",
    args=["-y", "@dobbyai/mcp-external"],
    env={
        "DOBBY_API_URL": "https://dobby-ai.com",
        "DOBBY_API_KEY": "gk_user_your_key_here",
        "DOBBY_TENANT_ID": "tenant_your_id",
    }
)

agent = Agent(
    model="gemini-2.5-flash",
    name="my-dobby-agent",
    instruction="You are a helpful agent with Dobby tools.",
    tools=[dobby_tools],
)

Path 2: A2A ProtocolBidirectional

ADK auto-generates Agent Cards at /.well-known/agent.json. Dobby discovers them and registers the agent automatically. Tasks flow both ways with governance, approvals, and audit trail.

A2A Task Delegation

python
from google.adk import Agent
from google.adk.a2a import A2AClient

# Discover Dobby's capabilities via A2A
dobby = A2AClient("https://dobby-ai.com")
card = dobby.discover()

# Delegate a task to Dobby
task = dobby.create_task(
    skill_id="code-review",
    messages=[{
        "role": "user",
        "content": [{"type": "text", "text": "Review PR #42"}]
    }]
)

print(f"Task {task.id}: {task.status}")

Path 3: External Agent (Webhooks)Scheduled

Register your ADK agent URL in Dobby. Set up cron schedules, manual triggers, and approval gates. Dobby sends webhook POSTs to your agent, and your agent sends callbacks when done.

Webhook Handler

python
# 1. Register your ADK agent in Dobby dashboard
#    External Agents > Add > Google ADK > Enter URL

# 2. Your agent receives webhook triggers:
from fastapi import FastAPI
app = FastAPI()

@app.post("/webhook")
async def handle_trigger(payload: dict):
    task_id = payload["task_id"]
    # Process the task...

    # 3. Send callback to Dobby
    import httpx
    async with httpx.AsyncClient() as client:
        await client.post(
            f"https://dobby-ai.com/api/v1/external-agents/{agent_id}/events",
            json={"type": "run.completed", "task_id": task_id},
            headers={"Authorization": f"Bearer {gateway_key}"}
        )

What You Get

Cost Tracking

Per-agent, per-provider, per-model cost attribution with daily trends

Content Shield

26 patterns for prompt injection detection on every LLM call

Kill-Switch

Instantly halt any agent. 4 scopes: all, LLM only, new keys, agents only

Approval Gates

Human-in-the-loop for destructive actions. Configurable auto-approve rules

Ready to connect your ADK agent?

Create a free account and get a Gateway key in under a minute.

ADK Integration — Dobby AI Docs