Skip to content

fix(server): silence FastMCP.run_stdio_async never-awaited warning #373

Description

@HumanBean17

Context

The Windows CI run (and others) emits:

server.py:752: RuntimeWarning: coroutine 'FastMCP.run_stdio_async' was never awaited

Appears as 2 warnings — not a failure, but noisy and points at a real lifecycle issue: a test path launches the MCP server in-process without awaiting the coroutine (the server isn't actually running in that path).

Action

Find the caller around server.py:752 (and the test that triggers it, e.g. test_mcp_server_loads_yaml_config_at_startup / test_mcp_server_yaml_config_precedence_env_over_yaml) and either await the coroutine properly or restructure so the server isn't started as a bare coroutine.

Acceptance

  • No RuntimeWarning: coroutine ... never awaited in CI output on any OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions