Repository navigation
feat(agent): surface ADK MCP client config as A2A_MCP_* - #172
Merged
Merged
Conversation
Add an MCP client block to the Agent CRD and emit the A2A_MCP_* env vars from spec.mcp, mirroring the telemetry/queue pattern. Disabled by default; connection knobs carry kubebuilder defaults matching adk#251. Closes #171
This was referenced Jul 22, 2026
3 tasks
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 23, 2026
## [0.21.0](v0.20.0...v0.21.0) (2026-07-23) ### ✨ Features * **agent:** surface ADK MCP client config as A2A_MCP_* ([#172](#172)) ([fbab300](fbab300)), closes [#171](#171) * **gateway:** add round-robin model routing config ([#176](#176)) ([062f48a](062f48a)), closes [#175](#175) ### 🐛 Bug Fixes * **gateway:** emit TELEMETRY_TRACING_* env vars ([#170](#170)) ([691e3a5](691e3a5)) ### 📚 Documentation * document shared provider list in AGENTS.md ([#174](#174)) ([1533f59](1533f59)) ### 🔧 Miscellaneous * add skills for both claude and regular agents ([9f3bdf4](9f3bdf4))
Contributor
|
🎉 This PR is included in version 0.21.0 🎉 The release is available on GitHub release 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
Adds an MCP client block to the
AgentCRD and emits theA2A_MCP_*env vars the Go ADK reads (from inference-gateway/adk#251), so an operator-managed agent can declaratively connect to MCP servers and expose their tools to the LLM. Disabled by default.This is the agent's MCP client - distinct from the existing
MCPCRD, which deploys an MCP server workload.Changes
api/v1alpha1/agent_types.go: newMCPClientSpec+spec.mcpfield (mirrorsQueueSpec), with kubebuilder defaults matching adk#251 (endpoint=/mcp,refreshInterval=5m,dialTimeout=30s,callTimeout=30s,maxRetries=0,retryInterval=2s,retryMaxInterval=30s).internal/controller/agent_controller.go:agentMCPEnvVarshelper wired intobuildAgentEnvironmentVars, following theagentTelemetryEnvVarspattern.A2A_MCP_ENABLEis always emitted; the connection knobs only when enabled.A2A_MCP_SERVERSand the string knobs are omitted when empty so a zero value never clobbers the ADK default.zz_generated.deepcopy.go, CRD base, and shippedmanifests/*.yaml.mcp:block to the agent sample andagentMCPEnvVarscontroller tests.Env vars emitted (when enabled)
A2A_MCP_ENABLE,A2A_MCP_SERVERS,A2A_MCP_ENDPOINT,A2A_MCP_REFRESH_INTERVAL,A2A_MCP_DIAL_TIMEOUT,A2A_MCP_CALL_TIMEOUT,A2A_MCP_MAX_RETRIES,A2A_MCP_RETRY_INTERVAL,A2A_MCP_RETRY_MAX_INTERVAL.Downstream / follow-ups
A2A_MCP_*.env.example.tmpl/CONFIGURATIONS.md.tmpl, and [DOCS] Document the ADK MCP client (selector tools + MCP_* config) docs#462) are tracked separately; a[DOCS]ticket is filed alongside this PR.Testing
task generate manifests fmt vet lint- clean (0 lint issues)task test- passesCloses #171