feat(coding-agent): implemented mcp__-prefixed MCP tool IDs for parsing

- Renamed MCP tool IDs from `mcp_<server>_<tool>` to `mcp__<server>_<tool>`, and changed built-in `grep` to `search`.
- Updated `parseMCPToolName()` and bridge helpers to require and trim the `mcp__` prefix.
- Updated cursor, manager, and session discovery flows to require `mcp__`-prefixed tool names.
- Updated MCP tests and assertion fixtures to use `mcp__`-prefixed tool IDs and expected system prompts.
This commit is contained in:
can1357
2026-04-28 01:15:35 +02:00
parent 527c083977
commit 88a1072cc5
10 changed files with 173 additions and 171 deletions
+1 -1
View File
@@ -672,7 +672,7 @@ internal URL input (rule://, docs://, ...)
- convert to agent tools using `MCPTool.fromTools(connection, serverTools)`
- Startup is bounded by `STARTUP_TIMEOUT_MS` (250ms). If tool loads are still pending, cached definitions may be used from `MCPToolCache` and exposed as deferred wrappers via `DeferredMCPTool.fromTools(...)`.
- Lifecycle operations:
- `disconnectServer(name)` and `disconnectAll()` tear down connections via `disconnectServer(connection)` and remove associated `mcp_<server>_` tools.
- `disconnectServer(name)` and `disconnectAll()` tear down connections via `disconnectServer(connection)` and remove associated `mcp__<server>_` tools.
- `refreshServerTools(name)` / `refreshAllTools()` re-run `listTools()` and replace server tool registrations.
`discoverAndLoadMCPTools()` in `src/mcp/loader.ts` is the adapter from manager internals to extensibility-facing output: