fix(core): preserve pathless MCP OAuth resources #60125
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.63) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 273 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.336
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #60125"
general
weight: 0.35
wozhenbang2004
Issue for this PR
Closes #58956
Type of change
What does this PR do?
Preserve a pathless OAuth resource such as
https://example.comthrough custom provider validation. The existing SDK patch now keeps the metadata string when the selected URL represents that same resource. A provider's deliberate query or path change still takes precedence.How did you verify your code works?
With Bun 1.4.4 and the locked MCP SDK 2.3.1, the regression in
mcp-oauth.test.tsexercises the realMcpOAuth.connectProvider. It fails with the old SDK condition, which adds a trailing/to the token-request resource, and passes with the patch. All 23 tests in the file pass.The full core suite finished with 6,991 passed, 33 skipped, and 12 failed. Focused reruns reproduced the same 12 failures on the original PR head (
25d60caf) and with the updated tests.Core
bun typecheckpassed using Bun’s checker. Rootbun run checkdid not complete because Astro typechecking was killed with SIGKILL. The separate corebun run typecheck:tscalso did not complete (SIGKILL).Visual
Screenshots / recordings
No interface change.
Checklist