You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
0088b0f3ad
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
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
- Configure: Edit
agent.pyand replaceyour-google-cloud-project-idandyour-mcp-server-namewith your Google Cloud Project ID and the name of your registered MCP server. - Run in CLI:
adk run contributing/samples/api_registry_agent -- --log-level DEBUG - Run in Web UI:
Navigate to
adk web contributing/samples/http://127.0.0.1:8080and select theapi_registry_agentagent.