| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:127e6dec-cefc-5e72-2612-b90beb278730 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E438:241FAA:12C82F:1B3957:6A6362DA |
| html-safe-nonce | eecde74dc2b023ad225c14bf9f56a13aa7e7dc2402a23a9a67ccd53c1185ce42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDM4OjI0MUZBQToxMkM4MkY6MUIzOTU3OjZBNjM2MkRBIiwidmlzaXRvcl9pZCI6IjMwMDUzMTc4Mjg1OTIyMzExMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 26b766fee43a2fd4a2aa4bdea273fa44fd20ee277bcf2dca1a46121296195b6c |
| hovercard-subject-tag | pull_request:2422739148 |
| 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/386/files |
| twitter:image | https://avatars.githubusercontent.com/u/90689006?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/90689006?s=400&v=4 |
| og:image:alt | Fix SSE client failing when connecting to servers with nested paths (e.g., http://domain/path1/path2/sse). Previously, the client worked only with simple URLs like http://domain/sse.
The fix extrac... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 669d3fcd704a169521d2b6431762f95a6878a9e8ccaf0fd5f2d0802fc5b971f9 |
| 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 | 20da292f132ff51328be50073854259f417052c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/386/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F386%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%2F386%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/386/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/386/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
320
| 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 |
| danilpavlov | https://github.com/danilpavlov |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| danilpavlov:main | https://github.com/danilpavlov/python-sdk/tree/main |
|
Conversation
15
| https://github.com/modelcontextprotocol/python-sdk/pull/386 |
|
Commits
13
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits |
|
Checks
0
| https://github.com/modelcontextprotocol/python-sdk/pull/386/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
|
Fix SSE client handling of nested path URLs
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#top |
|
Show all changes
13 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
|
b42b35a
fix(): SSE client handling of nested path URLs
Mar 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/b42b35a983ca4689659e060d4f2affeb51af3319 |
|
5a4d420
style: format max-line
Mar 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/5a4d42053b48d1101f482b2de66699a5b8933c31 |
|
21a775f
fix: imports
Mar 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/21a775f21e12e2a03b7141acc4bc8d8ac99bf82e |
|
7e1b9d3
Merge branch 'main' into main
danilpavlov Mar 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/7e1b9d345655e783e6633321e90ab35eaef8926b |
|
9a58b30
fixing /mcp case prefix on langchain
jonathanglima Apr 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/9a58b30886d3e044a2a206de31e287a4d7c962e1 |
|
ac3acbb
Merge pull request #1 from jonathanglima/main
danilpavlov Apr 8, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/ac3acbbe2402d42e011a76fd70ad364aba60ad42 |
|
8e76e8a
style: Added noqa to avoid max-line of code
Apr 8, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/8e76e8a5c6fb48a7513e5173041694cafc26901d |
|
e6d5b00
Fix generate accurate session_uri for nested SSE paths
sebin1213 Apr 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/e6d5b00991a9abcfe2469e2fed929d0113ad6e3a |
|
1ac7b63
Fix generate accurate session_uri for nested SSE paths
sebin1213 Apr 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/1ac7b63fe648fb2c8bcf87bed0797da79650881e |
|
7cece5e
Fix generate accurate session_uri for nested SSE paths
sebin1213 Apr 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/7cece5e8e6afeb97eb4e81988acb948a4d512ac5 |
|
96baf33
Merge pull request #2 from sebin1213/main
danilpavlov Apr 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/96baf3340268dc7051a176cb87dca18597ddbe7f |
|
3728328
style: format to avoid max-line validation error
Apr 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/3728328497814e046293e5ffc8ac8571968e9e2d |
|
e1ca588
style: reorganize imports
Apr 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/386/commits/e1ca588e07e83a8a2178582a48235935861b2f98 |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/386/files |
|
sse.py
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336 |
|
sse.py
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
| src/mcp/client/sse.py | https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336 |
|
View file
| https://github.com/danilpavlov/python-sdk/blob/e1ca588e07e83a8a2178582a48235935861b2f98/src/mcp/client/sse.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/386/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336 |
| src/mcp/server/sse.py | https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
|
View file
| https://github.com/danilpavlov/python-sdk/blob/e1ca588e07e83a8a2178582a48235935861b2f98/src/mcp/server/sse.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/386/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/386/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
|
| 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 |