Alvaro Balbin

Results comments of Alvaro Balbin

I can reproduce this on current main. A GET with no (or a 2025-handshake) `MCP-Protocol-Version` header routes through `StreamableHTTPSessionManager._handle_stateless_request` in `src/mcp/server/streamable_http_manager.py`, which calls the transport's `handle_request` → `_handle_get_request` in `src/mcp/server/streamable_http.py`....

I can reproduce this. All three spots build from `urlparse(...).path` and never touch `.query`: `build_resource_metadata_url` in server/auth/routes.py, the path-based branch of `build_protected_resource_metadata_discovery_urls` in client/auth/utils.py, and `check_resource_allowed` in shared/auth_utils.py, which only...

I dug into the transport to check the mechanism you describe. On the server side there isn't a dedicated OS pipe-reader thread: `stdio_server` in `src/mcp/server/stdio.py` wraps `sys.stdin` with `anyio.wrap_file(...)` and...