barrel_mcp_client_sup (barrel_mcp v2.0.2)

View Source

Supervisor for barrel_mcp_client workers.

Each child is one connection to one MCP server. Hosts spawn children on demand via barrel_mcp_clients:start_client/2.

Summary

Functions

Start a new client worker. Spec is the barrel_mcp_client:connect_spec().

Functions

init(_)

start_child(ServerId, Spec)

-spec start_child(term(), barrel_mcp_client:connect_spec()) -> {ok, pid()} | {error, term()}.

Start a new client worker. Spec is the barrel_mcp_client:connect_spec().

start_link()