Skip to content

[Gap]: Document vMCP circuit breaker #535

Closed

Description

@yrobla

What needs documentation?

The Virtual MCP Server (vMCP) implements sophisticated health monitoring and circuit
breaker patterns to handle backend failures gracefully. While the feature is fully
implemented in code, comprehensive user-facing documentation is missing. This issue covers
creating end-to-end documentation that helps users understand, configure, and troubleshoot
health monitoring and circuit breaker functionality.

Context and references

stacklok/toolhive#3036

Use case

The Virtual MCP Server aggregates multiple backend MCP servers (e.g., GitHub, Slack, Jira,
Kubernetes) into a unified interface. Without health monitoring and circuit breaker, when a
backend becomes unavailable—due to crashes, network issues, deployments, or rate
limiting—the vMCP continues routing requests to the failed backend, causing timeouts,
degraded performance, and poor user experience. Users see failing tools in capability
lists, experience 30+ second timeouts, and get cryptic error messages. When backends
recover, manual intervention is often needed to restore connectivity.

With health monitoring and circuit breaker enabled, the vMCP automatically detects failing
backends through periodic health checks, removes their tools from capability lists, and
fails fast instead of waiting for timeouts. The circuit breaker prevents cascading failures
by immediately rejecting requests to backends that have exceeded failure thresholds,
giving them time to recover. When backends come back online, the system automatically
detects recovery and restores normal operation. The partial failure mode (best_effort)
allows returning results from healthy backends even when some fail, enabling degraded but
functional service. This makes vMCP production-ready for enterprise deployments where
individual backend failures should not bring down the entire aggregated service. Proper
documentation is critical for users to configure these features correctly and understand
failure behaviors in production environments.

Additional context

No response

Metadata

Metadata

Assignees

Labels

documentationenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions