Skip to content

Create a subclass of MCPToolset to simplify connections to Google Managed MCP servers #3897

Closed as not planned
google/adk-python-community
#154

Description

@slilichenko

Base MCPToolset can be tricky to configure when connecting to the newly announced Google Managed MCP servers. The primary complexity is the need to dynamically refresh authentication token obtained using the default application credentials. While it can be done using header provider, this feature is not documented is not well known. Also, incapsulating the actual URLs of the MCP servers can improve usability of the toolset. For example,

bigquery_toolset = GoogleManagedMCPToolset(Product.BigQuery)

would be all that's needed to access the default BigQuery toolset in production environment (deployed on a managed GKE/CloudRun/Agent Engine). Obviously, additional parameters might be needed to configure/filter the tools, but the complexity of authentication and access would be hidden from the developer. It should also simplify integration of with the UI-based Agent Builder (no need to configure complex auth providers).

Activity

  1. added
    mcp[Component] This issues is related to MCP support
    tools[Component] This issue is related to tools
    on Dec 11, 2025
  2. added theissue type on Dec 11, 2025
  3. saifxyzyz commented on Dec 12, 2025

    @saifxyzyz

    Hey @slilichenko , can I work on this?

  4. llalitkumarrr commented on Mar 24, 2026

    @llalitkumarrr
    Collaborator

    Hello @slilichenko ,

    Thank you for raising this issue, we appreciate your inputs.

    Hello @saifxyzyz ,

    If you have the time, would you be open to submitting a pull request? We highly value community contributions.

  5. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Mar 24, 2026
  6. yugborana commented on Mar 27, 2026

    @yugborana

    @saifxyzyz i want to work on this issue. Have u started your work?

  7. saifxyzyz commented on Mar 27, 2026

    @saifxyzyz

    Feel free!

  8. yugborana commented on Mar 27, 2026

    @yugborana

    thanks. then I will start implementing

  9. added a commit that references this issue on Mar 28, 2026
    f1cf201
  10. GWeale commented on Sep 16, 2026

    @GWeale
    Collaborator

    out of scope for core. #5040 implemented this and was closed in march: a google-managed mcp subclass belongs in adk-python-community. @yugborana carried it over as adk-python-community#154.

    the auth half works today — header_provider runs on every tool request, so a callable minting an adc token gives you the refresh, and contributing/samples/mcp/mcp_dynamic_header_agent shows it. url encapsulation isn't covered; open a new issue if that's the part you need in core.

  11. slilichenko commented on Sep 16, 2026

    @slilichenko
    Author

    I am a bit confused. Why does this functionality belong to the community project? It's core Google Cloud functionality and everybody who uses GCP managed MCP servers should use this. Are we also planning to move all GCP-related tools under https://github.com/google/adk-python/tree/main/src/google/adk/tools (bigquery, spanner, pubsub, etc.) under the community project? If not - how do we draw the line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mcp[Component] This issues is related to MCP supportneeds review[Status] The PR/issue is awaiting review from the maintainertools[Component] This issue is related to tools

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions