| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cfeffb5e-88bf-6f3c-5313-a1532a27d52c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 871C:11F254:494B75:682171:6A630B9D |
| html-safe-nonce | a33e951beb0b7faab9986166ad95ec41d55500485f61993159d51d52b2e85dc6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzFDOjExRjI1NDo0OTRCNzU6NjgyMTcxOjZBNjMwQjlEIiwidmlzaXRvcl9pZCI6Ijc2NzM5NzcwMDA1MTc4OTcxMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2e1d99b54674b08c576a444668aa52c98de1e59d347d34efd31d482f80936ff3 |
| hovercard-subject-tag | pull_request:2469354579 |
| 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/540/files |
| twitter:image | https://avatars.githubusercontent.com/u/92134765?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/92134765?s=400&v=4 |
| og:image:alt | Add mount_path capability to FastMCP for proper SSE endpoint handling when mounted under sub-paths
Motivation and Context
When multiple FastMCP servers are mounted under different sub-paths in a si... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b48e7bf0b1945d51f303503b057abf666ce74c3efbe107b413db2bb921c3f012 |
| 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 | 9370f37042c29822d6ba7e3f670f0036a0155b21 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/540/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F540%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 |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| 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%2F540%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/540/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/540/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
270
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
317
| 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 |
| tim-watcha:fix/sse-server-message-path | https://github.com/tim-watcha/mcp-python-sdk/tree/fix/sse-server-message-path |
|
Conversation
24
| https://github.com/modelcontextprotocol/python-sdk/pull/540 |
|
Commits
17
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits |
|
Checks
0
| https://github.com/modelcontextprotocol/python-sdk/pull/540/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
|
Add mount_path support for proper SSE endpoint routing with multiple FastMCP servers
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#top |
|
Show all changes
17 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
|
9325779
Add mount_path support to FastMCP for proper SSE endpoint handling
tim-watcha Apr 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/9325779b4eca822d036c190b0aba2652a060c78e |
|
c4c05e1
Add tests for mount_path and path normalization in FastMCP
tim-watcha Apr 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/c4c05e1bd964fe1bbe91882ed045231b28ba4b2a |
|
d5bd5fd
Add multi-server mounting example to README
tim-watcha Apr 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/d5bd5fdb9925929b7a1694807f7ed78f71910627 |
|
dfdf077
Fix line length issue in server.py
tim-watcha Apr 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/dfdf077aa985d7f20ecb0a51bdcf96c2765f4dae |
|
d9d6bfe
Merge branch 'main' into fix/sse-server-message-path
tim-watcha Apr 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/d9d6bfe5a0f50692e98fe4a60a4eec940d3b7104 |
|
1bd89ff
Add mount_path parameter to sse_app method
tim-watcha Apr 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/1bd89ff3497632943de84d0ac1e2455e4d19a037 |
|
30b38f9
Apply ruff formatting to test_server.py
tim-watcha Apr 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/30b38f96bd2c506d2ee82a8718de76af3ca3e751 |
|
e248cb3
Fix README.md code example formatting for CI tests
tim-watcha Apr 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/e248cb3c9922b2d9db3771dd7da16b7c1cb0506a |
|
a5bfdfa
Merge branch 'main' into fix/sse-server-message-path
tim-watcha May 1, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/a5bfdfa42942ab6f14a8b59c4acfd7c71275c242 |
|
e176a7b
Merge branch 'main' into fix/sse-server-message-path
tim-watcha May 3, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/e176a7b2b6d2a14781f830ff7f3a14e1bd5e56b4 |
|
d34f446
Rename variable for clarity in message endpoint handling.
tim-watcha May 3, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/d34f4462158d6bb0c710c076e986f95750792a98 |
|
e53a22e
Update src/mcp/server/fastmcp/server.py
tim-watcha May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/e53a22e96a4fc232e4fbd70fe7ab92a4546cceb8 |
|
a443362
Update src/mcp/server/fastmcp/server.py
tim-watcha May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/a4433622d76bfe5160eba60dfc7aea8203de355d |
|
a53a0a4
Update src/mcp/server/fastmcp/server.py
tim-watcha May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/a53a0a477054d09713d123f77349c30d32e14cd9 |
|
a40cbef
Update src/mcp/server/fastmcp/server.py
tim-watcha May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/a40cbefab412371624f5f352255b538b3ef989ba |
|
a431957
Merge branch 'main' into fix/sse-server-message-path
tim-watcha May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/a43195736bba0813a068893430ef4c7b2116dd52 |
|
0366f68
Fix type hints for mount_path parameter in run method
tim-watcha May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/540/commits/0366f68491910cce84b3e694658b68ac2865fe2f |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/540/files |
|
README.md
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
test_server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
| README.md | https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
View file
| https://github.com/tim-watcha/mcp-python-sdk/blob/0366f68491910cce84b3e694658b68ac2865fe2f/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/540/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
| src/mcp/server/fastmcp/server.py | https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
View file
| https://github.com/tim-watcha/mcp-python-sdk/blob/0366f68491910cce84b3e694658b68ac2865fe2f/src/mcp/server/fastmcp/server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/540/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
| tests/server/fastmcp/test_server.py | https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
View file
| https://github.com/tim-watcha/mcp-python-sdk/blob/0366f68491910cce84b3e694658b68ac2865fe2f/tests/server/fastmcp/test_server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/540/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/540/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 |