makefile-mcp
v1.0.0Makefile MCP: real tools for real work.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_targets
List target names defined in a Makefile, sorted and deduplicated.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
makefile | string |
show_target_recipe
Show the tab-indented recipe lines for one Makefile target.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
cwd | string | |
makefile | string |
show_variables
Show variable assignments in a Makefile. Values are not expanded.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
makefile | string |
list_makefiles
List Makefile, makefile, GNUmakefile and *.mk files in a directory.
| Parameter | Type | Description |
|---|---|---|
cwd | string |
dry_run
Run make with -n to show what a target would do without executing recipes.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
makefile | string | |
target | string | |
timeoutMs | integer | |
variables | object |
run_target
Run one Makefile target. Recipes can execute arbitrary commands.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
cwd | string | |
makefile | string | |
timeoutMs | integer | |
variables | object |
run_default
Run make's default target.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
makefile | string | |
timeoutMs | integer | |
variables | object |
run_jobs
Run make with a parallel job count from 1 to 16.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
jobs | integer | |
makefile | string | |
target | string | |
timeoutMs | integer | |
variables | object |
check_makefile
Parse a Makefile with a dry run and report common syntax errors.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
makefile | string | |
timeoutMs | integer |
show_database
Print make's internal database for a Makefile, capped at 30,000 characters.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
makefile | string | |
timeoutMs | integer |
show_include_files
List include, -include and sinclude directives from a Makefile.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
makefile | string |
print_version
Show the local GNU Make version.