[ENG-1118] Fix MCP OAuth identity by reporting plugin versions in headers - #272
Closed
liwenXtrace wants to merge 1 commit into
Closed
liwenXtrace wants to merge 1 commit into
liwenXtrace wants to merge 1 commit into
Conversation
liwenXtrace
deployed
to
production-plugin-release
September 21, 2026 21:41 — with
GitHub Actions
Active
🧠 Session context1 session behind this pull request. Team rules that fired while building this
Effort Sessions
|
Contributor
Author
|
Superseded by XTraceAI/agent-plugins-internal#42, now merged. The OAuth fix will reach production through promotion of the tested internal commit. Public #277 updates the CI guard to accept that export. This original PR should not be merged directly. |
This branch was successfully 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.
Refs https://linear.app/xtrace/issue/ENG-1118/mcp-login-is-broken
Companion backend validation: https://github.com/XTraceAI/MemHub-Backend/pull/1354 (targets staging; shared header parser already exists there).
Codex hashes the complete MCP endpoint URL to derive its CIMD OAuth client ID. Adding
?memhub_plugin_version=0.76.0changed production's registeredYzZcYxKAiT6gidentity to-ugMLRSp9raH, which Auth0 rejected asUnknown clientbefore login. This PR restores the canonical production/staging URLs and moves the loaded package version toheaders.X-MemHub-Plugin-Versionin both shipped MCP formats. Backend minimum-version checks still receive the version on requests.Validation:
TMPDIR=/private/tmp uv run --python 3.12 --with 'mcp<2' bash scripts/check-plugin.sh— passed: all 73 suites in both bare-Python and MCP-SDK environments, plus both shell hook runs.session_title_test.pyinspected local user transcripts and failed an unrelated fallback assertion. The CI wrapper isolates account state and that suite passes there.headersto HTTP headers. A live native-host OAuth/refresh test and the requiredReal agent evidencecheck remain release prerequisites; this PR does not claim those ran.Draft — release planned September 22, 2026. Do not merge, tag, move marketplace pins, or deploy today. A merge to
mainpublishes immediately to Codex/Cursor. Verify the backend version-header contract in the target environment, publish the packages viaRELEASING.md, and then run fresh login and protected-operation checks. Keep compatibility floors and enforcement flags unchanged. No new Auth0 client registration is needed for the restored canonical production URL.