Function: eca-mcp--server-action-label

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

Signature

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

Documentation

Return the user-facing runtime action 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-action-label (server)
  "Return the user-facing runtime action label for MCP SERVER."
  (pcase (plist-get server :status)
    ("failed" "Retry")
    ("stopping" "Wait")
    (_ (or (pcase (eca-mcp--server-runtime-action server)
             ('start "Start")
             ('stop "Stop")
             ('connect "Connect"))
           "Unavailable"))))