Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fastmcp.run() runtimeerror: task group is not initialized. make sure to use run(). #1372

Copy link
Copy link
@SinDongHwan

Description

@SinDongHwan
Issue body actions

Initial Checks

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)
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.