diff options
| author | Clawd <ai@clawd.bot> | 2026-03-01 10:00:40 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-03-01 10:00:40 -0800 |
| commit | 57e2b4e94d4593afe19dab22cae047ea50497c85 (patch) | |
| tree | 564a4fead60c2422da7b410dfdac92991358a9b3 /src/main | |
| parent | 12099b4f8cd10002810438bd309e208169960107 (diff) | |
fix(mcp): auto-allow MCP tools in research phase
MCP tools require permission by default. Add mcp__* to allowedTools
when MCPs are configured and we're in research phase, since that's
where external data sources are most useful.
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/claude/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/claude/index.ts b/src/main/claude/index.ts index d576c15..ef4050e 100644 --- a/src/main/claude/index.ts +++ b/src/main/claude/index.ts | |||
| @@ -79,6 +79,10 @@ export async function sendMessage({ | |||
| 79 | ...(session.phase === "implement" && { | 79 | ...(session.phase === "implement" && { |
| 80 | allowedTools: ["Bash(git status*)", "Bash(git log*)", "Bash(git diff*)"], | 80 | allowedTools: ["Bash(git status*)", "Bash(git log*)", "Bash(git diff*)"], |
| 81 | }), | 81 | }), |
| 82 | // Auto-allow MCP tools in research phase (where external data is most useful) | ||
| 83 | ...(session.phase === "research" && mcpServers && { | ||
| 84 | allowedTools: ["mcp__*"], | ||
| 85 | }), | ||
| 82 | }, | 86 | }, |
| 83 | }); | 87 | }); |
| 84 | 88 | ||
