File Operations MCP Server

write_file

Write content to a file

Input Schema

NameRequiredDescriptionDefault
contentYesContent to write to the file
encodingNoFile encoding (default: utf8)utf8
pathYesPath to write the file to

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content to write to the file", "type": "string" }, "encoding": { "default": "utf8", "description": "File encoding (default: utf8)", "type": "string" }, "path": { "description": "Path to write the file to", "type": "string" } }, "required": [ "path", "content" ], "type": "object" }