XcodeBazelMCP: Skill for Claude Code

.agents/skills/mcp-setup/SKILL.md

mcp-setup is a skill for Claude Code, Codex from DebugSwift/XcodeBazelMCP. It costs 46 tokens per session (683 once invoked), scanned A, original, MIT.

A setup guide for configuring XcodeBazelMCP, a tool server that lets an AI assistant work with Xcode and Bazel projects. It covers the server command, configuration file, and background service.

In plain words
What is it for?
Use it when connecting XcodeBazelMCP to a project, choosing enabled workflows, setting project profiles, or checking the daemon's status.
Why use it?
It explains where configuration belongs and how to make the server available to other projects without relying on unclear paths or settings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is DebugSwift/XcodeBazelMCP's own configuration. It tells Claude Code and Codex how to work on XcodeBazelMCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything XcodeBazelMCP configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/matheus.gois/Projects/XcodeBazelMCP/dist/cli.js.

Reuse

Borrowing it

Nothing to install: this file belongs to DebugSwift/XcodeBazelMCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DebugSwift/XcodeBazelMCP/main/.agents/skills/mcp-setup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/DebugSwift/XcodeBazelMCP

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/debugswift/xcodebazelmcp/mcp-setup/github.svg)](https://agentmods.dev/skills/debugswift/xcodebazelmcp/mcp-setup)
Your own site
<a href="https://agentmods.dev/skills/debugswift/xcodebazelmcp/mcp-setup"><img src="https://agentmods.dev/badge/skills/debugswift/xcodebazelmcp/mcp-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/debugswift/xcodebazelmcp/mcp-setup"><img src="https://agentmods.dev/badge/skills/debugswift/xcodebazelmcp/mcp-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00683
Opus 5.5 $0.00018 $0.00273
Sonnet 5.5 $0.00009 $0.00137
Haiku 4.5 $0.00005 $0.00068

Measured 2mo ago against content hash b50400854f59, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-setup 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 2mo 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.

.agents/skills/mcp-setup/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Setup & Configuration

Using in Other Projects

The package is not published to npm (private: true). Use the local dist/cli.js path in .cursor/mcp.json:

{
  "XcodeBazelMCP": {
    "command": "node",
    "args": ["/Users/matheus.gois/Projects/XcodeBazelMCP/dist/cli.js", "mcp"],
    "env": { "BAZEL_IOS_WORKSPACE": "/path/to/your/workspace" }
  }
}
  • After source changes, run npm run build to update dist/.
  • Prefer absolute paths — ~ may not expand in all MCP clients.
  • Local Bazel execution is the default. BITRISE_BUILD_CACHE_AUTH_TOKEN is not required. Bitrise RBE configs (bitrise, remote_linux) are stripped automatically unless the token is set.

Config File

.xcodebazelmcp/config.yaml (in workspace root or ~/.xcodebazelmcp/):

  • enabledWorkflows — comma-separated workflow IDs (e.g. build, test, simulator)
  • profiles: — nested blocks for per-project defaults
  • activateProfile merges profile defaults into session defaults

Per-Workspace Daemon

  • Unix socket: /tmp/xbmcp-daemon-<sha256(wsPath)[0:12]>.sock
  • PID file: ~/.xcodebazelmcp/daemons/<hash>.json
  • JSON protocol: ping, status, list_ops, register_op, unregister_op, shutdown
  • Client spawns detached child via child.unref() with XBMCP_DAEMON=1 env, polls up to 5s for socket.
  • Auto-cleanup on SIGTERM/SIGINT: removes socket and PID file.

Project Scaffolding

6 templates: ios_app, ios_test, ios_app_with_tests, macos_app, macos_test, macos_app_with_tests.

  • Guards against overwriting — fails if MODULE.bazel or WORKSPACE already exists.
  • Test-only templates generate BUILD.bazel under ${name}Tests/ subdirectory.
  • Scaffold name validated with ^[A-Za-z][A-Za-z0-9_-]*$ to prevent path traversal.

Doctor

Reports: system info (platform, arch, CPUs, memory, Node), workspace details (path, config, MODULE.bazel/WORKSPACE/.bazelrc), dependency versions (bazel, xcode, simctl), full tool inventory by workflow with enabled/disabled status.

Read the full file on GitHub · 62 lines

Changes

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.

  1. 2mo ago First seen · 62 lines · 46 tokens per session scan A b50400854f59

Subscribe to this mod's changes

mcp-setup is a skill published in the GitHub repository DebugSwift/XcodeBazelMCP (8 stars, last pushed 3mo ago), licensed MIT. It adds 46 tokens to every session and 683 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

Other skills, from other repositories

cli-anything-nslogger

CLI harness for NSLogger — parse, filter, export, and monitor NSLogger log files (.rawnsloggerdata / .nsloggerdata).

HKUDS/CLI-Anything · 36 tokens

benchmark

Run performance + quality benchmarks. ASR reports WER, RTF, process memory, and throughput across engines/variants. Arguments include asr, tts, vad, diarize, asr-quick.

soniqo/speech-swift · 0 tokens

review-pr

Review a pull request for conceptual fit, architecture impact, adversarial failure modes, security risk, docs impact, regression risk, test coverage, and merge readiness. Use when asked to review a PR, check whether a PR is safe to merge, decide if more tests are needed, perform adversarial or security review, or…

soniqo/speech-swift · 71 tokens

swift-expert

Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.

personamanagmentlayer/pcl · 76 tokens

boutique-best-practices

Best practices for using Boutique with Swift 6 concurrency, @Observable, @ObservationIgnored, Sendable conformance, testing with preview stores, and dependency injection. Use when troubleshooting Boutique issues, migrating to Swift 6, or setting up tests.

mergesort/Boutique · 56 tokens

boutique-swiftui

Integrate Boutique with SwiftUI views using onChange, onStoreDidLoad, bindings, and preview stores. Use when building SwiftUI views that display or react to Boutique-persisted data.

mergesort/Boutique · 45 tokens