axiom-xcode-mcp-ref by charleswiltgen/axiom
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-xcode-mcp-refXcode MCP 服务器 (xcrun mcpbridge) 所暴露的全部 20 个工具的完整参考。
重要提示:以下参数模式来源于博客研究和初步测试。如果行为不一致,请使用 tools/list 命令与您正在运行的 mcpbridge 进行验证。
首先调用此工具。 返回已打开的 Xcode 窗口及其 tabIdentifier 值,这是大多数其他工具所必需的。
参数:无
返回:{ tabIdentifier: string, workspacePath: string } 的列表
备注:无需参数。如果返回为空,则表示 Xcode 中没有打开任何项目。
XcodeListWindows() → { "tabIdentifier": "abc-123", "workspacePath": "/Users/dev/MyApp.xcodeproj" }
从项目中读取文件内容。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
path (string, 必需) — 相对于项目的文件路径或绝对路径创建一个新文件。
path (string, 必需) — 文件路径content (string, 必需) — 文件内容XcodeUpdate。使用 str_replace 风格的补丁编辑现有文件。
path (string, 必需) — 文件路径patches (array, 必需) — { oldText: string, newText: string } 替换操作的数组XcodeWrite。每个补丁必须在文件中精确匹配一个位置。查找匹配模式的文件。
pattern (string, 必需) — 通配符模式(例如 **/*.swift)在文件内容中搜索字符串或模式。
query (string, 必需) — 搜索词或模式scope (string, 可选) — 将搜索限制在特定目录/文件列出目录内容。
path (string, 必需) — 目录路径创建一个目录。
path (string, 必需) — 要创建的目录路径删除文件或目录。具有破坏性。
path (string, 必需) — 要删除的路径移动或重命名文件。具有破坏性。
sourcePath (string, 必需) — 当前路径destinationPath (string, 必需) — 新路径构建 Xcode 项目。
tabIdentifier (string, 必需) — 来自 XcodeListWindows{ buildResult: string, elapsedTime: number, errors: array }buildResult 是否为 "succeeded" 或 "failed"。在构建后检索构建输出。
tabIdentifier (string, 必需)XcodeListNavigatorIssues。运行完整的测试套件。
tabIdentifier (string, 必需)RunSomeTests。运行特定的测试。
tabIdentifier (string, 必需)tests (array of strings, 必需) — 测试标识符(例如 ["MyTests/testLogin"])RunAllTests 快得多。使用来自 GetTestList 的测试标识符。列出可用的测试。
tabIdentifier (string, 必需)RunSomeTests 一起使用。从 Xcode 的 Issue Navigator 获取当前问题。
tabIdentifier (string, 必需)刷新并返回特定文件的实时诊断信息。
tabIdentifier (string, 必需)path (string, 必需) — 要刷新诊断信息的文件在类似 REPL 的环境中运行代码。
code (string, 必需) — 要执行的代码language (string, 必需) — 语言标识符(例如 "swift")将 SwiftUI 预览渲染为图像。
tabIdentifier (string, 必需)path (string, 必需) — 包含预览的文件previewIdentifier (string, 必需) — 要渲染的预览名称#Preview 或 PreviewProvider。预览必须成功编译。搜索 Apple 的文档库。
query (string, 必需) — 搜索查询axiom-apple-docs 技能。| 类别 | 工具 |
|---|---|
| 发现 | XcodeListWindows |
| 文件读取 | XcodeRead, XcodeGlob, XcodeGrep, XcodeLS |
| 文件写入 | XcodeWrite, XcodeUpdate, XcodeMakeDir |
| 文件破坏性操作 | XcodeRM, XcodeMV |
| 构建 | BuildProject, GetBuildLog |
| 测试 | RunAllTests, RunSomeTests, GetTestList |
| 诊断 | XcodeListNavigatorIssues, XcodeRefreshCodeIssuesInFile |
| 执行 | ExecuteSnippet |
| 预览 | RenderPreview |
| 搜索 | DocumentationSearch |
tabIdentifier — 10/20 的工具需要此参数。务必首先调用 XcodeListWindows。path — 文件/目录路径。可以是绝对路径,也可以是相对于项目根目录的路径。patches — 用于 XcodeUpdate 的 { oldText, newText } 数组。每个 oldText 在文件中必须是唯一的。技能:axiom-xcode-mcp-setup, axiom-xcode-mcp-tools
每周安装量
48
代码仓库
GitHub Stars
606
首次出现
2026年2月16日
安全审计
安装于
opencode46
codex45
gemini-cli45
github-copilot44
kimi-cli44
amp44
Complete reference for all 20 tools exposed by Xcode's MCP server (xcrun mcpbridge).
Important : Parameter schemas below are sourced from blog research and initial testing. Validate against your live mcpbridge with tools/list if behavior differs.
Call this first. Returns open Xcode windows with tabIdentifier values needed by most other tools.
Parameters : None
Returns : List of { tabIdentifier: string, workspacePath: string }
Notes : No parameters needed. If empty, no project is open in Xcode.
XcodeListWindows() → { "tabIdentifier": "abc-123", "workspacePath": "/Users/dev/MyApp.xcodeproj" }
Read file contents from the project.
path (string, required) — File path relative to project or absoluteCreate a new file.
path (string, required) — File pathcontent (string, required) — File contentsXcodeUpdate for existing files.Edit an existing file with str_replace-style patches.
path (string, required) — File pathpatches (array, required) — Array of { oldText: string, newText: string } replacementsXcodeWrite for editing existing files. Each patch must match exactly one location in the file.Find files matching a pattern.
pattern (string, required) — Glob pattern (e.g., **/*.swift)Search file contents for a string or pattern.
query (string, required) — Search term or patternscope (string, optional) — Limit search to specific directory/fileList directory contents.
path (string, required) — Directory pathCreate a directory.
path (string, required) — Directory path to createDelete a file or directory. DESTRUCTIVE.
path (string, required) — Path to deleteMove or rename a file. DESTRUCTIVE.
sourcePath (string, required) — Current pathdestinationPath (string, required) — New pathBuild the Xcode project.
tabIdentifier (string, required) — From XcodeListWindows{ buildResult: string, elapsedTime: number, errors: array }buildResult for "succeeded" or "failed".Retrieve build output after a build.
tabIdentifier (string, required)XcodeListNavigatorIssues.Run the full test suite.
tabIdentifier (string, required)RunSomeTests for faster iteration.Run specific test(s).
tabIdentifier (string, required)tests (array of strings, required) — Test identifiers (e.g., ["MyTests/testLogin"])RunAllTests for iterative debugging. Use test identifiers from GetTestList.List available tests.
tabIdentifier (string, required)RunSomeTests.Get current issues from Xcode's Issue Navigator.
tabIdentifier (string, required)Refresh and return live diagnostics for a specific file.
tabIdentifier (string, required)path (string, required) — File to refresh diagnostics forRun code in a REPL-like environment.
code (string, required) — Code to executelanguage (string, required) — Language identifier (e.g., "swift")Render a SwiftUI preview as an image.
tabIdentifier (string, required)path (string, required) — File containing the previewpreviewIdentifier (string, required) — Name of the preview to render#Preview or PreviewProvider. Preview must compile successfully.Search Apple's documentation corpus.
query (string, required) — Search queryaxiom-apple-docs skill instead.| Category | Tools |
|---|---|
| Discovery | XcodeListWindows |
| File Read | XcodeRead, XcodeGlob, XcodeGrep, XcodeLS |
| File Write | XcodeWrite, XcodeUpdate, XcodeMakeDir |
tabIdentifier — Required by 10/20 tools. Always call XcodeListWindows first.path — File/directory path. Can be absolute or relative to project root.patches — Array of { oldText, newText } for XcodeUpdate. Each oldText must be unique in the file.Skills : axiom-xcode-mcp-setup, axiom-xcode-mcp-tools
Weekly Installs
48
Repository
GitHub Stars
606
First Seen
Feb 16, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode46
codex45
gemini-cli45
github-copilot44
kimi-cli44
amp44
GitHub Actions 官方文档查询助手 - 精准解答 CI/CD 工作流问题
43,400 周安装
| File Destructive | XcodeRM, XcodeMV |
| Build | BuildProject, GetBuildLog |
| Test | RunAllTests, RunSomeTests, GetTestList |
| Diagnostics | XcodeListNavigatorIssues, XcodeRefreshCodeIssuesInFile |
| Execution | ExecuteSnippet |
| Preview | RenderPreview |
| Search | DocumentationSearch |