feat(server): outside agents sign in to the T3 MCP server with OAuth (#16336)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Opus 5.5 authored and GitHub committed 2026-10-06 14:09:35 -07:00
1 parent 2f85686d9d
commit 2c8be5893e
29 files changed
+2531 -67

No files matched your search

+12 -1
View File
@@ -8,7 +8,18 @@
* prefix only Vite knows gets answered with index.html; a prefix only the
* server knows redirect-loops through the proxy.
*/
export const DEV_PROXIED_PATH_PREFIXES = ["/api", "/oauth", "/.well-known", "/ws"] as const;
export const DEV_PROXIED_PATH_PREFIXES = ["/api", "/oauth", "/.well-known", "/ws", "/mcp"] as const;
/**
* Prefixes the proxy must forward with the browser's own Host. MCP OAuth
* derives its issuer and resource URLs from the request, and a client
* rejects metadata naming a different origin than the one it fetched.
*/
export const DEV_PROXIED_ORIGIN_PRESERVING_PREFIXES: ReadonlySet<string> = new Set([
"/oauth",
"/.well-known",
"/mcp",
]);
export function isDevProxiedPath(pathname: string): boolean {
return DEV_PROXIED_PATH_PREFIXES.some(