You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;; (setq ai-code-mcp-debug-tools-enabled nil) ;; disable them
219
219
#+end_src
220
220
221
-
When enabled, AI Code also registers:
221
+
These tools add:
222
222
- =get_variable_value=: return the printed value of an Emacs variable by name
223
223
- =get_variable_binding_info=: inspect current and default bindings for an Emacs variable
224
224
- =get_function_info=: inspect function metadata such as kind, aliasing, and advice state
@@ -227,15 +227,15 @@ When enabled, AI Code also registers:
227
227
- =get_last_error_backtrace=: return the most recently recorded Emacs command error snapshot
228
228
- =eval_elisp=: evaluate a single Emacs Lisp form in a chosen buffer context when explicitly enabled
229
229
230
-
This split keeps the MCP core small while still exposing debugging-oriented tools by default.
230
+
The old =ai-code-mcp-editor-tools.el= module has been removed. Its live-editor read tools are now built in, while =eval_elisp= remains an explicit opt-in.
231
231
232
-
By default, =eval_elisp= is not registered. To opt in explicitly:
@@ -252,7 +252,7 @@ Set the backend to =claude-code=, =codex=, or =github-copilot-cli= and start a s
252
252
- register the current project/buffer as the MCP session context
253
253
- inject a session-scoped MCP config into that agent session automatically
254
254
255
-
Today this auto-wiring is enabled for =claude-code=, =codex=, and =github-copilot-cli=. The adapter layer is designed so other backends can be added later.
255
+
Auto-wiring is currently enabled for =claude-code=, =codex=, and =github-copilot-cli=.
256
256
257
257
If you disabled it before, enable it again with:
258
258
@@ -272,10 +272,9 @@ If it shows =:backend=, =:session-id=, and a local =:server-url=, then Emacs has
272
272
- use =imenu_list_symbols= for the current file
273
273
- use =get_diagnostics= and summarize the current file diagnostics
274
274
275
-
The status command only proves the Emacs side is wired.
276
-
The real proof is that the started agent returns your current project path, buffer context, or current-file symbols from those tools.
275
+
The status command only proves the Emacs side is wired. The real proof is that the agent returns your current project path, buffer context, or current-file symbols from those tools.
277
276
278
-
***** Add New MCP function
277
+
***** Add a New MCP Tool
279
278
280
279
1. Define an Emacs Lisp function.
281
280
@@ -309,8 +308,7 @@ If the agent session is already running, restart it after registering the new to
309
308
(ai-code-mcp-dispatch "tools/list")
310
309
#+end_src
311
310
312
-
If =current_buffer_name= appears in the tool list, Emacs has registered it.
313
-
If the started agent can call it and returns the expected buffer name, the tool is available inside the AI coding agent.
311
+
If =current_buffer_name= appears in the tool list, Emacs has registered it. If the agent can call it and returns the expected buffer name, the tool is available inside the AI coding session.
0 commit comments