Rename MCP_PROXY_TOKEN to MCP_PROXY_AUTH_TOKEN (#1)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
Kent C. Dodds 2025-07-07 15:21:27 -06:00 • committed by GitHub
commit 7d5f7968d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ const serverTransports: Map<string, Transport> = new Map<string, Transport>(); /
// Use provided token from environment or generate a new one
const sessionToken =
process.env.MCP_PROXY_TOKEN || randomBytes(32).toString("hex");
process.env.MCP_PROXY_AUTH_TOKEN || randomBytes(32).toString("hex");
const authDisabled = !!process.env.DANGEROUSLY_OMIT_AUTH;
// Origin validation middleware to prevent DNS rebinding attacks