Skip to content

[DOCS] Document the ADK MCP client (selector tools + MCP_* config) #462

Closed

Description

Summary

The Go ADK now ships an optional MCP client: an A2A server's agent can connect to MCP servers (streamable HTTP), discover their tools, and invoke them through two selector tools (mcp_list_tools, mcp_call_tool) that keep only tool metadata in the LLM context. It is feature-flagged (MCP_ENABLE, default off) and includes retry + polling backoff for cloud-native resilience.

Implemented in inference-gateway/adk PR #251 (closes inference-gateway/adk#152). The user-facing docs site should cover this so it is discoverable beyond the in-repo docs/mcp.md.

Affected pages / additions:

  • A new "MCP client" page under the ADK section: the selector pattern, wiring (NewMCPClientManager / Start / RegisterTools), and the LLM-required guard.
  • Configuration reference: new MCP_* environment variables (MCP_ENABLE, MCP_SERVERS, MCP_ENDPOINT, MCP_REFRESH_INTERVAL, MCP_DIAL_TIMEOUT, MCP_CALL_TIMEOUT, MCP_MAX_RETRIES, MCP_RETRY_INTERVAL, MCP_RETRY_MAX_INTERVAL).
  • Examples index: link the new examples/mcp server example.

Acceptance Criteria

  • MCP client page added under the ADK docs describing the selector pattern and wiring
  • MCP_* environment variables documented in the configuration reference
  • Example linked and cross-referenced from the tools/agent docs

Activity

  1. added
    documentation
    on Jul 22, 2026
  2. added theissue type on Jul 22, 2026
  3. moved this to Todo in 2026on Jul 22, 2026
  4. edenreich commented on Jul 22, 2026

    @edenreich
    Contributor

    @claude Can you document this?

  5. inference-gateway-maintainer commented on Jul 22, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 4m 55s —— View job • docs/issue-462-20260722-1601


    Documented the ADK MCP client

    Done. All three acceptance criteria are covered, entirely within adk.md (the Go ADK page).

    • Gather context (ADK docs structure, existing MCP page, config, examples, upstream docs/mcp.md)
    • Understand the request
    • Add MCP client section under the Go ADK docs (selector pattern + wiring + LLM guard)
    • Document MCP_* env vars in the ADK configuration reference
    • Link the examples/mcp example and cross-reference from the tools docs
    • Lint / format / build (all pass)
    • Commit and open PR

    What changed (adk.md)

    • New ## MCP client section (right after Tools and the ToolBox): the selector pattern - mcp_list_tools / mcp_call_tool keep only the tool metadata the model asks for in the LLM context - plus wiring (NewMCPClientManager / Start / RegisterTools), the LLM-backed-agent guard, resilience (connection retries + polling backoff), and limitations (HTTP-only, single-page listing, tools only).
    • New MCP_ block in the Configuration reference documenting all nine env vars (MCP_ENABLE, MCP_SERVERS, MCP_ENDPOINT, MCP_REFRESH_INTERVAL, MCP_DIAL_TIMEOUT, MCP_CALL_TIMEOUT, MCP_MAX_RETRIES, MCP_RETRY_INTERVAL, MCP_RETRY_MAX_INTERVAL), with a note that the prefix is A2A_MCP_ when the ADK config is nested under A2A_.
    • Linked examples/mcp in the Examples table (count bumped to seventeen) and cross-referenced the MCP client from the Tools section.

    Design note

    I put this in adk.md rather than a brand-new page: the sidebar has a single "Go ADK" entry, and Tools, Configuration reference, and Examples are all in-page ## sections there - so an in-page ## MCP client section matches the repo convention and is discoverable via the page outline. The root mcp.md is a different feature (the Gateway MCP middleware) and was left untouched.

    bun run format, bun run lint:md, and bun run build all pass.

    Heads up: the org-wide GitHub API rate limit is currently exhausted, so I couldn't move the roadmap board item to QA - that's a transient limit (not a permission issue) and can be set manually.

    Create a PR - already opened as #463.
    | Branch: docs/issue-462-20260722-1601

  6. moved this from Todo to Done in 2026on Jul 22, 2026
  7. inference-gateway-releaser commented on Jul 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.4 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions