Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/r-huijts/xcode-mcp-server/user-guidegit clone --depth 1 https://github.com/r-huijts/xcode-mcp-serverWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02979 | $0.02979 |
| Opus 5 | $0.01489 | $0.01489 |
| Sonnet 5 | $0.00596 | $0.00596 |
| Haiku 4.5 | $0.00298 | $0.00298 |
Grade A, and why
user-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 671 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Xcode MCP Server User Guide
This guide provides detailed instructions on how to effectively use the Xcode MCP Server with AI assistants. It covers common workflows, example prompts, and best practices.
Getting Started
After installing the server, you can start using it with any MCP-compatible AI assistant. This guide focuses on using it with Claude Desktop and Cursor, but the concepts apply to any MCP client.
Basic Workflow
- Start the server using
npm start - Connect your AI assistant to the server
- Interact with your Xcode projects through the AI
Working with Projects
Setting Your Projects Directory
If you didn't set a projects directory during setup, you can do it through the AI:
Set my Xcode projects directory to /Users/username/Documents/XcodeProjects
The server will acknowledge the change and attempt to detect any projects in that directory.
Finding Projects
You can ask the AI to find Xcode projects in your directory:
Find all Xcode projects in my projects directory, including workspaces and Swift Package Manager projects
Viewing Active Project
You can ask about the currently active project:
What's my current active project? Show me its detailed information including configurations, targets, and schemes.
Setting Active Project
If the automatic project detection doesn't find your project, you can set it manually:
Set the active project to /Users/username/Documents/XcodeProjects/MyApp.xcodeproj
The server now supports different project types:
Set the active project to /Users/username/Documents/XcodeProjects/MyApp.xcworkspace
Or for Swift Package Manager projects:
Set the active project to /Users/username/Documents/SwiftPackages/MyPackage
Directory Navigation
The server now has improved directory navigation. You can change directories:
Change directory to Sources/Models
Push directories onto a stack for easy navigation:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 671 lines · 2,979 tokens per session scan A 1f357e053669
user-guide is a cursor rule published in the GitHub repository r-huijts/xcode-mcp-server (385 stars, last pushed 7mo ago), licensed MIT. It adds 2,979 tokens to every session, about $0.0149 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
app_rules
This document outlines the essential rules and guidelines for developing with the MobileLauncher LT boilerplate. Follow these rules to maintain consistency, scalability, and code quality across the project.
swift
Swift patterns: SwiftUI, actors, async/await, value types.
android-networking-retrofit-okhttp
Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling.
swift-development
Swift development: SwiftUI, Combine, async/await, iOS patterns, and Apple platform conventions.
create-tests-swift
This guide outlines Swift testing principles and practices, focusing on creating effective unit tests for Swift code.
project-onboarding-rule
Automatically onboards existing projects into the AI-driven development workflow.