← Front door All writing and projects

Catforce Data Agents Demo

View on GitHub ↗
On this page

Catforce is a playful reference implementation showing how an Agent Development Kit (ADK) agent combines enterprise BigQuery tables with custom Model Context Protocol (MCP) tools and external knowledge inside one conversational interface.

Architecture

The repository splits cleanly into two deployable parts:

  • Catforce Agent (/agents): An ADK agent running gemini-2.5-flash on Vertex AI (launched locally with uv run adk web). It inspects incoming user questions and routes across BigQuery, the remote MCP server, and Wikipedia.
  • MCP Server (/mcp): A Python FastMCP service deployed to Cloud Run with --no-allow-unauthenticated and a dedicated service account (mcp-server-sa). It exposes custom tools for converting cat years to human years, fetching cat facts, and placing mock supply orders.

Example queries

Once the Cloud Run MCP server is deployed and the BigQuery cases tables are populated, the agent routes different parts of a single session to the right backend automatically:

  • "If I'm 3 in cat years, how many human years is that?" calls the Cloud Run FastMCP server.
  • "Give me a fun cat fact" calls the Cloud Run FastMCP server.
  • "How long does a domestic shorthair cat live?" retrieves general knowledge from Wikipedia.
  • "Are there any cats in the cases table who are complaining about food? What's the ID?" queries BigQuery directly.

Quickstart

git clone https://github.com/jeffonelson/catforce-adk.git
cd catforce-adk/agents
uv run adk web

Source code and step-by-step Cloud Run and BigQuery setup commands are in jeffonelson/catforce-adk.

Continue reading