Skip to content

mcp: a server that fails to start is respawned on every listing, with no backoff #192

Done

Description

@cabljac

A server that cannot start is started again on every tool listing. In a host it is worse: all servers share one listing, so the broken server gets a new process every time the healthy servers are listed, and every time a tool call on any of them fails.

Expected: after a connection fails before completing a request (including a handshake that never finishes), wait before starting the server again: 1s, doubling per failure in a row, up to 30s. During the wait, listings and tool calls fail at once with UNAVAILABLE and say how long is left. A server that worked and then died is still replaced on next use with no wait. restart() and host.reconnect() skip the wait and reset it.

Fix: #100. Follow-up from genkit-ai/genkit#6194.

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions