barrel_mcp_client_sup (barrel_mcp v3.0.1)
View SourceSupervisor of the client shells.
Each child is a barrel_mcp_client_shell, one per ServerId, holding one connection to one MCP server and that connection's own restart budget. Shells are temporary here: a shell that ends, because its client left normally or exhausted its budget, is not restarted and its id becomes free, and the other shells never notice. Hosts start them through barrel_mcp_clients:start_client/2.
Summary
Functions
Start the shell for ServerId with Spec, the barrel_mcp_client:connect_spec().
Functions
-spec start_child(term(), barrel_mcp_client:connect_spec()) -> {ok, pid()} | {error, term()}.
Start the shell for ServerId with Spec, the barrel_mcp_client:connect_spec().