Skip to main content
Glama

MCP SmallEdit

by MikeyBeez

diff_preview

Preview file modifications by generating a diff output between original and updated content. Test edits using tools like sed, awk, or perl before applying changes, ensuring accuracy in file modifications.

Instructions

Preview what changes would be made by showing a diff

Input Schema

NameRequiredDescriptionDefault
commandYesCommand that would make changes (e.g., "s/old/new/g")
fileYesFile to preview changes for
toolNoWhich tool to use for the previewperl

Input Schema (JSON Schema)

{ "properties": { "command": { "description": "Command that would make changes (e.g., \"s/old/new/g\")", "type": "string" }, "file": { "description": "File to preview changes for", "type": "string" }, "tool": { "default": "perl", "description": "Which tool to use for the preview", "enum": [ "sed", "perl", "awk" ], "type": "string" } }, "required": [ "file", "command" ], "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/MikeyBeez/mcp-smalledit'

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