- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.7k
Open
Labels
bugSomething isn't workingSomething isn't workingneeds reproneeds additional information to be able to reproduce bugneeds additional information to be able to reproduce bug
Milestone
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
following error sometime occur.
fastmcp.run() runtimeerror: task group is not initialized. make sure to use run().
Example Code
from mcp.server.fastmcp import FastMCP
# FastMCP instance
mcp = FastMCP(
    name=setting.server["name"],
    host=setting.server["host"],
    port=setting.server["port"],
    streamable_http_path=setting.server["streamable_http_path"],
    api_route="/mcp/",
    debug=True,
)
try:
    mcp.run(transport="streamable-http")
except KeyboardInterrupt:
    logger.info("Service shut down")Python & MCP Python SDK
mcp version (1.13.1)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds reproneeds additional information to be able to reproduce bugneeds additional information to be able to reproduce bug