Merge pull request #806 from cliffhall/fix-stateless-http-connections

Fix stateless StreamableHttp connections
This commit is contained in:
Ola Hungerford 2025-09-15 20:35:08 -07:00 • committed by GitHub
commit 19e12e2091
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,8 +53,8 @@ const getHttpHeaders = (req: express.Request): Record<string, string> => {
lowerKey === "authorization" ||
lowerKey === "last-event-id"
) {
// Exclude the proxy's own authentication header
if (lowerKey !== "x-mcp-proxy-auth") {
// Exclude the proxy's own authentication header and the Client <-> Proxy session ID header
if (lowerKey !== "x-mcp-proxy-auth" && lowerKey !== "mcp-session-id") {
const value = req.headers[key];
if (typeof value === "string") {