| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:53e8566a-6e93-4141-5430-fc4b569d6103 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A5EC:2E118D:14AE82A:1B196B9:6A5C5992 |
| html-safe-nonce | 3d333ec7c7df765252043f92af4a873b4d103aa6a47773c356ab8cb1544e2456 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUVDOjJFMTE4RDoxNEFFODJBOjFCMTk2Qjk6NkE1QzU5OTIiLCJ2aXNpdG9yX2lkIjoiMTYyMDE0MjQ3OTk0MDI3ODY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 61e7259f5642464477a1225cff1839c448b90c68cdb70d815c196c685e067e1e |
| hovercard-subject-tag | pull_request:2965015404 |
| 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/1554/files |
| twitter:image | https://avatars.githubusercontent.com/u/131398524?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/131398524?s=400&v=4 |
| og:image:alt | This PR implements the required changes for modelcontextprotocol/modelcontextprotocol#1686, which adds task augmentation to requests.
Motivation and Context
The current MCP specification supports t... |
| 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/1554/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1554%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%2F1554%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/1554/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1554/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 |
| LucaButBoring | https://github.com/LucaButBoring |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| LucaButBoring:feat/tasks | https://github.com/LucaButBoring/mcp-python-sdk/tree/feat/tasks |
|
Conversation
3
| https://github.com/modelcontextprotocol/python-sdk/pull/1554 |
|
Commits
15
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits |
|
Checks
18
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
|
SEP-1686: Tasks
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#top |
|
Show all changes
15 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
|
5b7026e
Implement SEP-1686: Tasks
LucaButBoring Oct 31, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/5b7026ebe4c1f9dbc278cbf29300711254827352 |
|
340fcad
Merge branch 'main' into feat/tasks
LucaButBoring Nov 3, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/340fcad723536c66316330efd126fd9235a0dfb5 |
|
88a7f26
Allow task polling before creation notification arrives
LucaButBoring Nov 3, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/88a7f2626727c01d2aa85fb952b8196c4ee57d33 |
|
3375c02
Fix integration test to assert on callbacks
LucaButBoring Nov 4, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/3375c02999c2b368868bed8f94ecda5e10c74d9b |
|
af38579
Add tasks/delete method
LucaButBoring Nov 5, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/af38579a41741c21b22d46a63d0ec91c279ea6dd |
|
73b1799
Rename pollFrequency to pollInterval
LucaButBoring Nov 5, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/73b17996e5ffc607e5f5ad0be5fe308543402e4c |
|
3576adc
Implement capability gating for tasks
LucaButBoring Nov 6, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/3576adc1e9404ba14ce5a1848b8676891ec85698 |
|
91e7561
Add taskHint
LucaButBoring Nov 6, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/91e7561f99ac029201123507879ba900d23dd061 |
|
5abe554
Fix PendingRequest delay when not found
LucaButBoring Nov 6, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/5abe55455436713c924504ecb9109fe1a53b7273 |
|
d29c215
Fix failing task test
LucaButBoring Nov 6, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/d29c215ac217354797de4689ef739ff80eabb030 |
|
8fbb6fe
Support session-binding in TaskStore
LucaButBoring Nov 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/8fbb6fe1899c6e38d6a3fa3bd2c49ced3dfd571c |
|
b4ccb40
Merge upstream main into feat/tasks
LucaButBoring Nov 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/b4ccb4095f5f769654e4aa6bca293a7d9e755dcf |
|
a2c5f0a
Add additional task lifecycle tests
LucaButBoring Nov 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/a2c5f0a3128fcad1ee9eadb36ce8cccb9b69d0c8 |
|
35f3de2
Merge branch 'main' of https://github.com/modelcontextprotocol/python…
LucaButBoring Nov 17, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/35f3de2bf4605b523a2217809ce5f7c0e38a1d6f |
|
7e64c91
Merge branch 'main' of https://github.com/modelcontextprotocol/python…
LucaButBoring Nov 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/commits/7e64c917f535ca2ea3be9e808db09bad424b3edd |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-97283e1e823b1f946b79a263ff01a33543809cf4778cb616b58c5e06d95b2533 |
|
in_memory_task_store.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-08f88979e9f7f9128a49a0dab9d191529c1edcabce2b2288512d197ac66d015b |
|
streamable_task_get_result.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-6b62229bd1ad4f2266188b3a141be5db2c4e7faeba59b0d4e7086692e3e17610 |
|
streamable_tasks.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-9865a1a02b49541c30a53f12ab922c61b7e27bc89be00824af413ffeee3547cb |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-7ba69ab49e24048be9cec660f89c5bfa9f2bd520203062b2f5ee7909647a34d0 |
|
task_based_tool.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-34132c5cc9ab3db454c78f945203ae9e5b8e72c34e543b8d7cf1ed12852a2c9d |
|
session.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4 |
|
session.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c |
|
streamable_http_manager.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-1071ee05567116cb77322c376307b9071c6212871068ccf41911fc337ed473af |
|
request.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-22e8cd05e5e5ee24536a712eb0ce50e2af456e384bc44d2c35bc001a8bdd2e8b |
|
session.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc |
|
task.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-b0952117b9d3190a9b4774afa8cfb7f2f6bc0a19ec9c60f5e65d43e72dc24072 |
|
types.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-9b043ee327a542607e73b38ebb19c77049650efbe3a1f9d5891b0f8af09599ae |
|
test_session.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-623490a9c2dd576cc59e89f8d51f64acfffdeaad940e0bd4a0a51a50bc30d92d |
|
test_session_tasks.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-023fccbaa63364130c105cc76ffa7abce022784a618e666f119ca1408103cdce |
|
test_integration.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-2a83726d3841510342d53ec2e4372b1b9ddb456bead430b070f2df6652f48e25 |
|
test_session_tasks.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-c8d7e87168c628e35e2f355b146f6303c35dcc1982b54c221a1051246a9f4f37 |
|
test_pending_request.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-75165ab51da870e49f23dae0e8d25f03d95503c8c280fa1382210aa3d7703388 |
|
test_task_store.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-50195d6f8d96cdb1d7c5b1a486d2ef27d0648b28d937c3e58dcf6eee0d9d1b6b |
|
test_task_capabilities.py
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-47e441b398adb7dd3b250145be6525b0dd3d48fa51232ba0c404748d03bacc45 |
| examples/shared/__init__.py | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-97283e1e823b1f946b79a263ff01a33543809cf4778cb616b58c5e06d95b2533 |
|
View file
| https://github.com/LucaButBoring/mcp-python-sdk/blob/7e64c917f535ca2ea3be9e808db09bad424b3edd/examples/shared/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| examples/shared/in_memory_task_store.py | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-08f88979e9f7f9128a49a0dab9d191529c1edcabce2b2288512d197ac66d015b |
|
View file
| https://github.com/LucaButBoring/mcp-python-sdk/blob/7e64c917f535ca2ea3be9e808db09bad424b3edd/examples/shared/in_memory_task_store.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/{{ revealButtonHref }} |
| examples/snippets/clients/streamable_task_get_result.py | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-6b62229bd1ad4f2266188b3a141be5db2c4e7faeba59b0d4e7086692e3e17610 |
|
View file
| https://github.com/LucaButBoring/mcp-python-sdk/blob/7e64c917f535ca2ea3be9e808db09bad424b3edd/examples/snippets/clients/streamable_task_get_result.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/{{ revealButtonHref }} |
| examples/snippets/clients/streamable_tasks.py | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-9865a1a02b49541c30a53f12ab922c61b7e27bc89be00824af413ffeee3547cb |
|
View file
| https://github.com/LucaButBoring/mcp-python-sdk/blob/7e64c917f535ca2ea3be9e808db09bad424b3edd/examples/snippets/clients/streamable_tasks.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/{{ revealButtonHref }} |
| examples/snippets/servers/__init__.py | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-7ba69ab49e24048be9cec660f89c5bfa9f2bd520203062b2f5ee7909647a34d0 |
|
View file
| https://github.com/LucaButBoring/mcp-python-sdk/blob/7e64c917f535ca2ea3be9e808db09bad424b3edd/examples/snippets/servers/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-7ba69ab49e24048be9cec660f89c5bfa9f2bd520203062b2f5ee7909647a34d0 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-7ba69ab49e24048be9cec660f89c5bfa9f2bd520203062b2f5ee7909647a34d0 |
| examples/snippets/servers/task_based_tool.py | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files#diff-34132c5cc9ab3db454c78f945203ae9e5b8e72c34e543b8d7cf1ed12852a2c9d |
|
View file
| https://github.com/LucaButBoring/mcp-python-sdk/blob/7e64c917f535ca2ea3be9e808db09bad424b3edd/examples/snippets/servers/task_based_tool.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/1554/{{ revealButtonHref }} |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1554/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1554/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 |