Lifecycle
lifecycle
Launchd lifecycle management for the AXM MCP server.
find_binary()
Locate the axm-mcp binary, preferring ~/.local/bin.
Source code in packages/axm-mcp/src/axm_mcp/lifecycle.py
generate_plist(port=DEFAULT_PORT, *, binary=None)
Render the launchd plist with the current binary path.
Source code in packages/axm-mcp/src/axm_mcp/lifecycle.py
install(port=DEFAULT_PORT, *, binary=None)
Generate the plist, write it, and load it via launchctl.
Source code in packages/axm-mcp/src/axm_mcp/lifecycle.py
uninstall()
Stop the service and remove the plist.