A daemonized CLI that keeps a single long-lived connection to Xcode's MCP bridge, so Xcode only prompts for permission once per daemon session.
[!TIP] The easiest way to install
xbridgeis by pointing your agent to this README. If you'd rather do it manually, follow the instructions below.
brew tap 4rays/tap
brew install xbridge
xbridge requires Xcode MCP available. If xbridge status reports that the bridge cannot be found or started, update Xcode and Command Line Tools:
softwareupdate --all --install --force
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
[!WARNING] In Xcode, enable MCP before using
xbridge: open Settings → Intelligence → Model Context Protocol and turn it on.
# Install all skills
npx skills add 4rays/xbridge
# Install specific skills
npx skills add 4rays/xbridge --skill xbridge
# List available skills
npx skills add 4rays/xbridge --list
This automatically installs to your .agents/skills/ directory (and symlinks into .claude/skills/ for Claude Code compatibility).
# Add the marketplace
/plugin marketplace add 4rays/xbridge
# Install the plugin
/plugin install xbridge
Or load directly from a local path:
claude --plugin-dir /path/to/xbridge
Claude Code specific. For other agents, use Option 1 or Option 3.
git clone https://github.com/4rays/xbridge.git
cp -r xbridge/skills/* .agents/skills/
xbridge list-windows # discover tab IDs
xbridge build windowtab1
xbridge test windowtab1
xbridge read MyFile.swift windowtab1
xbridge grep "TODO" windowtab1
xbridge docs "SwiftUI animations"
xbridge status
The daemon starts automatically on first use. Xcode may ask for permission the first time the daemon connects to the bridge.
To manage the daemon manually:
xbridge status # daemon and bridge health
xbridge restart # restart the MCP bridge
xbridge stop # shut down the daemon
make install
Installs xbridge and xbridged to ~/.local/bin. Requires Swift 6.3+ and Xcode 26+.
| Command | Description |
|---|---|
list-windows | List open Xcode windows and tab IDs |
build <tab> | Build the project |
test <tab> | Run all tests |
test-run <tab> <target> <id> | Run a specific test |
test-list <tab> | List available tests |
read <file> <tab> | Read a file |
write <tab> <path> <content> | Create or overwrite a file |
update <tab> <path> <old> <new> | Replace text in a file |
grep <pattern> <tab> [path] | Search in the project |
ls <tab> <path> | List files at a project path |
glob <tab> [pattern] | Find files by wildcard pattern |
issues <tab> | Show navigator issues |
refresh-issues <tab> <file> | Refresh diagnostics for a file |
build-log <tab> | Show the build log |
mkdir <tab> <path> | Create a directory |
rm <tab> <path> | Remove a file or directory |
mv <tab> <src> <dst> | Move or rename a file |
exec <tab> <file> <purpose> <code> | Execute a Swift code snippet |
preview <tab> <file> [index] | Render a SwiftUI preview |
docs <query> [framework] | Search Apple Developer Documentation |
tools | List all MCP tools from the bridge |
tool-schema <name> | Show input schema for a tool |
call <ToolName> [json] | Call any tool with raw JSON arguments |
xbridged owns the only connection to Xcode's MCP bridge. It handles tool discovery and request correlation. The CLI connects to the daemon over a Unix domain socket at ~/Library/Application Support/xbridge/daemon.sock.
Because the daemon process is stable across CLI invocations, Xcode only shows the permission prompt once per session.
~/Library/Application Support/xbridge/
daemon.sock # Unix domain socket
daemon.pid # Daemon PID
daemon.log # Daemon and bridge logs
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub 4rays/xbridge --plugin xbridgeComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Create new skills, improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, or benchmark skill performance with variance analysis.
Unity Development Toolkit - Expert agents for scripting/refactoring/optimization, script templates, and Agent Skills for Unity C# development