ExMCP.Reliability.Supervisor.ClientWrapper (ex_mcp v1.0.0-rc.8)

Copy Markdown View Source

Wrapper process that integrates reliability features for MCP clients.

This process intercepts calls to the underlying client and applies:

  • Circuit breaker protection
  • Retry logic with exponential backoff
  • Health monitoring integration
  • A bound on concurrently in-flight requests

Options

  • :client - the wrapped ExMCP.Client pid (required)
  • :circuit_breaker - circuit breaker pid, or nil to disable
  • :retry_opts - retry policy passed to ExMCP.Reliability.Retry
  • :max_concurrency - maximum requests executing at once (default: 100). Calls beyond the limit are rejected with {:error, :too_many_requests} instead of spawning unbounded work against a struggling server.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)