Repository navigation
feat: generate ADK MCP client from spec.agent.mcp - #317
Merged
Merged
Conversation
Consume the consolidated spec.agent.mcp block (adl#119): when mcp.enabled is true on a Go agent, wire an MCPClientManager into main.go (registering the mcp_list_tools / mcp_call_tool selector tools) and emit the A2A_MCP_* defaults in .env.example. Each field maps 1:1 to an A2A_MCP_* env var; A2A_MCP_SERVERS is derived from the http servers' base URLs. The ADK MCP client is Go-only and streamable-HTTP-only, so stdio/sse servers are dropped from A2A_MCP_SERVERS and the block is ignored for TypeScript/Rust agents - the validator warns in both cases. Refresh the vendored schema to the adl#119 consolidation commit and regenerate types (MCP block, MCPServer). Add examples/go-agent-mcp.yaml and wire it into the regression lists.
Contributor
|
@claude I want that mcp is generated by default as disabled and there is .mcp.servers empty array when running |
Contributor
Author
|
Claude finished @edenreich's task in 4m 26s —— View job Done:
|
`adl init --defaults` now writes a spec.agent.mcp block with enabled: false and an empty servers list, so the MCP client is off by default and users can discover where to add servers.
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 23, 2026
## [0.54.0](v0.53.0...v0.54.0) (2026-07-23) ### ✨ Features * generate ADK MCP client from spec.agent.mcp ([#317](#317)) ([f24cc4c](f24cc4c)), references [adl#119](https://github.com/adl/issues/119) [adl#119](https://github.com/adl/issues/119) ### 👷 CI * add schema sync workflow triggered from adl ([#319](#319)) ([d003498](d003498)) ### 📚 Documentation * document schema sync process and symlink CLAUDE.md to AGENTS.md ([#321](#321)) ([851d662](851d662)) ### 🔧 Miscellaneous * sync ADL schema to v0.23.0 ([#322](#322)) ([50281c9](50281c9))
Contributor
|
🎉 This PR is included in version 0.54.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consume the consolidated
spec.agent.mcpblock (inference-gateway/adl#119) soadl generateproduces a working ADK MCP client - closing the generator half of this feature.When
spec.agent.mcp.enabledis true on a Go agent, the generator:MCPClientManagerintomain.go(guarded bycfg.A2A.MCPConfig.Enable) that connects to the servers in the background over streamable HTTP and registers themcp_list_tools/mcp_call_toolselector tools into the toolbox - no manual env-var wiring needed;mcpfield as its matchingA2A_MCP_*default in.env.example(manifest value is the default, overridden by the env var at runtime);A2A_MCP_SERVERSfrom thehttpservers' base URLs.enabled: false(or an omitted block) generates no MCP code.stdio/sse resolution
The ADK MCP client (adk#251,
adk/server/mcp.go, already in the pinnedadk v0.24.0) is streamable-HTTP-only and exists only in the Go ADK. So:stdio/sseservers are dropped fromA2A_MCP_SERVERS(the validator warns per server);spec.telemetrytreats Rust.Schema
Refreshed the vendored schema + regenerated types (
MCPblock,MCPServer). No tagged adl release carries the consolidation yet, soADL_SCHEMA_VERSIONis pinned to the adl#119 commit (cc65494); bump it to the tag once cut.Verification
examples/go-agent-mcp.yamland confirmed the project compiles againstadk v0.24.0(validatesNewMCPClientManager,cfg.A2A.MCPConfig,Start/Close/RegisterTools).go test ./...,golangci-lint, andadl validateover all examples pass.go-agent-mcpinto bothexamples:testandexamples:generate.Downstream
ADL_SCHEMA_VERSIONshould be bumped to the tagged adl release once it ships. The operator#173 follow-up (documenting rawA2A_MCP_*) is superseded by this generation.Closes #310