Repository navigation
Conversation
Contributor
size-limit report 📦
|
betegon
marked this pull request as ready for review
October 5, 2026 11:34
betegon
requested review from
andreiborza and
mydea
and removed request for
a team
October 5, 2026 11:34
betegon
marked this pull request as draft
October 5, 2026 11:35
This was referenced Oct 5, 2026
betegon
force-pushed
the
feat/mcp-oauth-client-name
branch
from
October 5, 2026 14:50
9b2892f to
914fd50
Compare
betegon
force-pushed
the
feat/mcp-oauth-client-name
branch
from
October 13, 2026 08:52
914fd50 to
ead1950
Compare
betegon
added a commit
that referenced
this pull request
Oct 13, 2026
Use `@sentry/conventions/attributes` for registered MCP keys, including
all singleton and indexed result fields. The branch now uses published
conventions `0.27.0` from `develop`, so both local result prefixes can
be removed.
Before, the SDK constructed `mcp.tool.result.0.content` from a local
prefix. After, `MCP_TOOL_RESULT_KEY_CONTENT.replace('<key>', '0')`
produces that same key. Singleton keys, values, original array indexes,
and input/output capture behavior remain unchanged. Deprecated
tool-result fields stay emitted for compatibility; this change adds no
aliases or backfill.
This is the mechanical base for network metadata (#24506), OAuth
attribution (#24508), and canonical OpenTelemetry attributes (#25060).
The latter separately adds complete serialized results in
`gen_ai.tool.call.result`.
betegon
force-pushed
the
feat/mcp-oauth-client-name
branch
from
October 14, 2026 08:53
ead1950 to
f965bba
Compare
This branch has not been deployed
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.
OAuth registration can identify a different application from MCP
clientInfo, but transportAuthInfohas no standard client name. Add an opt-ingetOAuthClientNameresolver that records the registered name asmcp.auth.client.name, independently ofmcp.client.name.For example, when a registered application named
Example Desktopconnects through a client identifying asexample-connector, before the span contains onlymcp.client.name = "example-connector". After configuring the resolver, it also containsmcp.auth.client.name = "Example Desktop".Resolve the name once per incoming request, including discovery and unsupported methods. The callback receives
clientIdand application-definedextrametadata when available and may read request-scoped authentication context. Only the returned name is recorded; resolver failures leave dispatch intact. Preserve the wrapper's existing first-explicit-value option behavior. Real HTTP coverage exercises both MCP SDK majors in ESM/CJS, concurrent requests, and missing identities.#25059 is merged; this branch is rebased on develop and imports
MCP_AUTH_CLIENT_NAMEfrom published@sentry/conventions@0.27.0. The conventions publication blocker is resolved. This identity distinction follows MCP client registration. Network metadata (#24506) and canonical attributes (#25060) remain separate changes.Validated the 48-project SDK build, formatting and lint, 151 MCP unit tests, and ten real MCP SDK v1/v2 integration tests after rebase.