AI agents use set_projects_base_dir to create or update resources in Xcode — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Xcode environment.
This tool modifies a configuration setting (base directory) but does not delete data or execute code. The operation is reversible—a different directory can be set later. While it could affect subsequent tool operations by changing where project searches occur, the change itself is non-destructive and represents a Write-category action.
From the tool's definition Tool name 'set_projects_base_dir' and description 'Sets the base directory where your Xcode projects are stored' indicate a configuration modification action.
Attacks that exploit this kind of access
Sets the base directory where your Xcode projects are stored. It is categorised as a Write tool in the Xcode MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Xcode MCP server in PolicyLayer and add a rule for set_projects_base_dir: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Xcode. Nothing to install.
set_projects_base_dir is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the set_projects_base_dir rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for set_projects_base_dir. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
set_projects_base_dir is provided by the Xcode MCP server (xcode-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
set_projects_base_dir is one line of Xcode's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →