Function: eca-mcp--notify-server-action

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

Signature

(eca-mcp--notify-server-action SESSION SERVER ACTION)

Documentation

Notify SESSION to perform ACTION 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--notify-server-action (session server action)
  "Notify SESSION to perform ACTION for MCP SERVER."
  (let ((method (pcase action
                  ('start "mcp/startServer")
                  ('stop "mcp/stopServer")
                  ('connect "mcp/connectServer")
                  (_ (error "Unsupported MCP server action: %S" action)))))
    (eca-api-notify session
                    :method method
                    :params (list :name (plist-get server :name)))))