Xcode MCP Tools Reference The following 20 tools become available when using xcodemcpwrapper with Xcode:
Tool Description XcodeReadRead files from the project XcodeWriteWrite files to the project XcodeUpdateEdit files with str_replace-style patches XcodeGlobFind files by pattern XcodeGrepSearch file contents XcodeLSList directory contents XcodeMakeDirCreate directories XcodeRMRemove files XcodeMVMove/rename files
Tool Description BuildProjectBuild the Xcode project GetBuildLogGet build output RunAllTestsRun all tests RunSomeTestsRun specific tests GetTestListList available tests
Tool Description XcodeListNavigatorIssuesGet Xcode issues/errors XcodeRefreshCodeIssuesInFileGet live diagnostics XcodeListWindowsList open Xcode windows
Tool Description ExecuteSnippetRun code in a REPL-like environment RenderPreviewRender SwiftUI previews as images DocumentationSearchSearch Apple docs and WWDC videos
Most tools require a tabIdentifier to specify which Xcode window to operate on. The typical flow:
Call XcodeListWindows to discover open windows Get the tabIdentifier (e.g., windowtab1) and workspace path Use that identifier in subsequent tool calls