| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bf664223-596c-3647-e321-65ba26297b0c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CED6:1775E7:1138F8C:169D84A:6A5C49DB |
| html-safe-nonce | c698bd2c5c9fc22570891d0af3c37f50b2cd611f1cec2ef350de19228204754e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUQ2OjE3NzVFNzoxMTM4RjhDOjE2OUQ4NEE6NkE1QzQ5REIiLCJ2aXNpdG9yX2lkIjoiMzA3ODMyMzU1ODEzNTEyMjM5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea8426d8cb132451c1a38da0603e631505620474f9e68442b4ad5ea0f7d867aa |
| hovercard-subject-tag | pull_request:2536521636 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
| twitter:image | https://avatars.githubusercontent.com/u/19861628?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/19861628?s=400&v=4 |
| og:image:alt | The default mount path of Streamable HTTP is /mcp, but in some environments, a 307 Temporary Redirect to /mcp/mcp/ will appear, causing the request to hang or fail. When the streamable_http path is... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/781/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F781%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F781%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
|
modelcontextprotocol
| https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
|
Notifications
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Fork
3.7k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Star
23.7k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
259
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
307
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
6
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| chi2liu | https://github.com/chi2liu |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| chi2liu:fix-307-Temporary-Redirect | https://github.com/chi2liu/python-sdk/tree/fix-307-Temporary-Redirect |
|
Conversation
32
| https://github.com/modelcontextprotocol/python-sdk/pull/781 |
|
Commits
37
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits |
|
Checks
0
| https://github.com/modelcontextprotocol/python-sdk/pull/781/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
|
Fix 307 Temporary Redirect when use streamable_http
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#top |
|
Show all changes
37 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
|
0bf3521
Update streamable_http_path to /mcp/ to avoid 307 Temporary Redirect
chi2liu May 22, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/0bf3521b2c1003af500474defe561651dbd1ee85 |
|
dd00227
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 23, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/dd00227c0fd254993251b0aa29d7920becf3415b |
|
d89e737
Streamable HTTP Trailing Slash Compatibility
chi2liu May 26, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/d89e7370721f7911b75c797d61a188f521446394 |
|
7d6e14f
Streamable HTTP Trailing Slash Compatibility
chi2liu May 26, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/7d6e14ff2480ef032e6e409bf50e574a2c094c7f |
|
a84399b
Streamable HTTP Trailing Slash Compatibility
chi2liu May 26, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/a84399b4a40ea5ee04f014a493cf94a6046ff466 |
|
900c2dd
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 26, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/900c2dd8a239b563b37830d794c0f3b6be5d9901 |
|
1a638ad
Streamable HTTP Trailing Slash Compatibility
chi2liu May 26, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/1a638adeb9c4fe58062edcff7b45773c34e80fa3 |
|
b3bf4c9
Streamable HTTP Trailing Slash Compatibility
chi2liu May 26, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/b3bf4c9e8b2356376adb21f777833dcae015172e |
|
645e1ab
Streamable HTTP Trailing Slash Compatibility
chi2liu May 26, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/645e1abf20f9eedf73f45a5acc43eb59bc7548f6 |
|
3e9e33f
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/3e9e33f0b89296ae381b7ad10daf6f870f9136e3 |
|
7ef5f8d
Clean logic (#3)
vectorstain May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/7ef5f8d458456db46dc37c83e9bd34f163b86f21 |
|
303cac8
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/303cac8336222a9d939debce0b3bff5ca9cc3824 |
|
0d05075
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/0d050754c1df5c19fd0bdb08f2151f8066c8c2c8 |
|
898fc88
add unit test for Streamable HTTP Trailing Slash Compatibility
May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/898fc88faae4e7e6ef136a204e73935f07f84624 |
|
45a5cd8
add unit test for Streamable HTTP Trailing Slash Compatibility
May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/45a5cd8d33dd80af3fd5c544caa05745e207cbdb |
|
04f637c
Update test_streamable_http.py
chi2liu May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/04f637c2d7b79b5cf6022735969ed73653f2fbe7 |
|
2377b70
add unit test for Streamable HTTP Trailing Slash Compatibility
May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/2377b70b371045ee57d42080bc55aaea9dcb19be |
|
09e403c
Merge branch 'fix-307-Temporary-Redirect' of https://github.com/chi2l…
May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/09e403cc453a07abe142576e0dd815dfb181c48a |
|
a03c62e
add unit test for Streamable HTTP Trailing Slash Compatibility
May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/a03c62ed16b2f4751c7c6dc387b858addb4fcbbd |
|
10ccbbf
add unit test for Streamable HTTP Trailing Slash Compatibility
May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/10ccbbfe91b2a30bfce2a739aae44c71a5e7c24c |
|
e102e7d
add unit test for Streamable HTTP Trailing Slash Compatibility
May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/e102e7db7238dc40445ec8f526ef7babf49b160a |
|
a72ffe8
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/a72ffe8261ff5ee6d6de3eaf01bdef90361c9376 |
|
6cf74f1
change Mount to Routers
May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/6cf74f1340b4bbe56fa3e0c375d8126556a1b7d3 |
|
2748a75
fix tests
May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/2748a75a82a9c872c000856c423380ef754ba55e |
|
b726c86
redirect_slashes to False
May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/b726c86e63b29c177ec9efa0b39eb681473a61b3 |
|
3b03b83
Update server.py
chi2liu May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/3b03b83845eb8365b0f167184bda6577314ddb0f |
|
d2ee4df
fix typo
May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/d2ee4df69a303763e78f95e19e98772e7d5d75f2 |
|
355c882
Merge branch 'fix-307-Temporary-Redirect' of https://github.com/chi2l…
May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/355c882420e4050ac83d75d93c32653f8cddb2fd |
|
86da08d
fix typo
May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/86da08d3c9206902f93d0e241e9734ecbb173c69 |
|
3d86e61
fix
May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/3d86e61c1a3ed000175ab2d49200462387fa4233 |
|
cc9f3d9
Update server.py
chi2liu May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/cc9f3d98323d2e5389b4102914922508457f3d60 |
|
cce6d2f
Update test_server.py
chi2liu May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/cce6d2f74cbf7f083934d3a95d17c219cf765b4f |
|
04c4bcf
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/04c4bcf2c0e3a8c4d0c14af261a1fe980d45d1bd |
|
1d9632b
Fix 307 temporary redirect refactor (#4)
vectorstain May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/1d9632b54b77b708c71887e3873942b061bc71fc |
|
2761e8f
Merge branch 'main' into fix-307-Temporary-Redirect
chi2liu May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/2761e8f487fa6d90c80529158d5ace365d22c819 |
|
2aa0428
Update server.py
chi2liu May 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/2aa0428d92c6280afe14d6e4c1ff5ba2b5d92fd3 |
|
5841a55
fix format
May 30, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/781/commits/5841a55fe51b3b18766e7b316634aae6e178fdb8 |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/781/files |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
test_server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
| src/mcp/server/fastmcp/server.py | https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
View file
| https://github.com/chi2liu/python-sdk/blob/5841a55fe51b3b18766e7b316634aae6e178fdb8/src/mcp/server/fastmcp/server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/781/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
| tests/server/fastmcp/test_server.py | https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
View file
| https://github.com/chi2liu/python-sdk/blob/5841a55fe51b3b18766e7b316634aae6e178fdb8/tests/server/fastmcp/test_server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/781/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/781/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |