[BUG] Xcode MCP Server shows permissions request too often with Claude Code Desktop
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using the Xcode MCP tools with the Claude Code Desktop app in the "Code" tab, macOS shows an Automation permission dialog ("Allow local-agent-mode-xcode to access Xcode?") on every single tool invocation. Clicking "Allow" does not persist the permission — the dialog reappears on the next call.
The Automation panel in System Settings > Privacy & Security > Automation remains empty, confirming macOS is not saving the grant.
Root Cause
The disclaimer helper binary at /Applications/Claude.app/Contents/Helpers/disclaimer has a generic code signing identifier:
Identifier=disclaimer
macOS TCC keys Automation permissions by the client binary's code signing identifier. Because this is a bare name rather than a reverse-DNS bundle ID (e.g., com.anthropic.claude.disclaimer), TCC does not persist the permission entry.
What Should Happen?
Clicking "Allow" should persist the Automation permission so the user is not re-prompted.
Claude says the fix is to
Give the disclaimer helper (or whichever binary sends Apple Events to Xcode) a proper reverse-DNS bundle identifier so macOS TCC can persist the Automation permission.
Error Messages/Logs
Allow "local=agent-mode=xcode" to access Xcode?
The agent "local-agent-mode-xcode" at /Applications/Claude.app/Contents/Helpers/disclaimer, PID [redacted], wants to use Xcode's tools to perform actions like building, testing, or modifying code.
Don't Allow | Allow
Steps to Reproduce
Steps to Reproduce
Open an Xcode project
Use any Xcode MCP tool (e.g., XcodeLS)
macOS prompts: "Allow local-agent-mode-xcode to access Xcode?"
Click "Allow"
Use another Xcode MCP tool
The same dialog appears again
Check System Settings > Privacy & Security > Automation — the panel is empty
Expected Behavior
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.1.50
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗