Skip to content

feat(adk): retain MCP server identities in runtime diagnostics - #2506

Open
Whxuan0701 wants to merge 1 commit into
kagent-dev:mainfrom
Whxuan0701:feat/mcp-server-runtime-identity
Open

feat(adk): retain MCP server identities in runtime diagnostics#2506
Whxuan0701 wants to merge 1 commit into
kagent-dev:mainfrom
Whxuan0701:feat/mcp-server-runtime-identity

Conversation

@Whxuan0701

@Whxuan0701 Whxuan0701 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve stable MCP server names in the Go runtime configuration for RemoteMCPServers and Agent Plugin MCP servers
  • include the server name in structured MCP initialization, success, and failure logs
  • identify plugin-provided servers as <plugin>/<server> so operators can distinguish multiple servers without relying on URLs or array indexes

This adds an optional runtime-only JSON field and does not change the public CRD schema. Configurations that omit name retain their existing behavior.

Testing

  • cd go && go test ./api/adk ./adk/pkg/mcp ./core/v2/agentplugins ./core/v2/translator ./core/internal/controller/translator/agent
  • cd go && go vet ./api/adk ./adk/pkg/mcp ./core/v2/agentplugins ./core/v2/translator ./core/internal/controller/translator/agent
  • git diff --check

Risk / Notes

  • name uses omitempty, so existing serialized runtime configs remain compatible.
  • RemoteMCPServer names come from object metadata; Agent Plugin MCP names combine the validated plugin manifest name with the server key.
  • MCP transport construction and tool filtering are unchanged.

Signed-off-by: Whxuan0701 <102815982+Whxuan0701@users.noreply.github.com>
@Whxuan0701
Whxuan0701 requested review from a team and supreme-gg-gg as code owners August 20, 2026 04:04
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant