Xcode MCP Server

write_file

Write or update file contents in an Xcode project via the Xcode MCP Server. Specify file path, content, and option to create file if missing for efficient project file management.

Instructions

Write or update contents of a file in the Xcode project

Input Schema

NameRequiredDescriptionDefault
contentYesContent to write to the file
createIfMissingNoWhether to create the file if it doesn't exist
filePathYesPath to the file within the project

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content to write to the file", "type": "string" }, "createIfMissing": { "description": "Whether to create the file if it doesn't exist", "type": "boolean" }, "filePath": { "description": "Path to the file within the project", "type": "string" } }, "required": [ "filePath", "content" ], "type": "object" }

You must be authenticated.

Other Tools from Xcode MCP Server

Related Tools

ID: mmxuwmm7sc