Skip to content

[DOCS] Document spec.agent.mcp MCP client generation in adl-cli #473

Closed

Description

Summary

adl-cli now generates the ADK MCP client from the consolidated spec.agent.mcp block (adl-cli PR inference-gateway/adl-cli#317, closing inference-gateway/adl-cli#310). When spec.agent.mcp.enabled is true on a Go agent, adl generate wires an MCPClientManager into main.go (registering the mcp_list_tools / mcp_call_tool selector tools) and emits the A2A_MCP_* defaults into .env.example. A2A_MCP_SERVERS is derived from the http servers' base URLs.

The docs should cover this user-facing manifest feature. Key points:

  • spec.agent.mcp shape: enabled (required master switch) plus servers[], endpoint, refreshInterval, dialTimeout, callTimeout, maxRetries, retryInterval, retryMaxInterval.
  • Each field maps 1:1 to an A2A_MCP_* env var; the manifest value is the emitted default, overridden at runtime. Defaults: endpoint=/mcp, refreshInterval=5m, dialTimeout=30s, callTimeout=30s, maxRetries=0, retryInterval=2s, retryMaxInterval=30s.
  • Limitation: the ADK MCP client is Go-only and streamable-HTTP-only. stdio/sse servers are dropped from A2A_MCP_SERVERS (the validator warns), and the block is ignored for TypeScript/Rust agents.

Affected pages

  • adl-cli reference / features page (MCP client section, alongside Telemetry)
  • Any spec.agent manifest reference that lists sub-blocks

Acceptance Criteria

  • Document the spec.agent.mcp block and its fields with defaults
  • Document the A2A_MCP_* runtime env-var mapping and A2A_MCP_SERVERS derivation
  • Document the Go-only, HTTP-only limitation and stdio/sse handling

Reference PR: inference-gateway/adl-cli#317

Activity

  1. added
    documentation
    on Jul 23, 2026
  2. edenreich commented on Jul 23, 2026

    @edenreich
    Contributor

    @claude Can you work on this? use /ponytail:ponytail

  3. added theissue type on Jul 23, 2026
  4. moved this to In progress in 2026on Jul 23, 2026
  5. inference-gateway-maintainer commented on Jul 23, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 4m 8s —— View job • docs/issue-473-20260723-0957 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-473-20260723-0957?quick_pull=1&title=Issue%20%23473%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23473%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented spec.agent.mcp MCP client generation

    • Read adl-cli.md to find the Telemetry & spec.agent reference sections
    • Assessed what was already present vs. missing
    • Documented the Go-only / streamable-HTTP-only limitation and stdio/sse handling
    • Documented the A2A_MCP_SERVERS derivation
    • Validated: format:check, lint:md, build (all pass)
    • Committed and opened PR

    Finding: the spec.agent.mcp block, its fields, defaults, and the full A2A_MCP_* env-var mapping table were already documented in the "MCP Servers" section of adl-cli.md (added in 86078ec). So acceptance criteria 1 and the env-var-mapping half of criterion 2 were already met.

    What I added (one focused note under the existing servers[] table, no duplication):

    • A2A_MCP_SERVERS is derived from the base URLs of the http servers.
    • adl generate wires an MCPClientManager into a Go agent's main.go, registering the mcp_list_tools / mcp_call_tool selector tools and emitting the A2A_MCP_* defaults into .env.example.
    • The ADK MCP client is streamable-HTTP-only: stdio and sse servers are dropped from A2A_MCP_SERVERS (validator warns per server).
    • The whole block is ignored for TypeScript/Rust agents (validator warns), mirroring how spec.telemetry treats Rust.

    Details verified against adl-cli PR #317.

    PR: #475

    Note: The Roadmap board (project #7) status could not be flipped to QA - the org-project GraphQL API was rate-limited this run (transient, not a permission gap). A maintainer may need to move it manually.
    · Branch docs/issue-473-20260723-0957

  6. moved this from In progress to Done in 2026on Jul 23, 2026
  7. inference-gateway-releaser commented on Jul 27, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.5 🎉

    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