Skip to content

fix(mcp-http): keep streamable sessions alive on GET#595

Open
yamachu wants to merge 1 commit intoczlonkowski:mainfrom
yamachu:fix-http-mcp
Open

fix(mcp-http): keep streamable sessions alive on GET#595
yamachu wants to merge 1 commit intoczlonkowski:mainfrom
yamachu:fix-http-mcp

Conversation

@yamachu
Copy link
Copy Markdown

@yamachu yamachu commented Feb 13, 2026

Summary

  • Keep StreamableHTTP sessions alive by refreshing access time on GET /mcp when a session ID is provided.
  • Return 404 for missing StreamableHTTP sessions to avoid SSE fallback and session churn.
  • Reduces repeated reconnect loops observed with MCP client tools.

Reproduction

  • Start the MCP server in HTTP (streamable) mode.
  • Connect from an MCP client(e.g. n8n AI Agent MCP Client) that uses StreamableHTTP.
  • Wait 5–10 minutes to confirm the session does not churn.
  • Observe repeated GET /mcp calls and frequent session churn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant