feat: add bypassPermissions so agent can use all MCP tools without prompts
This commit is contained in:
parent
1de99654fc
commit
004b1efdc6
1 changed files with 3 additions and 0 deletions
|
|
@ -252,11 +252,14 @@ class ClaudeProcessManager:
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
|
||||||
# Build command: interactive claude with stream-json I/O
|
# Build command: interactive claude with stream-json I/O
|
||||||
|
# --permission-mode bypassPermissions allows the agent to use all tools
|
||||||
|
# (Bash, file ops, MCP servers) without interactive confirmation prompts
|
||||||
cmd = [
|
cmd = [
|
||||||
"claude",
|
"claude",
|
||||||
"--output-format", "stream-json",
|
"--output-format", "stream-json",
|
||||||
"--input-format", "stream-json",
|
"--input-format", "stream-json",
|
||||||
"--verbose",
|
"--verbose",
|
||||||
|
"--permission-mode", "bypassPermissions",
|
||||||
]
|
]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Reference in a new issue