You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9e8b3bc
Browse filesBrowse the repository at this point in the historyBrowse files
Rajat
committed
Conformance with SendLit's implementation of MCP July 26 spec
| Public URL times out | Check local `/health`, Funnel/tunnel process, listener target, public DNS, and TLS before inspecting MCP code. |
598
-
|`ERR_ERL_UNEXPECTED_X_FORWARDED_FOR`| Set `ENABLE_TRUST_PROXY=true` only for the intended one-hop proxy deployment. |
599
-
|`auth_oauth_resource` does not exist | Apply migration `0004` before starting Better Auth. |
600
-
| JWKS schema says `alg` is missing | Apply migration `0005` and confirm deployed schema/code alignment. |
601
-
|`invalid_client` fetching a metadata URL | Check HTTPS, public DNS resolution, fetch timeout/size policy, redirect behavior, and the exact client metadata URL. |
602
-
|`invalid_client_metadata` for Device Code or JWT Bearer | Confirm the request uses the canonical VS Code or Claude metadata URL and the exact grant filter is active. Do not add a global filter. |
603
-
| Browser OAuth succeeds, then `/mcp` returns `invalid_token`| Confirm the installed OAuth kit calls Better Auth 1.7 `verifyBearerToken()` and validates the exact public MCP audience. Clear stale client tokens after deploying the fix. |
604
-
| OAuth client remains “Authenticating” | Inspect token exchange and the first authenticated `POST /mcp`; browser callback success alone does not prove token issuance or MCP initialization. |
605
-
| Client reports `404 Cannot GET /mcp` after a `400`, `401`, or `409` POST | The GET is an expected SSE fallback and secondary symptom. Keep GET as 404 and fix the earlier POST. |
606
-
| Consent lists every MCP scope | This can be the registered client capability set. Verify the requested scope, issued token scope, and per-tool enforcement before treating it as an over-grant. |
607
-
| Client shows generic failure for a new user | Confirm the user belongs to a FrontLit team and that the no-team page appears before consent. |
608
-
| Single-team token lacks `team_id`| Confirm the sole-team path returns that team's ID as the consent `reference_id`. |
609
-
| Tool mutation succeeds but client reports output validation failure | Inspect `structuredContent` for unnormalized `Date` values and ensure the result went through `jsonResult()`. |
610
-
| VS Code works but Inspector or Claude fails | Test protocol era and OAuth onboarding separately: older Streamable HTTP, modern 2026, CIMD, and DCR are independent compatibility axes. |
| Public URL times out | Check local `/health`, Funnel/tunnel process, listener target, public DNS, and TLS before inspecting MCP code. |
578
+
|`ERR_ERL_UNEXPECTED_X_FORWARDED_FOR`| Set `ENABLE_TRUST_PROXY=true` only for the intended one-hop proxy deployment. |
579
+
|`auth_oauth_resource` does not exist | Apply migration `0004` before starting Better Auth. |
580
+
| JWKS schema says `alg` is missing | Apply migration `0005` and confirm deployed schema/code alignment. |
581
+
|`invalid_client` fetching a metadata URL | Check HTTPS, public DNS resolution, fetch timeout/size policy, redirect behavior, and the exact client metadata URL. |
582
+
|`invalid_client_metadata` for Device Code or JWT Bearer | Confirm the request uses the canonical VS Code or Claude metadata URL and the exact grant filter is active. Do not add a global filter. |
583
+
| Browser OAuth succeeds, then `/mcp` returns `invalid_token`| Confirm `resolve-auth.ts` calls Better Auth 1.7 `verifyBearerToken()` and validates the exact public MCP audience. Clear stale client tokens after deploying the fix. |
584
+
| OAuth client remains “Authenticating” | Inspect token exchange and the first authenticated `POST /mcp`; browser callback success alone does not prove token issuance or MCP initialization. |
585
+
| Client reports `404 Cannot GET /mcp` after a `400`, `401`, or `409` POST | The GET is an expected SSE fallback and secondary symptom. Keep GET as 404 and fix the earlier POST. |
586
+
| Consent lists every MCP scope | This can be the registered client capability set. Verify the requested scope, issued token scope, and per-tool enforcement before treating it as an over-grant. |
587
+
| Client shows generic failure for a new user | Confirm the user belongs to a FrontLit team and that the no-team page appears before consent. |
588
+
| Single-team token lacks `team_id`| Confirm the sole-team path returns that team's ID as the consent `reference_id`. |
589
+
| Tool mutation succeeds but client reports output validation failure | Inspect `structuredContent` for unnormalized `Date` values and ensure the result went through `jsonResult()`. |
590
+
| VS Code works but Inspector or Claude fails | Test protocol era and OAuth onboarding separately: older Streamable HTTP, modern 2026, CIMD, and DCR are independent compatibility axes. |
611
591
612
592
## Maintenance rules for future changes
613
593
614
594
1. Keep one SDK 2 handler with `legacy: "stateless"`; do not add an SDK 1 or
615
595
standalone SSE server.
616
596
2. Keep `/mcp` before Express body parsing and global CORS.
617
-
3. Validate every present browser Origin against the explicit MCP allowlist.
618
-
4. Build a request-local server and store no protocol session state in memory.
619
-
5. Add every new tool to `policy.ts`; the exact catalog/policy test must pass.
620
-
6. Add new scopes to the shared scope constants so policy, OAuth metadata,
597
+
3. Build a request-local server and store no protocol session state in memory.
598
+
4. Add every new tool to `policy.ts`; the exact catalog/policy test must pass.
599
+
5. Add new scopes to the shared scope constants so policy, OAuth metadata,
621
600
resource registration, and tests remain aligned.
622
-
7. Treat OAuth client ID, account ID, team ID, and credentials as distinct
601
+
6. Treat OAuth client ID, account ID, team ID, and credentials as distinct
623
602
values.
624
-
8. Never place raw API-key secrets or sensitive OAuth URL data in context or
603
+
7. Never place raw API-key secrets or sensitive OAuth URL data in context or
625
604
logs.
626
-
9. Keep OAuth registration defaults identity-only and require explicit
605
+
8. Keep OAuth registration defaults identity-only and require explicit
0 commit comments