m4-mcp

v1.0.0
io.github.mrfentmen/m4-mcp Checked 19 hours ago Published 24 days ago

M4 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.

ParameterTypeDescription
definesobject
includePatharray
inputstring
prefixAllboolean
timeoutMsinteger

expand_file

Preprocess an M4 file with optional definitions and include paths.

ParameterTypeDescription
path *string
definesobject
includePatharray
prefixAllboolean
timeoutMsinteger

check_syntax

Run M4 over input and return any preprocessing errors. M4 treats unknown macros as text.

ParameterTypeDescription
definesobject
includePatharray
inputstring

list_macros

List the built-in and predefined M4 macros.

dump_macro

Dump one macro definition, if the local M4 supports --dumpdef.

ParameterTypeDescription
name *string

trace_macro

Trace calls to one macro while preprocessing input.

ParameterTypeDescription
name *string
definesobject
includePatharray
inputstring

define

Preprocess input with one extra -D definition.

ParameterTypeDescription
name *string
includePatharray
inputstring
timeoutMsinteger
valuestring

undefine

Preprocess input after undefining one macro with -U.

ParameterTypeDescription
name *string
includePatharray
inputstring
timeoutMsinteger

include_file

Preprocess a file while allowing includes from extra search paths.

ParameterTypeDescription
path *string
definesobject
includePatharray
timeoutMsinteger

prefix_all

Preprocess input with -P, prefixing all built-in macros with m4_.

ParameterTypeDescription
definesobject
includePatharray
inputstring
timeoutMsinteger

print_version

Show the local M4 version.