ExMCP.Client.Wrapper (ex_mcp v0.9.2)
View SourceWrapper module that provides a unified interface to different client implementations.
This module allows runtime switching between the legacy GenServer implementation and the new StateMachine implementation via configuration.
Configuration
# Use state machine implementation (opt-in)
config :ex_mcp, :client_adapter, ExMCP.Client.StateMachineAdapter
# Use legacy implementation (default)
config :ex_mcp, :client_adapter, ExMCP.Client.LegacyAdapterPer-client configuration
# Force specific implementation
{:ok, client} = ExMCP.Client.start_link(
transport: :stdio,
command: "mcp-server",
adapter: ExMCP.Client.StateMachineAdapter
)
Summary
Functions
Gets the adapter module for a client or from configuration.
Starts a client with the configured adapter.
Functions
Gets the adapter module for a client or from configuration.
Starts a client with the configured adapter.