Skip to content

[Server] Answer an unreachable session store with 503 instead of 404 - #570

Open
chr-hertel wants to merge 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:fix-session-store-outage
Open

chr-hertel wants to merge 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:fix-session-store-outage

Conversation

@chr-hertel

Copy link
Copy Markdown
Member

While the cache behind Psr16SessionStore is down, every request gets a 404 and nothing is logged - clients re-initialize instead of retrying.

  • Psr16SessionStore::exists() throws the new SessionStoreException instead of returning false on a cache failure
  • Protocol logs it and answers with an internal error and 503

Fixes chr-hertel#64

🤖 Generated with Claude Code

@chr-hertel chr-hertel added this to the 0.9.0 milestone Oct 10, 2026
@chr-hertel chr-hertel added bug Something isn't working Server Issues & PRs related to the Server component labels Oct 10, 2026

This branch has not been deployed

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

Labels

bug Something isn't working Server Issues & PRs related to the Server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Server] Session store errors are answered as "session not found"

1 participant