Function: eca-mcp--eldoc-function
eca-mcp--eldoc-function is a natively compiled function defined in
eca-mcp.el.
Signature
(eca-mcp--eldoc-function CB &rest IGNORED)
Documentation
Eldoc function for MCP details buffer.
When point is on a tool or status emoji, call CB with docs.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-mcp.el
(defun eca-mcp--eldoc-function (cb &rest _ignored)
"Eldoc function for MCP details buffer.
When point is on a tool or status emoji, call CB with docs."
(cond
((when-let* ((status (get-text-property (point) 'eca-mcp-status)))
(funcall cb (concat (propertize "Status: " 'face 'bold)
status))
t))
((when-let* ((tool (get-text-property (point) 'eca-mcp-tool)))
(let* ((name (plist-get tool :name))
(description (plist-get tool :description))
(input-schema (plist-get tool :inputSchema))
(args (eca-mcp--format-input-schema-args input-schema))
(doc (concat (propertize name 'face 'bold)
(when description
(concat ": " description))
(when args
(concat "\n"
(propertize "Args:" 'face 'font-lock-keyword-face)
"\n "
(string-join args "\n "))))))
(funcall cb doc)
t)))))