Serve /mcp without the trailing slash in place, not by redirect #2
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.34) × (1 − Review Confidence (0.87)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.34 · 38 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 2 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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
Diff Size
diff_size
0.219
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
3 items
shouldn't e just add an extra fastapi decorator to each one?
yeah that sounds much better!
samuelcolvin
adriangb
Problem
A user cannot add OpenArtifact as a connector in Claude Desktop. Sign-in with Google completes, then Claude shows "Couldn't connect" with the error
McpServerError.Claude stores the connector URL as
https://openartifact.dev/mcp, without the trailing slash, also when the user types the slash. The server answers that URL with a redirect, and Claude does not follow it.Reproduction
The
Locationalso useshttp, nothttps.Logfire shows the failed attempt on 2026-10-09 (UTC):
| Time | Request | Status |
|---|---|---|
| 04:10:52.05 |
GET /auth/callback| 302 || 04:10:52.89 |
POST /token| 200 || 04:10:53.56 to 04:11:05.02 |
POST /mcp, 8 times | 307 each time |No
POST /mcp/arrived from Claude and the server recorded no exception.Change
backend/server.py: theSlashlessMcpASGI middleware rewrites/mcpto/mcp/and/.well-known/oauth-protected-resource/mcpto its slashed path before routing. The server answers these paths directly, with no redirect.render.yaml:FORWARDED_ALLOW_IPS='*'makes uvicorn trust theX-Forwarded-Protoheader from Render's proxy, so other redirects that the app builds usehttps.tests/test_server.py: a test that/mcpgives the same answer as/mcp/and that neither path redirects.Verification
ruffandbasedpyrightpass. The frontend lint did not run:node_modulesis not installed in the worktree.pytest: all tests pass excepttest_runtime_jsandtest_favicon. These two need the frontend build, which is absent in the worktree. They are not related to this change.🤖 Generated with Claude Code