About Claude Code Emacs
Claude Code Emacs is an MCP server published by yuya373 in the Developer Tools category: this package provides seamless integration with Claude Code, allowing you to run AI-powered coding sessions directly in your Emacs environment. Conduid read 11 tools from its source: describeSymbol, findReferences, getCurrentSelection, getDefinition, getDiagnostics, getOpenBuffers and 5 more. No package is published for it, so it installs from a source checkout.
The repository has 67 stars and 7 forks, is licensed GPL-3.0, and its last commit was on 24 Sep 2026. The latest release is v0.10.1 (24 Sep 2026): Summary This release stops openDiffContent from overwriting your Emacs buffers. It follows v0.10.0 (12 Aug 2026), and the 5 most recent releases go back to v0.9.0 (25 May 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools and emacs.
Install
git clone https://github.com/yuya373/claude-code-emacsTools (11)
describeSymbolGet the hover documentation (signature, type, docstring) for a symbol, using lsp-mode (textDocument/hover). The file is opened in Emacs, point moves to the first occurrence of symbol on the given line, and the language server is asked for hover information; if symbol does not appear on that line, the request is made from the start of the line. Requires lsp-mode to be active for that file. Content depends entirely on what the language server returns for hover.findReferencesFind all references to a symbol, using lsp-mode (textDocument/references). The file is opened in Emacs, point moves to the first occurrence of symbol on the given line, and the language server is asked for references; if symbol does not appear on that line, the request is made from the start of the line. Requires lsp-mode to be active for that file. Returns each reference with its path relative to the project root, absolute path, range and a few lines of preview.getCurrentSelectionGet the text of the active region (selection) in the current Emacs buffer (normally the one the user is working in), with its file path and start/end line and column. When no region is active it returns "No text is currently selected" and empty fields; the file path is empty when the buffer is not visiting a file. It returns only the selected text, not the rest of the buffer.getDefinitionFind where a symbol is defined, using lsp-mode (textDocument/definition). The file is opened in Emacs, point moves to the first occurrence of symbol on the given line, and the language server is asked for its definition; if symbol does not appear on that line, the request is made from the start of the line and may resolve a different symbol. Requires lsp-mode to be active for that file. Returns each definition location with a few lines of preview, or an error when none is found.getDiagnosticsGet lsp-mode diagnostics (errors, warnings, hints) for every file in the LSP workspace that the given buffer belongs to, grouped by file. The buffer argument is an Emacs buffer name (the name field from getOpenBuffers), not a file path; the buffer must be open with lsp-mode active, because its workspace decides which diagnostics come back. Returns an empty list when lsp-mode is not installed or the server reports nothing. Structured output uses 0-based lines and a single start position per range; the text output shows 1-based lines.getOpenBuffersList Emacs buffers that visit files under the current project root. Each entry has the absolute file path, the buffer name, whether it is the current buffer in Emacs (active), and whether it has unsaved changes (modified). Buffers without a file (vterm, dired, *scratch*, etc.) and files outside the project are not included. The buffer name is what getDiagnostics takes as its buffer argument.openCurrentChangesShow the uncommitted changes of a file as a unified diff in an Emacs *vc-diff* buffer, comparing the working copy with the last committed version (like git diff). Without file it uses the file of the current Emacs buffer. For a side-by-side comparison against a specific revision, use openRevisionDiff.openDiffContentCompare two text snippets side-by-side in an Emacs ediff session. Use this for content that is not saved in files, such as alternative versions of a code snippet, API responses, or generated content. Each content goes into a dedicated buffer named "*claude-code-diff: <title>*"; an earlier buffer with the same title is reused only if it is unedited and no longer in an ediff session, and no other buffer is ever modified.openDiffFileCompare two files side-by-side in an Emacs ediff session. Paths may be absolute or relative to the project root, and both files must exist. For comparing a file with its git history, use openRevisionDiff instead.openRevisionDiffCompare a file with its previous version from git history. Use this when you want to see what changed in a file over time, not for comparing two different files.sendNotificationShow a notification to the user in Emacs, for example when a task completes or needs their attention. Uses the alert package when it is installed (which may produce a desktop notification, depending on the user's alert style) and otherwise falls back to a message in the Emacs echo area. It does not wait for or return any user response.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by mcp-server/package-lock.json.
- ✓No dynamic code executionScanned 27 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiomcp-server/src/index.ts:4
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 3 callsmcp-server/src/index.ts:51, mcp-server/src/index.ts:369, mcp-server/src/index.ts:506
- Lockfile
- mcp-server/package-lock.json
Pattern matches on the source text of 27 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README