Skip to main content

finish_launch

Function finish_launch 

Source
pub fn finish_launch(
    files: &mut [AgentConfigFile],
    mstore: &Store,
    agent_id: Option<&str>,
    hands_out_keys: bool,
)
Expand description

A launch’s generated .mcp.json (writeagentconfig): named for the definition’s agent id, holding no signing value, and, when hands_out_keys, with that agent’s keys ensured in the store.

Keys are ensured only for the AgentMux window, proven by its host (RpcContext::operator_only): a caller that could name any agent would otherwise have keys made for it. The agent’s MCP fetches its own keys from srv with its token (/agentmux/agents/self/keys).