Title: context.report_progress not sending notifications on streamable-http · Issue #953 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: context.report_progress not sending notifications on streamable-http · Issue #953 · modelcontextprotocol/python-sdk
X Title: context.report_progress not sending notifications on streamable-http · Issue #953 · modelcontextprotocol/python-sdk
Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue Description Hello 👋 It seems like ...
Open Graph Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ...
X Description: Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening t...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/953
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"context.report_progress not sending notifications on streamable-http","articleBody":"### Initial Checks\n\n- [x] I confirm that I'm using the latest version of MCP Python SDK\n- [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue\n\n### Description\n\nHello 👋 \n\nIt seems like `context.report_progress` is not sending any notifications on streamable-http.\nI checked and the reason is that `related_request_id` is not specified in the underlying function.\n\nA fix that work on my side in the file `src/mcp/server/fastmcp/server.py`:\n\n```Python\nasync def report_progress(self, progress: float, total: float | None = None, message: str | None = None) -\u003e None:\n\n# \u003c---- non important code is skipped here ---\u003e\n\nawait self.request_context.session.send_progress_notification(\n progress_token=progress_token,\n progress=progress,\n total=total,\n message=message,\n\n # ADD this line to fix the issue\n related_request_id=self.request_id,\n)\n```\n\nI created a PR to add that line.\n\n### Example Code\n\n```Python\nfrom mcp.server.fastmcp import Context, FastMCP\n\nmcp = FastMCP(\"StatelessServer\", stateless_http=True)\n\n@mcp.tool()\nasync def example(ctx: Context) -\u003e str:\n await ctx.report_progress(0, None, \"This does not work\")\n await ctx.session.send_progress_notification(\n ctx.request_context.meta.progressToken, 0, None, \"But this works perfectly\", ctx.request_id\n )\n return \"Done\"\n\nmcp.run(transport=\"streamable-http\")\n```\n\n### Python \u0026 MCP Python SDK\n\n```Text\nmcp 1.9.4\nPython 3.13.3\nuv 0.7.13\n```","author":{"url":"https://github.com/abdhx","@type":"Person","name":"abdhx"},"datePublished":"2025-06-13T13:12:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/953/python-sdk/issues/953"}
| 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:3f67f887-22ed-c8a1-b1c5-64b6acaadb55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA92:43F78:1567D39:1B78564:6A5C4FC1 |
| html-safe-nonce | 425a437fe1e8d87a9254aa8be8cb6d7088dfea5da813552fd34c8025aa889713 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTkyOjQzRjc4OjE1NjdEMzk6MUI3ODU2NDo2QTVDNEZDMSIsInZpc2l0b3JfaWQiOiIxNDc4NTYzOTU1Mzg0MDEyNzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d112b2a31c08480660a7ae80348f95eb6f2f9f4b58caa3d3f2c83a6ddf37aab5 |
| hovercard-subject-tag | issue:3143541535 |
| 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/953/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab5ebee29fbcb8be8811ea50d9e3140a107cd3cbd553d398d6e8ffa7a0b35cfa/modelcontextprotocol/python-sdk/issues/953 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab5ebee29fbcb8be8811ea50d9e3140a107cd3cbd553d398d6e8ffa7a0b35cfa/modelcontextprotocol/python-sdk/issues/953 |
| og:image:alt | Initial Checks I confirm that I'm using the latest version of MCP Python SDK I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abdhx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width