# Catforce Data Agents Demo

> A mock CRM for cats built with Google’s Agent Development Kit (ADK), a private FastMCP server on Cloud Run, and BigQuery support-case queries.

- Format: Project
- Date: Nov 2025 (2025-11-06)
- Topics: ADK, MCP, BigQuery, Cloud Run, Vertex AI
- URL: https://jeffn.dev/projects/catforce-adk/
- Repository: https://github.com/jeffonelson/catforce-adk

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

```bash
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](https://github.com/jeffonelson/catforce-adk).
