Improve Startup Logging and 404 Response for MCP Session Initialization #164
Closed
sojournerdev
started this conversation in
General
Replies: 1 comment
-
|
Moving to issues |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Following up on the other discussion about session initialization, I propose two small improvements to help users avoid confusion when using MCP over Streamable HTTP:
Startup Logging — When the server starts, explicitly show the HTTP endpoint (
/mcp) used to initialize and obtain theMcp-Session-Idfor session management.404 Response Hint — Update the
/404 Page Not Foundresponse to return a minimal JSON message explaining that the MCP server expects aninitializerequest to/mcpbefore other calls.Current Startup Log Example:
Beta Was this translation helpful? Give feedback.
All reactions