Function: eca-mcp--server-candidate

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

Signature

(eca-mcp--server-candidate SERVER NAME-WIDTH STATE-WIDTH)

Documentation

Describe MCP SERVER using aligned NAME-WIDTH and STATE-WIDTH columns.

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-candidate (server name-width state-width)
  "Describe MCP SERVER using aligned NAME-WIDTH and STATE-WIDTH columns."
  (let* ((status (plist-get server :status))
         (state (eca-mcp--server-state-label server))
         (colored-state (propertize state
                                    'face
                                    (eca-mcp--status-face status))))
    (concat (eca-mcp--pad-right (plist-get server :name) name-width)
            "  "
            (eca-mcp--pad-right colored-state state-width)
            "  "
            (eca-mcp--server-action-label server))))