Skip to main content
Glama

MCP SmallEdit

by MikeyBeez

perl_edit

Edit files with Perl one-liners for advanced modifications. Supports cross-platform scripting, backups, and multiline mode to streamline file updates efficiently.

Instructions

Edit files using Perl one-liners (more powerful than sed, better cross-platform support)

Input Schema

NameRequiredDescriptionDefault
backupNoCreate backup file
fileYesFile to edit
multilineNoEnable multiline mode (-0777)
scriptYesPerl script (e.g., "s/old/new/g" or "$_ = uc" for uppercase)

Input Schema (JSON Schema)

{ "properties": { "backup": { "default": true, "description": "Create backup file", "type": "boolean" }, "file": { "description": "File to edit", "type": "string" }, "multiline": { "default": false, "description": "Enable multiline mode (-0777)", "type": "boolean" }, "script": { "description": "Perl script (e.g., \"s/old/new/g\" or \"$_ = uc\" for uppercase)", "type": "string" } }, "required": [ "file", "script" ], "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