René's URL Explorer Experiment


Title: `RuntimeError: Task group is not initialized` in the simplest possible MCP server with default config · Issue #838 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: `RuntimeError: Task group is not initialized` in the simplest possible MCP server with default config · Issue #838 · modelcontextprotocol/python-sdk

X Title: `RuntimeError: Task group is not initialized` in the simplest possible MCP server with default config · Issue #838 · modelcontextprotocol/python-sdk

Description: The bug RuntimeError: Task group is not initialized. Make sure to use run(). Response code: 500 (Internal Server Error); Time: 9ms (9 ms); Content length: 1677 bytes (1.68 kB) Reproduces in each subsequent HTTP request (the first one wor...

Open Graph Description: The bug RuntimeError: Task group is not initialized. Make sure to use run(). Response code: 500 (Internal Server Error); Time: 9ms (9 ms); Content length: 1677 bytes (1.68 kB) Reproduces in each su...

X Description: The bug RuntimeError: Task group is not initialized. Make sure to use run(). Response code: 500 (Internal Server Error); Time: 9ms (9 ms); Content length: 1677 bytes (1.68 kB) Reproduces in each su...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/838

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`RuntimeError: Task group is not initialized` in the simplest possible MCP server with default config","articleBody":"## The bug\n```\nRuntimeError: Task group is not initialized. Make sure to use run().\nResponse code: 500 (Internal Server Error); Time: 9ms (9 ms); Content length: 1677 bytes (1.68 kB)\n```\nReproduces in each subsequent HTTP request (the first one works fine).\n\n**It's very counterintuitive if the default configuration doesn't work out of the box.**\n\n## To Reproduce\n\n```python\nfrom mcp.server.fastmcp import FastMCP\nmcp = FastMCP(port=8010, debug=True, host='0.0.0.0')\n@mcp.tool()\ndef ping(): return \"pong\"\nmcp.run(transport=\"streamable-http\")\n```\n\n```http\n###\nPOST http://localhost:8010/mcp/session\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n    \"method\": \"initialize\",\n    \"jsonrpc\": \"2.0\",\n    \"id\": 1\n}\n```\n\n## Stack trace\n\n```\nHTTP/1.1 500 Internal Server Error\ndate: Thu, 29 May 2025 14:19:00 GMT\nserver: uvicorn\ncontent-length: 1677\ncontent-type: text/plain; charset=utf-8\n\nTraceback (most recent call last):\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\starlette\\middleware\\errors.py\", line 164, in __call__\n    await self.app(scope, receive, _send)\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\starlette\\middleware\\exceptions.py\", line 62, in __call__\n    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\starlette\\_exception_handler.py\", line 64, in wrapped_app\n    raise exc\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\starlette\\_exception_handler.py\", line 53, in wrapped_app\n    await app(scope, receive, sender)\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\starlette\\routing.py\", line 758, in __call__\n    await self.middleware_stack(scope, receive, send)\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\starlette\\routing.py\", line 778, in app\n    await route.handle(scope, receive, send)\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\starlette\\routing.py\", line 487, in handle\n    await self.app(scope, receive, send)\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\mcp\\server\\fastmcp\\server.py\", line 786, in handle_streamable_http\n    await self.session_manager.handle_request(scope, receive, send)\n  File \"C:\\Users\\********\\AppData\\Roaming\\Python\\Python313\\site-packages\\mcp\\server\\streamable_http_manager.py\", line 137, in handle_request\n    raise RuntimeError(\"Task group is not initialized. Make sure to use run().\")\nRuntimeError: Task group is not initialized. Make sure to use run().\n```\n\n## Related issues\n\nhttps://github.com/modelcontextprotocol/python-sdk/issues/713","author":{"url":"https://github.com/Nayjest","@type":"Person","name":"Nayjest"},"datePublished":"2025-05-29T14:26:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/838/python-sdk/issues/838"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c43566a4-8ac2-458b-345b-39d9d843e575
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA7DA:1E5C2:1D2114:28E553:6A60515E
html-safe-nonce499160e5c035b5efcba53ec0d640bedf46738555c4a69fc8f5cecb02e62d827b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0RBOjFFNUMyOjFEMjExNDoyOEU1NTM6NkE2MDUxNUUiLCJ2aXNpdG9yX2lkIjoiNjIzOTQwNzI5NDU3OTIzMzExOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6ffc9f077d4750b764d0e510a4736b06d9ea47b1a6cb37534685435a8e8081e8
hovercard-subject-tagissue:3100524786
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/838/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7b6fcef788a70b3929b28cc32682d414259f93e58366ff9f3d59023e8f7d3180/modelcontextprotocol/python-sdk/issues/838
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7b6fcef788a70b3929b28cc32682d414259f93e58366ff9f3d59023e8f7d3180/modelcontextprotocol/python-sdk/issues/838
og:image:altThe bug RuntimeError: Task group is not initialized. Make sure to use run(). Response code: 500 (Internal Server Error); Time: 9ms (9 ms); Content length: 1677 bytes (1.68 kB) Reproduces in each su...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNayjest
hostnamegithub.com
expected-hostnamegithub.com
None60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0
turbo-cache-controlno-preview
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9824515e740d83d5eb82168a089b806ab0fe04a1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/issues/838#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F838
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F838
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/838
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/838
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/838
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/issues/838
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 266 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 312 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
SharkyND/mcp-atlassian#11https://github.com/SharkyND/mcp-atlassian/pull/11
RuntimeError: Task group is not initialized in the simplest possible MCP server with default confighttps://github.com/modelcontextprotocol/python-sdk/issues/838#top
SharkyND/mcp-atlassian#11https://github.com/SharkyND/mcp-atlassian/pull/11
https://github.com/Nayjest
Nayjesthttps://github.com/Nayjest
on May 29, 2025https://github.com/modelcontextprotocol/python-sdk/issues/838#issue-3100524786
#713https://github.com/modelcontextprotocol/python-sdk/issues/713
🐛 🛠https://github.com/orgs/modelcontextprotocol/projects/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.