Function: eca-mcp--server-runtime-action

eca-mcp--server-runtime-action is a natively compiled function defined in eca-mcp.el.

Signature

(eca-mcp--server-runtime-action SERVER)

Documentation

Return the runtime action available for MCP SERVER.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-mcp.el
(defun eca-mcp--server-runtime-action (server)
  "Return the runtime action available for MCP SERVER."
  (pcase (plist-get server :status)
    ((or "running" "starting") 'stop)
    ((or "stopped" "failed" "disabled") 'start)
    ("requires-auth" 'connect)
    (_ nil)))