sed-mcp
v1.0.0Sed 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.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
extended | boolean | |
input | string | |
timeoutMs | integer |
run_script_file
Run a sed script file against input text.
| Parameter | Type | Description |
|---|---|---|
scriptPath * | string | |
extended | boolean | |
input | string | |
timeoutMs | integer |
check_script
Parse a sed script against empty input and report syntax errors.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
extended | boolean |
substitute
Replace a regex match with literal replacement text.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
extended | boolean | |
flags | string | |
input | string | |
replacement | string | |
timeoutMs | integer |
delete_lines
Delete lines matching a sed address, e.g. 2,5 or /error/.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
extended | boolean | |
input | string | |
timeoutMs | integer |
print_lines
Print only lines matching a sed address.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
extended | boolean | |
input | string | |
timeoutMs | integer |
extract_range
Print an inclusive line range by 1-based line number.
| Parameter | Type | Description |
|---|---|---|
end * | integer | |
start * | integer | |
input | string | |
timeoutMs | integer |
replace_line
Replace one line by 1-based line number with literal text.
| Parameter | Type | Description |
|---|---|---|
line * | integer | |
value * | string | |
input | string | |
timeoutMs | integer |
count_matches
Count lines matching a regex.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
extended | boolean | |
input | string | |
timeoutMs | integer |
strip_blank_lines
Remove blank and whitespace-only lines.
| Parameter | Type | Description |
|---|---|---|
input | string | |
timeoutMs | integer |
transform_file
Run a sed script on a file and write the result to a different output file.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | |
path * | string | |
script * | string | |
extended | boolean | |
timeoutMs | integer |
print_version
Show the local sed implementation/version.