AI agents invoke xcodebuild_build to trigger actions in Xctools. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
The xcodebuild_build tool executes the Xcode build system, which compiles source code and produces binaries. This is a code execution action with effects that depend on the build configuration and project contents—potentially creating artifacts, running scripts defined in build phases, or executing build rules. The outcome is not fully predictable from arguments alone, making it Execute rather than Write.
From the tool's definition Tool name 'xcodebuild_build' combined with server description stating it 'Provides structured access to Xcode development tools including xcrun, xcodebuild' indicates this tool invokes xcodebuild to compile and build projects.
Attacks that exploit this kind of access
xcodebuild_build. It is categorised as a Execute tool in the Xctools MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Xctools MCP server in PolicyLayer and add a rule for xcodebuild_build: 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 Xctools. Nothing to install.
xcodebuild_build is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the xcodebuild_build 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 xcodebuild_build. 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.
xcodebuild_build is provided by the Xctools MCP server (nzrsky/xctools-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
xcodebuild_build is one line of Xctools'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 →