| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5b19ec9c-82a8-60f6-1e1b-394f95a6165d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AF3A:1A73A4:2487051:3357A5E:6A5F5F87 |
| html-safe-nonce | d8ef875afad90f0ca274f0df7bf20bd0e969a59f30e024814911fe78fd54f463 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjNBOjFBNzNBNDoyNDg3MDUxOjMzNTdBNUU6NkE1RjVGODciLCJ2aXNpdG9yX2lkIjoiNjU3NTIyODQ3Njc2MTAwNTk1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 06eb384d8a95733640b3839042d851b1a176fbf424c257dfd4236025245b2820 |
| hovercard-subject-tag | pull_request:2547555399 |
| 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/822/files |
| twitter:image | https://avatars.githubusercontent.com/u/5304541?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5304541?s=400&v=4 |
| og:image:alt | Motivation and Context
This fixes an uncaught exception in the MCP server
How Has This Been Tested?
Via unit tests and locally.
Breaking Changes
None.
Types of changes
Bug fix (non-breaking chan... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a0797c11799dbfd7df57fa3de31c7ea3a4c4bd055eb1a0427a5cde1d4d7ba3f |
| 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 | b099d96da147aea31036cd16b2fba0083a6defe4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/822/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F822%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%2F822%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/822/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/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
264
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
311
| 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 |
| johnw188 | https://github.com/johnw188 |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| ddworken:main | https://github.com/ddworken/python-sdk/tree/main |
|
Conversation
14
| https://github.com/modelcontextprotocol/python-sdk/pull/822 |
|
Commits
13
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits |
|
Checks
10
| https://github.com/modelcontextprotocol/python-sdk/pull/822/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
|
Fix uncaught exception in MCP server
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files#top |
|
Show all changes
13 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
|
44bb310
Fix uncaught exception in MCP server
ddworken May 20, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/44bb310579f15259d935a998f5bdf188189b5a53 |
|
900548c
Fix tests
ddworken May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/900548c602524984c0daf70d0c42d2b0c675103e |
|
6933486
Fix tests
ddworken May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/69334862cacd055f6dcd74fdbe858dabae82cd74 |
|
9f83b50
Fix tests
ddworken May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/9f83b507da43525f0f6e95681ec086d2b390bb89 |
|
92865e8
Fix tests
ddworken May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/92865e891417dc9935cd28fc7004d935b375e90f |
|
aba774d
Fix tests
ddworken May 27, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/aba774d6737ee3e097c4af1fa873de0bb0abd2f6 |
|
3ecc02a
Move extra debug information to logging.debug
ddworken May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/3ecc02a321b43e0a07fba07d4642543dae2f30e4 |
|
23d4af4
Merge branch 'main' into main
ddworken May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/23d4af42e730ca529bd2e56ab4be1f36bdbca8f2 |
|
3757bad
Fix lint
ddworken May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/3757bad31c0a5e67d73f3d5617afbb35503218a1 |
|
4e3937f
Merge branch 'main' into main
ddworken May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/4e3937f4788307ef4db119d43bf61d5247f5c775 |
|
605a6d4
Rerun tests
ddworken May 28, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/605a6d4435dc56dfc5a35e8d1384f18ea66c7514 |
|
a2f889b
Merge branch 'main' into main
ddworken Jun 4, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/a2f889b41f1f52d119878a6df2e27b25ae48404f |
|
acb45c6
Merge branch 'main' into main
ddworken Jun 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/822/commits/acb45c6fb90a0ae7028ce8c6cddec8b962bb97a8 |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
|
session.py
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc |
|
test_malformed_input.py
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-b649c0b5fba86f777a51ee53b6579c7a639f0484b3562efcafe81a3322a4219e |
| src/mcp/shared/session.py | https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc |
|
View file
| https://github.com/ddworken/python-sdk/blob/acb45c6fb90a0ae7028ce8c6cddec8b962bb97a8/src/mcp/shared/session.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/822/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc |
| NAVNAV221 | https://github.com/NAVNAV221 |
| Jun 6, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2132343279 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| this issue | https://github.com/modelcontextprotocol/python-sdk/issues/820 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| ddworken | https://github.com/ddworken |
| Jun 6, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2132531265 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Kludex | https://github.com/Kludex |
| Jun 11, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2139972036 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
| Kludex | https://github.com/Kludex |
| Jun 11, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/822/files#r2139970549 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/files |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc |
| tests/issues/test_malformed_input.py | https://github.com/modelcontextprotocol/python-sdk/pull/822/files#diff-b649c0b5fba86f777a51ee53b6579c7a639f0484b3562efcafe81a3322a4219e |
|
View file
| https://github.com/ddworken/python-sdk/blob/acb45c6fb90a0ae7028ce8c6cddec8b962bb97a8/tests/issues/test_malformed_input.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/822/{{ revealButtonHref }} |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/822/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 |