Function: mcp-async-list-resources
mcp-async-list-resources is a natively compiled function defined in
mcp.el.
Signature
(mcp-async-list-resources CONNECTION &optional CALLBACK ERROR-CALLBACK)
Documentation
Get list of resources 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-resources (connection &optional callback error-callback)
"Get list of resources 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 :resources/list :resources '-resources callback error-callback nil))