aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClawd <ai@clawd.bot>2026-03-01 10:00:40 -0800
committerClawd <ai@clawd.bot>2026-03-01 10:00:40 -0800
commit57e2b4e94d4593afe19dab22cae047ea50497c85 (patch)
tree564a4fead60c2422da7b410dfdac92991358a9b3 /src
parent12099b4f8cd10002810438bd309e208169960107 (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')
-rw-r--r--src/main/claude/index.ts4
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