Title: No way to get `request_id` for a tool call to cancel it · Issue #230 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: No way to get `request_id` for a tool call to cancel it · Issue #230 · modelcontextprotocol/python-sdk
X Title: No way to get `request_id` for a tool call to cancel it · Issue #230 · modelcontextprotocol/python-sdk
Description: Describe the bug When trying to cancel a tool by sending a cancel notification, there is no way to know request_id. It would be useful to set a request id during the tool call. To Reproduce Try cancelling a tool call Expected behavior Ha...
Open Graph Description: Describe the bug When trying to cancel a tool by sending a cancel notification, there is no way to know request_id. It would be useful to set a request id during the tool call. To Reproduce Try can...
X Description: Describe the bug When trying to cancel a tool by sending a cancel notification, there is no way to know request_id. It would be useful to set a request id during the tool call. To Reproduce Try can...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/230
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No way to get `request_id` for a tool call to cancel it","articleBody":"**Describe the bug**\nWhen trying to cancel a tool by sending a cancel notification, there is no way to know request_id.\n\nIt would be useful to set a request id during the tool call.\n\n**To Reproduce**\nTry cancelling a tool call\n\n**Expected behavior**\nHave a `reques_id` known to cancel it\n\n\n","author":{"url":"https://github.com/ihrpr","@type":"Person","name":"ihrpr"},"datePublished":"2025-02-24T10:32:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/230/python-sdk/issues/230"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4cf9e0df-6acb-e133-6639-fba1cfff0113 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0A0:F479:14806D:1A9523:6A5AB2C1 |
| html-safe-nonce | dceb97e040aee9f42acd364e4ee4b072be5506ed374c00bc6881659ff2641250 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEEwOkY0Nzk6MTQ4MDZEOjFBOTUyMzo2QTVBQjJDMSIsInZpc2l0b3JfaWQiOiI0Njc5OTU2NzYzMDU5NTk4MDE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3b11ae47e67e586617179e3007899727647d721c42b987683941b787e929f54d |
| hovercard-subject-tag | issue:2874504983 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/230/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1cb94b786b4a4db9bc7b4d71ff14b4171a37c85ded1b59286c2a5f5e7685a905/modelcontextprotocol/python-sdk/issues/230 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1cb94b786b4a4db9bc7b4d71ff14b4171a37c85ded1b59286c2a5f5e7685a905/modelcontextprotocol/python-sdk/issues/230 |
| og:image:alt | Describe the bug When trying to cancel a tool by sending a cancel notification, there is no way to know request_id. It would be useful to set a request id during the tool call. To Reproduce Try can... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ihrpr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 21c53da6db0c40484841ba32fe19ecf485e7e734334faab487cd59d884d2bb33 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6e85f20f54e1147d8162094880590864abefff6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width