From ae8215ad7b517fb99a772d918cf8a80aef550e6c Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Mon, 2 Mar 2026 01:14:37 +0000 Subject: [PATCH 1/2] Initial plan From 596f079adf28b7639b5b9f414d188c35c7300f94 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Mon, 2 Mar 2026 01:17:34 +0000 Subject: [PATCH 2/2] Fix CLAUDE.md accuracy - clarify only 9 IDE tools are exposed Co-authored-by: GLinnik21 <23104281+GLinnik21@users.noreply.github.com> --- CLAUDE.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 0af0a86..ca487f7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -61,19 +61,21 @@ The CLI also supports `--workspace ` for running a single targeted instanc ## Tool Routing -`MCPToolRouter` exposes 9 IDE-specific tools + all mcpbridge tools: +`MCPToolRouter` exposes exactly 9 IDE-specific tools (it does NOT expose all mcpbridge tools): | IDE Tool | Implementation | |----------|---------------| | `openFile` | `xed --line N path` | -| `getDiagnostics` | Proxies to `XcodeListNavigatorIssues` with optional glob filter by file | -| `executeCode` | Proxies to `ExecuteSnippet` via mcpbridge | +| `getDiagnostics` | Wraps `XcodeListNavigatorIssues` mcpbridge tool with optional glob filter by file | +| `executeCode` | Wraps `ExecuteSnippet` mcpbridge tool | | `getCurrentSelection` / `getLatestSelection` | Returns current editor selection from `EditorContext` | | `getOpenEditors` | Lists open editors via AppleScript | | `getWorkspaceFolders` | Returns detected workspace paths | | `checkDocumentDirty` | Checks unsaved changes via AppleScript | | `saveDocument` | Saves a document via AppleScript | -Diff tools (`openDiff`, `closeDiff`, `closeAllDiffTabs`) are intentionally not exposed — Claude Code falls back to its built-in terminal diff view, which gives the user proper accept/reject control. +Only these 9 tools are exposed to Claude Code clients. Tool calls for any other tool name will fail with "Unknown tool" error. + +The `getDiagnostics` and `executeCode` tools internally call mcpbridge tools (`XcodeListNavigatorIssues` and `ExecuteSnippet` respectively) with `tabIdentifier` auto-injected, but no other mcpbridge tools are accessible. -All other tool calls are proxied to mcpbridge with `tabIdentifier` auto-injected. +Diff tools (`openDiff`, `closeDiff`, `closeAllDiffTabs`) are intentionally not exposed — Claude Code falls back to its built-in terminal diff view, which gives the user proper accept/reject control.