| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ca9c704f-ac47-2260-1556-c62389db7c3d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DC36:1D1DA6:E26945:1305CB4:6A5B865A |
| html-safe-nonce | 85d6599e9e42552da8dbf865281ed6bd84522a760e1d68a13d6dc8f1b0c73651 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzM2OjFEMURBNjpFMjY5NDU6MTMwNUNCNDo2QTVCODY1QSIsInZpc2l0b3JfaWQiOiI4MzQ4MTg4MjA5NDcwMTkzNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | be8b0fadab160a7fa60998541028fe73241c3e1cb1fabf69df01b1c704da3ddd |
| hovercard-subject-tag | pull_request:2654448320 |
| 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/1115/files |
| twitter:image | https://avatars.githubusercontent.com/u/143175350?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/143175350?s=400&v=4 |
| og:image:alt | Setup the endpoint for the streamable HTTP (/mcp) in the routing table as a route served by an ASGI app, instead of mounting it as a base path.
Resolves: #732
As mentioned in MCP specification (ver... |
| 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/1115/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1115%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%2F1115%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/1115/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1115/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.6k
| 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
304
| 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 |
| ihrpr | https://github.com/ihrpr |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| yurikunash:307_redirect | https://github.com/yurikunash/python-sdk/tree/307_redirect |
|
Conversation
2
| https://github.com/modelcontextprotocol/python-sdk/pull/1115 |
|
Commits
10
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits |
|
Checks
10
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
|
Update routing for streamable HTTP to avoid 307 redirect
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#top |
|
Show all changes
10 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
|
17f5444
Remove submounting for streamable http app
yurikunash Jul 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/17f5444827051b261bc9250358f91d0997f8dd81 |
|
512cf58
Merge branch 'main' into 307_redirect
yurikunash Jul 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/512cf58751760e1b7efdb2b94683149316c92a75 |
|
eca75ea
Remove circular import
yurikunash Jul 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/eca75ea80b8119627c05839b8c646eb402ba8445 |
|
6faa20d
Add empty line
yurikunash Jul 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/6faa20d49dd6fc06498f5160f7661e693703c336 |
|
f1bcba0
Merge branch 'main' into 307_redirect
yurikunash Jul 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/f1bcba0806e1353007468401370231b851a43ce7 |
|
86cc5a3
Merge branch 'main' into 307_redirect
ihrpr Jul 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/86cc5a3aeb2255e6cdb0157af5803d192287a953 |
|
9cb5441
test and ruff
ihrpr Jul 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/9cb54415318b25d76f97f8ae2c9c71338415b8c3 |
|
8ad5fc3
filter out deprecation warning for lowest version in test
ihrpr Jul 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/8ad5fc364029be017f9f812f0fe36f40b36a1763 |
|
bccd718
fix test
ihrpr Jul 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/bccd718c3be8bf3b1ed70dd01e2e365bc819335a |
|
171dc5c
remove testclient
ihrpr Jul 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/commits/171dc5c772abb109a689aadb915f7b1fcf595519 |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
test_server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
| src/mcp/server/fastmcp/server.py | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
View file
| https://github.com/yurikunash/python-sdk/blob/171dc5c772abb109a689aadb915f7b1fcf595519/src/mcp/server/fastmcp/server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
| tests/server/fastmcp/test_server.py | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
View file
| https://github.com/yurikunash/python-sdk/blob/171dc5c772abb109a689aadb915f7b1fcf595519/tests/server/fastmcp/test_server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1115/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1115/files |
|
| 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 |