barrel_mcp_client_sup (barrel_mcp v3.0.0)

View Source

Supervisor 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

init(_)

start_child(ServerId, Spec)

-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().

start_link()