Title: 401 from /sse after upgrading to 1.7.0 · Issue #613 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: 401 from /sse after upgrading to 1.7.0 · Issue #613 · modelcontextprotocol/python-sdk
X Title: 401 from /sse after upgrading to 1.7.0 · Issue #613 · modelcontextprotocol/python-sdk
Description: Describe the bug MCP stop working due to auth error after upgrading from 1.6.0 to 1.7.0 To Reproduce mcp: FastMCP = FastMCP() @mcp.tool() def add_two_integers(a: int, b: int) -> int: """ Adds two integers. Args: a (int): The first intege...
Open Graph Description: Describe the bug MCP stop working due to auth error after upgrading from 1.6.0 to 1.7.0 To Reproduce mcp: FastMCP = FastMCP() @mcp.tool() def add_two_integers(a: int, b: int) -> int: """ Adds two i...
X Description: Describe the bug MCP stop working due to auth error after upgrading from 1.6.0 to 1.7.0 To Reproduce mcp: FastMCP = FastMCP() @mcp.tool() def add_two_integers(a: int, b: int) -> int: ""...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/613
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"401 from /sse after upgrading to 1.7.0","articleBody":"**Describe the bug**\nMCP stop working due to auth error after upgrading from 1.6.0 to 1.7.0\n\n**To Reproduce**\n```\nmcp: FastMCP = FastMCP()\n\n@mcp.tool()\ndef add_two_integers(a: int, b: int) -\u003e int:\n \"\"\"\n Adds two integers.\n\n Args:\n a (int): The first integer.\n b (int): The second integer.\n\n Returns:\n int: The sum of the two integers.\n \"\"\"\n return a + b\n\napp: FastAPI = FastAPI()\n\napp.mount(\"/\", mcp.sse_app())\n```\n\n**Expected behavior**\nAbove is a super simple example to bind mcp to fastapi, I start with uvicorn, it works just fine with 1.6.0 but stop working in 1.7.0 due to 401 from /sse. Here I'm not configuring any auth so expecting no auth check.\n\n","author":{"url":"https://github.com/xwhysi","@type":"Person","name":"xwhysi"},"datePublished":"2025-05-02T00:40:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/613/python-sdk/issues/613"}
| 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:accaa4f0-88d0-10fa-570a-7314e39c31b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDF2:368174:746E6F:9A0D9C:6A5B36AC |
| html-safe-nonce | 7b5479427e36bc093e6b0d4d632cec43ed0860e4f45084a556e3790f313797ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREYyOjM2ODE3NDo3NDZFNkY6OUEwRDlDOjZBNUIzNkFDIiwidmlzaXRvcl9pZCI6IjMwODczOTc5ODIyMTc5MDk5MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 324579073422e3fdc6f48b1cbefc67735703cd46feecc4f7360829b7bb76d08a |
| hovercard-subject-tag | issue:3034963874 |
| 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/613/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79737e69007215ba03adb380a4d37c97f3d300722d17149c37f477f18152aacd/modelcontextprotocol/python-sdk/issues/613 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79737e69007215ba03adb380a4d37c97f3d300722d17149c37f477f18152aacd/modelcontextprotocol/python-sdk/issues/613 |
| og:image:alt | Describe the bug MCP stop working due to auth error after upgrading from 1.6.0 to 1.7.0 To Reproduce mcp: FastMCP = FastMCP() @mcp.tool() def add_two_integers(a: int, b: int) -> int: """ Adds two i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xwhysi |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width