Skip to content

Commit 06ecc2b

Browse files
committed
chore: add TODO comment for error code alignment
Link to tracking issue for JSON-RPC error code clarification.
1 parent f86ea93 commit 06ecc2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mcp/server/streamable_http_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ async def run_server(*, task_status: TaskStatus[None] = anyio.TASK_STATUS_IGNORE
279279
await http_transport.handle_request(scope, receive, send)
280280
else:
281281
# Unknown or expired session ID - return 404 per MCP spec
282+
# TODO: Align error code once spec clarifies
283+
# See: https://github.com/modelcontextprotocol/python-sdk/issues/1821
282284
error_response = JSONRPCError(
283285
jsonrpc="2.0",
284286
id="server-error",

0 commit comments

Comments
 (0)