feat(coding-agent): list MCP servers instead of their tools in codemode

MCP codemode exposure no longer lists tools, tool counts, or server
instructions in the codemode description. Servers are listed by name and
an optional mcp.json description; scripts find tools with searchTools()
and read instructions with describeNamespace(). codemode-deferred is an
alias for codemode.

refs #10212
This commit is contained in:
Armin Ronacher 2026-09-30 13:54:02 +02:00
parent 03180653c6
commit 1c7e7df765
20 changed files with 234 additions and 105 deletions

View file

@ -6,8 +6,8 @@
*
* `codemode` and `tool_search` are registered inactive. Enable them through the `defaultTools` setting
* (`tools` would also restrict the session to the named tools, which hides MCP tools), or let the
* MCP extension activate them: `codemode` for servers with `codemode` or `codemode-deferred` exposure,
* `tool_search` for servers with `deferred` exposure.
* MCP extension activate them: `codemode` for servers with `codemode` exposure, `tool_search` for
* servers with `deferred` exposure.
*/
import {