-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxcode.yaml
More file actions
343 lines (343 loc) · 10.1 KB
/
xcode.yaml
File metadata and controls
343 lines (343 loc) · 10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
id: xcode
name: Xcode MCP Server
description: >
Official Apple Xcode MCP server (xcrun mcpbridge) that gives external AI agents direct
access to Xcode IDE capabilities. Provides 20 native tools for building projects, running
tests, reading and writing files in the project navigator, searching code with regex,
rendering SwiftUI previews, executing code snippets, browsing Apple Developer documentation,
and inspecting build logs and workspace issues. Requires Xcode 26+ with MCP enabled in
Intelligence settings.
author:
name: Apple
github: apple
repository: https://github.com/apple/swift
transport:
- stdio
category: Development
tags:
- xcode
- apple
- ios
- macos
- swift
- swiftui
- testing
- build
- preview
- ide
created_at: "2025-06-09T00:00:00.000Z"
updated_at: "2026-05-27T00:00:00.000Z"
tools:
- name: BuildProject
description: >
Builds an Xcode project using the active scheme and waits until the build completes.
Returns build result, errors with file paths and line numbers, and full log path.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
required:
- tabIdentifier
- name: GetBuildLog
description: >
Gets the log of the current or most recently finished build. Filter by severity
(error, warning, remark), regex pattern, or file glob.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
severity:
type: string
description: Minimum severity to include (error, warning, remark)
pattern:
type: string
description: Regex to filter build log entries
glob:
type: string
description: Glob to filter by file path
required:
- tabIdentifier
- name: RunAllTests
description: >
Runs all tests from the active scheme's active test plan and returns results
with pass/fail counts and error messages.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
required:
- tabIdentifier
- name: RunSomeTests
description: >
Runs specific tests by target name and test identifier using the active test plan.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
tests:
type: array
description: Array of test specifiers with targetName and testIdentifier
required:
- tabIdentifier
- tests
- name: GetTestList
description: >
Gets all available tests from the active scheme's active test plan with identifiers,
file paths, and enabled status.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
required:
- tabIdentifier
- name: XcodeRead
description: >
Reads file contents within the Xcode project organization with line numbers.
Supports offset and limit for large files.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
filePath:
type: string
description: Path to file in Xcode project organization
offset:
type: integer
description: Line number to start reading from
limit:
type: integer
description: Number of lines to read
required:
- tabIdentifier
- filePath
- name: XcodeWrite
description: >
Creates or overwrites files with content in the Xcode project. Automatically
adds new files to the project structure.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
filePath:
type: string
description: Path to file in Xcode project organization
content:
type: string
description: Content to write to the file
required:
- tabIdentifier
- filePath
- content
- name: XcodeUpdate
description: >
Edits files by replacing text content (find and replace). Supports replacing
all occurrences.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
filePath:
type: string
description: Path to file in Xcode project organization
oldString:
type: string
description: Text to replace
newString:
type: string
description: Replacement text
required:
- tabIdentifier
- filePath
- oldString
- newString
- name: XcodeLS
description: >
Lists files and directories in the Xcode project structure at the specified path.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
path:
type: string
description: Project path to browse
recursive:
type: boolean
description: Recursively list all files (truncated to 100 lines)
required:
- tabIdentifier
- path
- name: XcodeGrep
description: >
Searches for text patterns in project files using regex with context lines,
glob filtering, and multiple output modes.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
pattern:
type: string
description: Regex pattern to search for
path:
type: string
description: Directory to search in
glob:
type: string
description: Only search files matching this pattern
required:
- tabIdentifier
- pattern
- name: XcodeGlob
description: >
Finds files in the project structure matching wildcard patterns (e.g. *.swift,
**/*.json).
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
pattern:
type: string
description: File matching pattern using wildcards
required:
- tabIdentifier
- name: RenderPreview
description: >
Builds and renders a SwiftUI Preview and returns a snapshot image of the resulting UI.
Supports preview variant overrides.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
sourceFilePath:
type: string
description: Path to the Swift file containing the Preview
previewDefinitionIndexInFile:
type: integer
description: Zero-based index of the Preview macro in the file
required:
- tabIdentifier
- sourceFilePath
- name: ExecuteSnippet
description: >
Builds and runs a Swift code snippet in the context of a specific file. Returns
console output from print statements.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
codeSnippet:
type: string
description: Swift code snippet to execute
sourceFilePath:
type: string
description: Swift file whose context the snippet has access to
purpose:
type: string
description: Short description of the purpose
required:
- tabIdentifier
- codeSnippet
- sourceFilePath
- purpose
- name: DocumentationSearch
description: >
Searches Apple Developer Documentation using semantic matching. Optionally
filter by specific frameworks.
input_schema:
type: object
properties:
query:
type: string
description: The search query
frameworks:
type: array
description: Framework(s) to search in
required:
- query
- name: XcodeRefreshCodeIssuesInFile
description: >
Retrieves current compiler diagnostics (errors, warnings, notes) for a specific
file in the project.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
filePath:
type: string
description: Path to file in Xcode project organization
required:
- tabIdentifier
- filePath
- name: XcodeListNavigatorIssues
description: >
Lists all current issues shown in Xcode's Issue Navigator including build errors,
package resolution problems, and workspace configuration issues.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
severity:
type: string
description: Minimum severity (error, warning, remark)
required:
- tabIdentifier
- name: XcodeGetCurrentFile
description: >
Gets information about the currently active file in the Xcode editor including
path, content, and selection.
input_schema:
type: object
properties:
tabIdentifier:
type: string
description: The workspace tab identifier
includeContent:
type: boolean
description: Whether to include file content
includeSelection:
type: boolean
description: Whether to include selection information
required:
- tabIdentifier
- name: XcodeListWindows
description: >
Lists the current Xcode windows and their workspace information.
input_schema:
type: object
properties: {}
install:
command: xcrun
args:
- mcpbridge
license: MIT
version: "26.5"
stars: 0