| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
size-limit report 📦⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.
|
Sorry, something went wrong.
Co-Authored-By: GPT-6 (Codex) <codex@openai.com>
Co-Authored-By: GPT-6 (Codex) <codex@openai.com>
| Back | FazBrowse Home | New Git URL |
Dependencies: stacked on #25059. Sentry conventions #671 is merged; a release containing it must be published before this PR can merge, followed by updating the SDK dependency and lockfile to that release. This PR imports MCP_AUTH_CLIENT_NAME directly; the latest published release, 0.26.0, does not export it. Local validation used the package built from #671 without committing a local override or inventing a release version.
OAuth registration can identify a different application from MCP clientInfo, but transport AuthInfo has no standard client name. Add an opt-in getOAuthClientName resolver that records the registered name as the Sentry extension mcp.auth.client.name, independently of mcp.client.name.
Resolve the name once per incoming MCP request, including discovery and unsupported methods. The callback receives clientId and application-defined extra metadata when available and may read existing request-scoped authentication context. Only the returned name is recorded; resolver failures leave dispatch intact. Options follow the wrapper's existing first-explicit-value behavior, including manual configuration after auto-instrumentation.
The distinction follows MCP client registration. Real HTTP coverage exercises both MCP SDK majors in ESM/CJS, concurrent requests, and missing identities. Network metadata remains in #24506 and canonical attribute adoption in #25060; each builds on the common imports PR.