sed-mcp

v1.0.0
io.github.mrfentmen/sed-mcp Checked 22 hours ago Published 24 days ago

Sed MCP: substitute, filter, count, extract and transform text with 20 real tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run_script

Run an arbitrary sed script against input text.

ParameterTypeDescription
script *string
extendedboolean
inputstring
timeoutMsinteger

run_script_file

Run a sed script file against input text.

ParameterTypeDescription
scriptPath *string
extendedboolean
inputstring
timeoutMsinteger

check_script

Parse a sed script against empty input and report syntax errors.

ParameterTypeDescription
script *string
extendedboolean

substitute

Replace a regex match with literal replacement text.

ParameterTypeDescription
pattern *string
extendedboolean
flagsstring
inputstring
replacementstring
timeoutMsinteger

delete_lines

Delete lines matching a sed address, e.g. 2,5 or /error/.

ParameterTypeDescription
address *string
extendedboolean
inputstring
timeoutMsinteger

print_lines

Print only lines matching a sed address.

ParameterTypeDescription
address *string
extendedboolean
inputstring
timeoutMsinteger

extract_range

Print an inclusive line range by 1-based line number.

ParameterTypeDescription
end *integer
start *integer
inputstring
timeoutMsinteger

replace_line

Replace one line by 1-based line number with literal text.

ParameterTypeDescription
line *integer
value *string
inputstring
timeoutMsinteger

count_matches

Count lines matching a regex.

ParameterTypeDescription
pattern *string
extendedboolean
inputstring
timeoutMsinteger

strip_blank_lines

Remove blank and whitespace-only lines.

ParameterTypeDescription
inputstring
timeoutMsinteger

transform_file

Run a sed script on a file and write the result to a different output file.

ParameterTypeDescription
outputPath *string
path *string
script *string
extendedboolean
timeoutMsinteger

print_version

Show the local sed implementation/version.