DX

dazuiba/xcode-cli-skill

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

42 stars 品質 58 トレンド 0MIT

CLI +スキルラッパー公式Xcode 26.3 + MCPツールなので、「Xcodeへのアクセスを許可しますか?」ポップアップは、コンピュータ起動ごとに1回だけ表示されます。また、会話ごとにコンテクストの〜5Kトークンを保存するスキル.

概要

公式のXcode 26.3 + MCPツール用のCLI +スキルラッパー: 長命のxcode-cli-serviceので、「Xcodeへのアクセスを許可しますか? ポップアップは、すべての呼び出しで表示を停止し、Claudeコードスキルを使用して、会話ごとのコンテキストを保存します。 AI エージェント (Claude Code, Codex, Cursor) が Xcode 26.3 MCP ツールを呼び出すと、macOS は、数秒ごとに「Xcode へのアクセスを許可する」ポップアップし続けることができます。 ブリッジプロセスが変化し続けると、macOS は、同じ長時間の統合として処理しません。 Xcode MCP ブリッジはプロセス・バウンドです。 すべてのコールが新しい短命プロセスを通過すると、繰り返しの権限プロンプトと、日々のワークフローが悪化します。 このリポジトリは、xcrun mcpbridge の前に永続的なローカルブリッジサービスを実行します。 エージェントまたはターミナル CLI は、その安定した HTTP エンドポイントに話しますが、xcode-cli-ctl はバックグラウンドサービスを管理します。 未加工MCPサーバーの統合は利用できますが、それは推薦されたデフォルトではないです.

概要(AI 翻訳)

2018年11月11日

公式のXcode 26.3 + MCPツール用のCLI +スキルラッパー: 長生きした[xcode-cli-service)ので、「Xcodeへのアクセスを許可しますか? ポップアップは、すべての呼び出しで表示を停止し、Claudeコードスキルを使用して、会話ごとのコンテキスト**〜5 Kトークン**を保存します。

| 痛みのポイント | ソリューション | お問い合わせ | すべてのXcode MCP呼び出しで「Xcodeへのアクセスを許可?」ポップアップを取得し、決して記憶しない | 永続的 mcp-proxyプロセス — macOSは一度だけ尋ねる | | MCP ツールの定義(20 個のツールと 5K トークン)は、すべての会話に読み込まれる | クロード コード スキルとして包まれた — オンデマンドの読み込み |

詳細情報

##問題1:パーミッションポップアップスパム

AI エージェント (Claude Code, Codex, Cursor) が Xcode 26.3 MCP ツールを呼び出すと、macOS は、数秒ごとに「Xcode へのアクセスを許可する」ポップアップし続けることができます。 ブリッジプロセスが変化し続けると、macOS は、同じ長時間の統合として処理しません。

根本原因

Xcode MCP ブリッジはプロセス・バウンドです。 すべてのコールが新しい短命プロセスを通過すると、繰り返しの権限プロンプトと、日々のワークフローが悪化します。

修正

[xcrun mcpbridgeの前に永続的なローカルブリッジサービスを実行します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

xcode-cli-skill

中文文档

CLI + Skill wrapper for the official Xcode 26.3+ MCP tools: a long-lived xcode-cli-service so the “Allow access to Xcode?” popup stops showing up on every call, plus a Claude Code Skill that saves ~5 K tokens of context per conversation.

Pain point Solution
AI agents get a “Allow access to Xcode?” popup on every Xcode MCP call, and it never remembers A persistent mcp-proxy process — macOS only asks once
MCP tool definitions (20 tools, ~5K tokens) load into every conversation Wrapped as a Claude Code Skill — loads on-demand

Details

Problem 1: Permission Popup Spam

When AI agents (Claude Code, Codex, Cursor) call Xcode 26.3 MCP tools, macOS can keep popping up “Allow access to Xcode?” every few seconds. If the bridge process keeps changing, macOS does not treat it as the same long-lived integration.

Root Cause

The Xcode MCP bridge is process-bound. If every call goes through a fresh short-lived process, you get repeated permission prompts and a worse day-to-day workflow.

The Fix

This repo runs a persistent local bridge service in front of xcrun mcpbridge. The agent or terminal CLI talks to that stable HTTP endpoint, while xcode-cli-ctl manages the background service for you.

Agent / CLI ──HTTP──▶ local bridge service ──▶ xcrun mcpbridge ──▶ Xcode
                           ▲
                  managed by xcode-cli-ctl

Problem 2: Keep MCP Out of Every Conversation by Default

Raw MCP server integration is available, but it is not the recommended default. For Claude Code and Codex, this repo is primarily about the packaged xcode-cli Skill: let the agent load the workflow when it actually needs Xcode, instead of wiring raw MCP tools into every session.

Prerequisites

  • macOS with Xcode 26.3+
  • Node.js 18+
  • Xcode open with the target project/workspace when you want to build, test, preview, or inspect issues

Quick Start

# 1. Install from npm
npm install -g xcode-cli@latest

# 2. Install and start the local bridge service
xcode-cli-ctl install

# 3. Check service health
xcode-cli-ctl status

# 4. Install the packaged skill
xcode-cli-ctl skill install

Click “Allow” when macOS asks for Xcode permission.

Verify

# Make sure Xcode is open with a project, then run from the project directory
cd ~/MyProject
xcode-cli build        # auto-selects the matching Xcode tab
xcode-cli windows      # or list tabs explicitly

AI Agent Integration

use skill, you can saves ~5 K tokens of context per conversation.

Skill Installation (better)

xcode-cli-ctl skill install --claude
xcode-cli-ctl skill install --codex
# Install to both Claude Code and Codex
xcode-cli-ctl skill install

# Or copy manually
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add dazuiba/xcode-cli-skill
MCP 初心者?mcpskill.org のガイドから始めましょう →