Function: mcp-async-initialize-message
mcp-async-initialize-message is a natively compiled function defined
in mcp.el.
Signature
(mcp-async-initialize-message CONNECTION CHECK-SSE CALLBACK &optional ERROR-CALLBACK)
Documentation
Sending an initialize request to the CONNECTION.
CONNECTION is the MCP connection object. CHECK-SSE is an optional boolean flag indicating whether to verify is SSE mcp server before sending. CALLBACK is a function to call upon successful initialization. ERROR-CALLBACK is an optional function to call if an error occurs.
This function sends an initialize request to the server
with the client's capabilities and version information.
Source Code
;; Defined in /nix/store/5m747x13pb1ddrvbq9raj91c4q1h1kl0-emacs-packages-deps/share/emacs/site-lisp/elpa/mcp-20260615.940/mcp.el
(defun mcp-async-initialize-message (connection check-sse callback &optional error-callback)
"Sending an `initialize' request to the CONNECTION.
CONNECTION is the MCP connection object.
CHECK-SSE is an optional boolean flag indicating whether to verify is SSE
mcp server before sending.
CALLBACK is a function to call upon successful initialization.
ERROR-CALLBACK is an optional function to call if an error occurs.
This function sends an `initialize' request to the server
with the client's capabilities and version information."
(mcp--initialize-message connection check-sse callback error-callback))