Repository navigation
fix(server): always report opencode as mcp client name - #53471
Merged
Merged
Conversation
app.name is the artifact/OPENCODE_CLIENT telemetry tag (cli, desktop, acp), so MCP servers were seeing it in the initialize handshake instead of opencode. Co-authored-by: Eric Curtin <eric.curtin@docker.com>
opencode-agent
Bot
force-pushed
the
fix-mcp-client-name
branch
from
October 6, 2026 03:15
bbdd9dc to
f0f58a0
Compare
3 tasks done
2 of 6 tasks
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.
Issue for this PR
Closes #51578
Type of change
What does this PR do?
The server passed
options.app.nameas the MCPclientInfo.name. That value is the artifact/OPENCODE_CLIENTtelemetry tag, so MCP servers sawcli,desktop, oracpin theinitializehandshake instead ofopencodeand could no longer identify the client (regressing #2289). v1 always sentopencode.The MCP client name is now always
opencode. The version still comes fromapp.version, andOPENCODE_CLIENTkeeps driving the user agent and telemetry. This is a smaller alternative to #51825, which still letsOPENCODE_CLIENToverride the MCP name, so desktop and ACP would keep sendingdesktopandacp.How did you verify your code works?
bun run servewith a stub stdio MCP server that logs itsinitializerequest:origin/v2:clientInfo.nameiscliby default anddesktopwithOPENCODE_CLIENT=desktop.opencodein both cases.bun run typecheckinpackages/server.Checklist
Requested by: @rekram1-node (Aiden Cline via Slack)