Token导航 LogoToken导航

MCP Server · 开发工具

X Code MCP Service

XCodeMCPService是一个保持xcrun mcpbridge在后台运行并通过可流式HTTP转发MCP请求的服务,适用于需要避免重复Xcode授权提示的开发场景。

未说明官方级别未说明来源级核验工具 0
Swift开发工具HTTP服务Token认证

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
ljh740
提供方
ljh740

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

X Code MCP Service 属于开发工具类 MCP Server,公开资料标注 0 个工具,通过传输方式未标注接入,客户端适配情况以官方文档为准,没有现成的安装命令;接入前要先准备 访问 Token。

分类

开发工具

传输方式

未说明

认证方式

访问 Token

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

XCodeMCPService

中文文档

MCP Forward Bridge — Keep xcrun mcpbridge running in the background and forward MCP requests via Streamable HTTP.

Every MCP client connection spawns a new xcrun mcpbridge process, triggering an Xcode authorization prompt. This project keeps a single xcrun mcpbridge process alive and aggregates forwarded requests, eliminating repeated authorization.

MCP Client ──HTTP/POST──▶ XCodeMCPService ──stdio──▶ MCP Server (xcrun mcpbridge)
           ◀──JSON-RPC───                  ◀──pipe──

Features

  • Multi-server aggregation — Manage multiple MCP subprocesses and auto-aggregate downstream capabilities; tool names stay original in single-server mode and switch to namespace prefixes (serverName__toolName) only when multiple servers are configured
  • Streamable HTTP Transport — Lightweight HTTP server based on NWListener, providing /mcp endpoint, localhost only
  • Session management — Independent session per client with secure token identification
  • Process lifecycle — Crash detection + exponential backoff auto-restart
  • macOS status bar app — Visual service status, one-click start/stop

Requirements

  • macOS 15.0+
  • Swift 6.0+
  • Xcode 26.3+ (xcrun mcpbridge support)

Installation

git clone git@github.com:ljh740/XCodeMCPService.git
cd XCodeMCPService

# Build .app (recommended)
bash build-app.sh

# Install to Applications
cp -r "build/XCode MCP Service.app" /Applications/

Build output is at build/XCode MCP Service.app, containing:

ComponentPathDescription
Status bar appContents/MacOS/XCodeMCPStatusBarMain entry, visual status bar management
CLI serviceContents/MacOS/XCodeMCPServiceCommand-line service (for background use)

The packaging script also produces:

ArtifactPathDescription
Disk imagebuild/XCodeMCPService.dmgRecommended macOS release package
SHA-256build/XCodeMCPService.dmg.sha256Disk image checksum
Zip archivebuild/XCodeMCPService.app.zipUnsigned distributable package
SHA-256build/XCodeMCPService.app.zip.sha256Archive checksum
You can locate standalone binaries with swift build -c release --show-bin-path.

Quick Start

1. Create config file

mkdir -p ~/Library/Application\ Support/XCodeMCPService
{
  "bridge": {
    "port": 13339,
    "host": "127.0.0.1",
    "timeout": 30000,
    "logLevel": "info"
  },
  "servers": [
    {
      "name": "xcode-tools",
      "command": "xcrun",
      "args": ["mcpbridge"],
      "enabled": true
    }
  ]
}

Save as ~/Library/Application Support/XCodeMCPService/config.json.

Without a config file, the service uses built-in defaults (port 13339, auto-start xcrun mcpbridge). A default config file is created on first launch.

2. Start the service

# Via .app (status bar app)
open "/Applications/XCode MCP Service.app"

# Or via CLI
BIN_DIR="$(swift build -c release --show-bin-path)"
"$BIN_DIR/XCodeMCPService"

# Specify config file
"$BIN_DIR/XCodeMCPService" --config /path/to/config.json

# Via environment variable
CONFIG_PATH=/path/to/config.json "$BIN_DIR/XCodeMCPService"

3. Configure MCP client

Add to your MCP client configuration:

{
  "mcpServers": {
    "local-mcp": {
      "type": "http",
      "url": "http://127.0.0.1:13339/mcp"
    }
  }
}

Configuration Reference

BridgeConfig

FieldTypeDefaultDescription
portInt13339HTTP listen port
hostString"127.0.0.1"Listen address (127.0.0.1 or localhost only)
timeoutInt30000Request timeout (ms)
logLevelString"info"Log level: debug / info / warn / error

ServerConfig

FieldTypeDefaultDescription
nameString—Unique server name
commandString—Launch command
args[String][]Command arguments
env{String: String}?nilEnvironment variables
enabledBooltrueWhether enabled

Config file lookup order

  1. --config CLI argument
  2. CONFIG_PATH environment variable
  3. ~/Library/Application Support/XCodeMCPService/config.json
  4. Built-in defaults (auto-written to default path on first launch)

Logs

Log files are stored by date in ~/Library/Application Support/XCodeMCPService/logs/ as yyyy-MM-dd.log. Also output to stderr.

Testing

swift test

83 tests covering: HTTP parsing/serialization/routing, session management, ResponseQueue, ID mapping, process lifecycle management, etc.

CI/CD

  • .github/workflows/ci.yml: runs swift build -c release and swift test --parallel on every push and pull request.
  • .github/workflows/release.yml: runs bash build-app.sh on every v* tag push or manual dispatch, then uploads the .app bundle, dmg, zip, and SHA-256 checksum files as workflow artifacts.
  • Tag builds also publish build/XCodeMCPService-.dmg, build/XCodeMCPService-.dmg.sha256, build/XCodeMCPService-.zip, and build/XCodeMCPService-.zip.sha256 to the matching GitHub Release.

License

MIT License

Acknowledgments

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

Swift本地部署Xcode工具MCP转发开发效率HTTP服务

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 需要自备访问 Token,没有凭据没法直接试。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 暂时拿不到访问 Token的人。
  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
X Code MCP Service

MCP World · 本页

0未说明未标注1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

X Code MCP Service 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

X Code MCP Service 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

X Code MCP Service 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

X Code MCP Service 需要 API Key 吗?

公开资料标注的认证方式是访问 Token,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

X Code MCP Service 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP