MCP Server Framework - v1.0.0
    Preparing search index...

    Module connection

    Connection Module

    Manages backend service connection state and lifecycle for the MCP framework. This module is generic and client-agnostic — it works with any ServiceClient.

    This module handles the connection to backend services, NOT the MCP transport layer. For transport lifecycle, see the transport-specific modules (sse/lifecycle, streamable-http/lifecycle).

    Interfaces

    ConnectionStateEvent
    ConnectionStateOptions
    ConnectionStateStats
    ConnectionTelemetry
    ReconnectOptions
    TelemetrySpan

    Type Aliases

    ConnectionErrorCode
    ConnectionState
    ConnectionStateListener

    Variables

    ClientInitializerLogMessages
    CONNECTION_LOG_COMPONENTS
    CONNECTION_MCP_SPEC
    CONNECTION_STATE_CONFIG
    CONNECTION_STATES
    ConnectionErrorCodes
    ConnectionStateLogMessages
    NO_OP_TELEMETRY
    RECONNECT_DEFAULTS

    Functions

    getHttpStatusForConnectionError
    getMcpCodeForConnectionError

    References

    ConnectionStateManager → ConnectionStateManager
    HealthCheckResult → HealthCheckResult
    HealthStatus → HealthStatus
    isServiceClient → isServiceClient
    ServiceClient → ServiceClient
    ServiceClientFactory → ServiceClientFactory