m4-mcp
v1.0.0M4 MCP: expand macros, trace definitions, include files and preprocess with 20 real tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
expand
Preprocess M4 input with optional -D definitions, -I include paths and -P prefixing.
| Parameter | Type | Description |
|---|---|---|
defines | object | |
includePath | array | |
input | string | |
prefixAll | boolean | |
timeoutMs | integer |
expand_file
Preprocess an M4 file with optional definitions and include paths.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
defines | object | |
includePath | array | |
prefixAll | boolean | |
timeoutMs | integer |
check_syntax
Run M4 over input and return any preprocessing errors. M4 treats unknown macros as text.
| Parameter | Type | Description |
|---|---|---|
defines | object | |
includePath | array | |
input | string |
list_macros
List the built-in and predefined M4 macros.
dump_macro
Dump one macro definition, if the local M4 supports --dumpdef.
| Parameter | Type | Description |
|---|---|---|
name * | string |
trace_macro
Trace calls to one macro while preprocessing input.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
defines | object | |
includePath | array | |
input | string |
define
Preprocess input with one extra -D definition.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
includePath | array | |
input | string | |
timeoutMs | integer | |
value | string |
undefine
Preprocess input after undefining one macro with -U.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
includePath | array | |
input | string | |
timeoutMs | integer |
include_file
Preprocess a file while allowing includes from extra search paths.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
defines | object | |
includePath | array | |
timeoutMs | integer |
prefix_all
Preprocess input with -P, prefixing all built-in macros with m4_.
| Parameter | Type | Description |
|---|---|---|
defines | object | |
includePath | array | |
input | string | |
timeoutMs | integer |
print_version
Show the local M4 version.