Skip to main content
Glama

Unrestricted Development MCP Server

fs_write_file

Write content to files with automatic directory creation and file overwriting capabilities for development workflows.

Instructions

Write content to a file. Creates the file if it doesn't exist, overwrites if it does. Can create parent directories.

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the file to write
contentYesContent to write to the file
encodingNoFile encodingutf8
createDirsNoCreate parent directories if they don't exist

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content to write to the file", "type": "string" }, "createDirs": { "default": true, "description": "Create parent directories if they don't exist", "type": "boolean" }, "encoding": { "default": "utf8", "description": "File encoding", "enum": [ "utf8", "binary", "base64" ], "type": "string" }, "path": { "description": "Absolute or relative path to the file to write", "type": "string" } }, "required": [ "path", "content" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ConnorBoetig-dev/mcp2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server