Function: eca-mcp--server-state-label

eca-mcp--server-state-label is a natively compiled function defined in eca-mcp.el.

Signature

(eca-mcp--server-state-label SERVER)

Documentation

Return the operational state label 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-state-label (server)
  "Return the operational state label for MCP SERVER."
  (pcase (plist-get server :status)
    ("running" "Running")
    ("starting" "Starting")
    ("stopping" "Stopping")
    ((or "stopped" "disabled") "Stopped")
    ("failed" "Failed")
    ("requires-auth" "Needs auth")
    (_ "Unknown")))