Title: feat: default streamable_http_path to "/" for consistency by tewatia · Pull Request #1007 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: feat: default streamable_http_path to "/" for consistency by tewatia · Pull Request #1007 · modelcontextprotocol/python-sdk
X Title: feat: default streamable_http_path to "/" for consistency by tewatia · Pull Request #1007 · modelcontextprotocol/python-sdk
Description: feat: default streamable_http_path to "/" for consistency Previously, this default was "/mcp", which led to URLs like /mcp/mcp when the base was already mounted at /mcp. This nested path confused the developers. Switching to "/" aligns with the TypeScript SDK behavior and prevents double mounting. Summary of changes: Updated default of streamable_http_path to /. Added inline comment in MCPServerConfig. Motivation and Context Avoids double-mount confusion and brings parity with the TypeScript SDK. How Has This Been Tested? Ran uv run pytest. Verified types with uv run pyright. Ensured linting/formatting via uv run ruff check . and uv run ruff format .. Tested local server routing on both / and /mcp mounts. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Breaking changes: Users relying on the old default must now explicitly set: settings={"streamable_http_path": "/mcp"}
Open Graph Description: feat: default streamable_http_path to "/" for consistency Previously, this default was "/mcp", which led to URLs like /mcp/mcp when the base was already mounted at /mcp. This ne...
X Description: feat: default streamable_http_path to "/" for consistency Previously, this default was "/mcp", which led to URLs like /mcp/mcp when the base was already mounted ...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/1007
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ccce4cda-10d5-6dab-9631-54397404deaa |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 829C:240924:15EBC84:1DA72FF:6A62DDC1 |
| html-safe-nonce | f689588eaf024f2a511b8ba86d64b3f033dc45b08b16f7f8abfaa792f5da7ab7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjlDOjI0MDkyNDoxNUVCQzg0OjFEQTcyRkY6NkE2MkREQzEiLCJ2aXNpdG9yX2lkIjoiMzYzMDk2Njc0MTA5NzcwMDgwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c46105e218c3eaeaab0966e0c01457ee7dac9f8f9e8345ee1863213dc70de44f |
| hovercard-subject-tag | pull_request:2612607844 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/1007/files |
| twitter:image | https://avatars.githubusercontent.com/u/22875334?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/22875334?s=400&v=4 |
| og:image:alt | feat: default streamable_http_path to "/" for consistency Previously, this default was "/mcp", which led to URLs like /mcp/mcp when the base was already mounted at /mcp. This ne... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width