Xcode MCP Server

write_file

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" }