Skip to main content

Module mcp_health

Module mcp_health 

Source
Expand description

agentmux-mcp doctor’s two calls (docs/specs/SPEC_AGENT_MCP_SELF_HEAL_2026_10_10.md §7): what srv knows about the caller’s own agentmux MCP server, and “repair it now”.

doctor runs in the agent’s shell, which has no MCP signing key (only the MCP process does), so the caller’s pane comes from its agent token (actor::own_pane_by_token). There is no target: an agent can only look at, and heal, its own pane.

Structs§

BeatRequest 🔒
SelfRequest 🔒

Functions§

folder_rule 🔒
Whether a host agent in folder (else the folder of the pane block_id) gets only the MCP servers AgentMux writes: a container agent can write it, or has run in it (backend::mcp_folder_rule). Yes when that can’t be told, and when there is no folder to ask about.
handle_mcp_beat 🔒
POST /api/v1/agent/self/mcp-beat: the MCP process says it is alive and how it is doing (agentmux-mcp’s heartbeat.rs). 204 always for a known pane: a beat is never worth an error in the MCP process.
handle_mcp_heal 🔒
POST /api/v1/agent/self/mcp-heal: 202 healing when a repair started, else 200 with why not (connected, already_healing, no_status_yet, no_process).
handle_mcp_health 🔒
POST /api/v1/agent/self/mcp-health
no_pane 🔒
own_pane 🔒
rule_for 🔒
folder_rule for the folder that was found, if one was.