Function: mcp-async-list-prompts

mcp-async-list-prompts is a natively compiled function defined in mcp.el.

Signature

(mcp-async-list-prompts CONNECTION &optional CALLBACK ERROR-CALLBACK)

Documentation

Get list of prompts from the MCP server using the provided CONNECTION.

CALLBACK is a function to call with the result. ERROR-CALLBACK is a function to call on error.

Source Code

;; Defined in /nix/store/5m747x13pb1ddrvbq9raj91c4q1h1kl0-emacs-packages-deps/share/emacs/site-lisp/elpa/mcp-20260615.940/mcp.el
(defun mcp-async-list-prompts (connection &optional callback error-callback)
  "Get list of prompts from the MCP server using the provided CONNECTION.
CALLBACK is a function to call with the result.
ERROR-CALLBACK is a function to call on error."
  (mcp--list-items connection :prompts/list :prompts '-prompts callback error-callback nil))