Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions emacs-mcp.el
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ This function is meant to be used in batch mode."
(error "Empty input, exiting"))
(emacs-mcp--process-input input))))

(defun emacs-mcp--format-name (name)
"Convert NAME from Emacs kebab-case to MCP snake_case format."
(replace-regexp-in-string "-" "_" name))
(eval-and-compile
(defun emacs-mcp--format-name (name)
"Convert NAME from Emacs kebab-case to MCP snake_case format."
(replace-regexp-in-string "-" "_" name)))

;;;###autoload
(defmacro define-mcp-tool (name args description &rest body)
Expand Down