Title: 1.24.0出现报错 · Issue #1797 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: 1.24.0出现报错 · Issue #1797 · modelcontextprotocol/python-sdk
X Title: 1.24.0出现报错 · Issue #1797 · 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 | File "/app/app/clien...
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/1797
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"1.24.0出现报错","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\n | File \"/app/app/clients/mcp_client.py\", line 98, in connect_and_get_tool\n | self._adapter = await StreamableHttpMcpToolAdapter.from_server_params(\n | File \"/usr/local/lib/python3.10/dist-packages/autogen_ext/tools/mcp/_base.py\", line 140, in from_server_params\n | async with create_mcp_server_session(server_params) as session:\n | File \"/usr/lib/python3.10/contextlib.py\", line 217, in __aexit__\n | await self.gen.athrow(typ, value, traceback)\n | File \"/usr/local/lib/python3.10/dist-packages/autogen_ext/tools/mcp/_session.py\", line 40, in create_mcp_server_session\n | async with streamablehttp_client(**params_dict) as (\n | File \"/usr/lib/python3.10/contextlib.py\", line 217, in __aexit__\n | await self.gen.athrow(typ, value, traceback)\n | File \"/usr/local/lib/python3.10/dist-packages/mcp/client/streamable_http.py\", line 480, in streamablehttp_client\n | async with anyio.create_task_group() as tg:\n | File \"/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py\", line 783, in __aexit__\n | raise BaseExceptionGroup(\n | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)\n +-+---------------- 1 ----------------\n | Traceback (most recent call last):\n | File \"/usr/local/lib/python3.10/dist-packages/mcp/client/streamable_http.py\", line 411, in handle_request_async\n | await self._handle_post_request(ctx)\n | File \"/usr/local/lib/python3.10/dist-packages/mcp/client/streamable_http.py\", line 280, in _handle_post_request\n | response.raise_for_status()\n | File \"/usr/local/lib/python3.10/dist-packages/httpx/_models.py\", line 829, in raise_for_status\n | raise HTTPStatusError(message, request=request, response=self)\n | httpx.HTTPStatusError: Client error '421 Misdirected Request' for url 'http://10.244.209.39:18658/mcp/time_manager/'\n | For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421\n\n\n### Example Code\n\n```Python\n\n```\n\n### Python \u0026 MCP Python SDK\n\n```Text\n1.24.0\n```","author":{"url":"https://github.com/longz30","@type":"Person","name":"longz30"},"datePublished":"2025-12-17T15:37:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1797/python-sdk/issues/1797"}
| 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:1c942e2f-1f12-0122-63d1-b46fcbca512e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA3E:21C8B5:27B72B:34F040:6A5A6E32 |
| html-safe-nonce | 3d3dca1b7ad0335d70f7e8ad0b2e0f06c95ef0a246f22ba89683949afae4b493 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTNFOjIxQzhCNToyN0I3MkI6MzRGMDQwOjZBNUE2RTMyIiwidmlzaXRvcl9pZCI6IjcxOTMxMDg4NTg1Nzk2MTExODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fe990131b31083930b5d285224d2d14b8918aad1b8edd55567863d5de3d13c1a |
| hovercard-subject-tag | issue:3739404442 |
| 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/1797/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2efaf34f7a3d462617d4a9297f436f0ee3d221f15c212a54416ea8f5d93908d1/modelcontextprotocol/python-sdk/issues/1797 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2efaf34f7a3d462617d4a9297f436f0ee3d221f15c212a54416ea8f5d93908d1/modelcontextprotocol/python-sdk/issues/1797 |
| 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 | longz30 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106 |
| 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 | 03575fc589c0e2692de839d7ca2b3aa5b5179f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width