Function: claude-code-ide-mcp-server-get-config
claude-code-ide-mcp-server-get-config is a natively compiled function
defined in claude-code-ide-mcp-server.el.
Signature
(claude-code-ide-mcp-server-get-config &optional SESSION-ID)
Documentation
Get the MCP configuration for the tools server.
If SESSION-ID is provided, includes it in the URL path. Returns an alist suitable for JSON encoding.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide-mcp-server.el
(defun claude-code-ide-mcp-server-get-config (&optional session-id)
"Get the MCP configuration for the tools server.
If SESSION-ID is provided, includes it in the URL path.
Returns an alist suitable for JSON encoding."
(when-let* ((port (claude-code-ide-mcp-server-get-port)))
(let* ((path (if session-id
(format "/mcp/%s" session-id)
"/mcp"))
(url (format "http://localhost:%d%s" port path))
(config `((type . "http")
(url . ,url))))
`((mcpServers . ((emacs-tools . ,config)))))))