Files
adk-python/contributing/samples/api_registry_agent
Kathy Wu 0088b0f3ad fix: Add x-goog-user-project header to http calls in API Registry
This gcloud authentication header is required as a project override when using google ADC credentials. It is required for all OneMCP servers. Originally I manually put it in the big query sample, but since it is used for all OneMCP, it makes sense to just add it to the core API Registry logic. I also refactored the auth header logic a bit to deduplicate.

Co-authored-by: Kathy Wu <wukathy@google.com>
PiperOrigin-RevId: 845967178
2025-12-17 16:41:50 -08:00
..

BigQuery API Registry Agent

This agent demonstrates how to use ApiRegistry to discover and interact with Google Cloud services like BigQuery via tools exposed by an MCP server registered in an API Registry.

Prerequisites

  • A Google Cloud project with the API Registry API enabled.
  • An MCP server exposing BigQuery tools registered in API Registry.

Configuration & Running

  1. Configure: Edit agent.py and replace your-google-cloud-project-id and your-mcp-server-name with your Google Cloud Project ID and the name of your registered MCP server.
  2. Run in CLI:
    adk run contributing/samples/api_registry_agent -- --log-level DEBUG
    
  3. Run in Web UI:
    adk web contributing/samples/
    
    Navigate to http://127.0.0.1:8080 and select the api_registry_agent agent.