Expand description
Named MCP session daemons over Unix-domain sockets (Unix only).
One session name → one long-lived crate::mcp::McpClient. Ephemeral CLI
processes speak NDJSON over AF_UNIX (list_tools, call_tool, resources,
prompts). See crate README for layout, idle timeout, and security model.
Structs§
Enums§
Constants§
Functions§
- clear_
stale_ session - If meta exists but PID is dead, clear leftovers. Returns true if cleaned.
- is_
process_ alive - resolve_
idle_ secs - run_
session_ daemon - Entry point for
__session_daemon <config-path>. - session_
is_ alive - session_
list - List known sessions (from meta files).
- session_
log_ path - session_
meta_ path - session_
request - Send one NDJSON request to a named session daemon and return the result.
- session_
sock_ path - session_
start - Start a session daemon. Blocks until the socket appears (≤15s).
- session_
stop - Stop a session daemon (SIGTERM, then SIGKILL).
- sessions_
dir