Skip to content

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Feb 4, 2026

Summary

  • Write the workflow MCP server configuration to ~/.claude.json (local-scoped) instead of .mcp.json (project-scoped)
  • Add autoApprove configuration for all workflow tools to skip per-tool approval prompts

The Problem:
When executing a task, users had to manually approve the workflow MCP server because:

  1. Project-scoped MCP servers (in .mcp.json) require user approval in Claude Code
  2. Each individual tool call could also require approval

The Solution:

  1. Write the workflow MCP server config to ~/.claude.json under projects[worktreePath].mcpServers - this makes it a "local-scoped" server that's trusted because it's in the user's own config
  2. Include autoApprove list with all workflow tools to skip per-tool approvals

The workflow tools auto-approved are:

  • workflow_complete
  • workflow_needs_input
  • workflow_screenshot
  • workflow_show_task
  • workflow_create_task
  • workflow_list_tasks
  • workflow_get_project_context
  • workflow_set_project_context

Test plan

  • Run go test ./internal/executor/... -run TestWriteWorkflowMCPConfig - all tests pass
  • Run go test ./... - full test suite passes
  • Execute a task and verify:
    • No MCP server approval prompt appears
    • Workflow tools execute without approval prompts

🤖 Generated with Claude Code

bborn and others added 2 commits February 4, 2026 05:37
Add autoApprove configuration for all workflow tools in the MCP server
configuration. This prevents users from having to manually approve each
workflow tool call (like workflow_get_project_context) the first time
they execute a task.

The autoApprove list includes:
- workflow_complete
- workflow_needs_input
- workflow_screenshot
- workflow_show_task
- workflow_create_task
- workflow_list_tasks
- workflow_get_project_context
- workflow_set_project_context

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Change the workflow MCP server configuration to be written to the user's
~/.claude.json under the worktree's project path instead of the project's
.mcp.json file.

This change is necessary because:
- Project-scoped MCP servers in .mcp.json require user approval before use
- Local-scoped MCP servers in ~/.claude.json under projects[path] are trusted
- This eliminates the approval prompt when starting a task

The autoApprove list for individual tools is still included to prevent
per-tool approval prompts.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@bborn bborn merged commit 8159d36 into main Feb 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants