Title: Clients fail and crash If initial GET request returns a redirect (e.g. 302) · Issue #283 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Clients fail and crash If initial GET request returns a redirect (e.g. 302) · Issue #283 · modelcontextprotocol/python-sdk
X Title: Clients fail and crash If initial GET request returns a redirect (e.g. 302) · Issue #283 · modelcontextprotocol/python-sdk
Description: Describe the bug If a remote (see transport) server responds to the initial GET request of the client with a redirect an error is thrown To Reproduce Connect a client to https://yo-mcp.com/mcp/7NIUz0cvfStY6-wSsVyY3 It will get a redirect...
Open Graph Description: Describe the bug If a remote (see transport) server responds to the initial GET request of the client with a redirect an error is thrown To Reproduce Connect a client to https://yo-mcp.com/mcp/7NIU...
X Description: Describe the bug If a remote (see transport) server responds to the initial GET request of the client with a redirect an error is thrown To Reproduce Connect a client to https://yo-mcp.com/mcp/7NIU...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clients fail and crash If initial GET request returns a redirect (e.g. 302)","articleBody":"**Describe the bug**\nIf a remote (see transport) server responds to the initial GET request of the client with a redirect an error is thrown\n\n**To Reproduce**\nConnect a client to https://yo-mcp.com/mcp/7NIUz0cvfStY6-wSsVyY3\nIt will get a redirect. The typescript client handles it just fine.\n\n**Expected behavior**\nThe get request should just follow the redirect.\n\n**Screenshots**\n\n\u003cimg width=\"953\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b6da5abe-c6e8-4a3f-8847-d78d893f5179\" /\u003e\n\n**Desktop (please complete the following information):**\n - OS: MacOS\n - Version mcp python sdk version 1.2.0\n","author":{"url":"https://github.com/eastlondoner","@type":"Person","name":"eastlondoner"},"datePublished":"2025-03-14T09:34:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/283/python-sdk/issues/283"}
| 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:33a7a05d-22ba-8c53-333a-897d8527475d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA64:1ED54D:724654:968D1A:6A5C0CE5 |
| html-safe-nonce | 1418c02fd5ccf15fce7acdf0d3bbdd21aa4233034490d0973bf21c7921fe0770 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTY0OjFFRDU0RDo3MjQ2NTQ6OTY4RDFBOjZBNUMwQ0U1IiwidmlzaXRvcl9pZCI6IjI3NzYxOTEwNzI5MjU5MTIyOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8eb3ce5b045a454b5bc752f77b39e7e4a49e4c8ab7a05549ca613cfc80b05eea |
| hovercard-subject-tag | issue:2919717660 |
| 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/283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a132840d8be15e577be395f30bad73b651717a32a2e4c8039b91762a207813dc/modelcontextprotocol/python-sdk/issues/283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a132840d8be15e577be395f30bad73b651717a32a2e4c8039b91762a207813dc/modelcontextprotocol/python-sdk/issues/283 |
| og:image:alt | Describe the bug If a remote (see transport) server responds to the initial GET request of the client with a redirect an error is thrown To Reproduce Connect a client to https://yo-mcp.com/mcp/7NIU... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eastlondoner |
| 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