MCP Server Make
MCP Server Make
一个提供 make 功能的模型上下文协议(MCP)服务器。该服务器使 LLM 能够以安全、受控的方式执行任何 Makefile 中的 make 目标。
概述
该服务器通过模型上下文协议公开 make 功能,允许像 Claude 这样的 LLM 执行以下操作:
安全地运行 make 目标并捕获输出
理解并导航构建过程
协助开发任务
适当地处理错误
尊重工作目录上下文
MCP Server Make 适用于任何有效的 Makefile - 您可以使用随附的规范化 Makefile,也可以使用您自己的自定义构建脚本。
Related MCP server: MCP Python Toolbox
快速入门
安装
使用 uv(推荐):
uv pip install mcp-server-make使用 pip:
pip install mcp-server-make基本用法
# Run with default Makefile in current directory
uvx mcp-server-make
# Run with specific Makefile and working directory
uvx mcp-server-make --make-path /path/to/Makefile --working-dir /path/to/working/dirMCP 客户端配置
要与 Claude Desktop 一起使用,请添加到您的 Claude 配置 (claude_desktop_config.json) 中:
{
"mcpServers": {
"make": {
"command": "uvx",
"args": [
"mcp-server-make",
"--make-path", "/absolute/path/to/Makefile",
"--working-dir", "/absolute/path/to/working/dir"
]
}
}
}文档
有关使用 MCP Server Make 的详细信息,请参阅我们的文档:
用户指南 - 安装、配置和使用的完整指南
自定义 Makefile - 为 MCP Server Make 创建有效的 Makefile
增强开发工作流
该服务器通过让 LLM 直接访问 make 功能,实现了强大的开发工作流:
对于开发者
自动化辅助
让 Claude 运行并解释测试结果
获取构建系统的建议和改进
自动化重复性的开发任务
项目管理
让 Claude 处理依赖项更新
自动化发布流程
保持一致的代码质量
使用 Make 目标
MCP Server Make 不会自动发现 Makefile 中可用的目标。为了有效地与 Claude 一起使用它:
从
make help开始:大多数设计良好的 Makefile 都包含一个 help 目标Human: Please run make help to see what commands are available.告诉 Claude 您的目标:明确说明可用的目标及其用途
Human: Our project has these make targets: test, lint, format, build, and clean.使用标准约定:许多 Makefile 中包含的常见目标:
make test- 运行测试make lint- 检查代码质量make format- 格式化代码make build- 构建项目make clean- 清理构建产物
该存储库包含一个带有额外实用目标的规范化 Makefile - 有关这些扩展功能的详细信息或创建您自己的自定义目标,请参阅用户指南。
注意:Claude 不会在对话之间记住可用的目标。您需要在每次对话开始时向它介绍这些目标。
集成示例
以下是 Claude 如何协助开发任务的示例:
Human: Can you run our test suite and format any code that needs it?
Claude: I'll help run the tests and format the code:
1. First, let's format the code:
[Calling make tool with args {"target": "format"}]
2 files reformatted, 3 files left unchanged
2. Now let's run the tests:
[Calling make tool with args {"target": "test"}]
Running tests...
4 passed, 0 failed
All formatting and tests completed successfully. The code is now properly formatted and all tests are passing.可用工具
该服务器公开了一个单一工具:
make- 从 Makefile 运行 make 目标target(string, required): 要执行的目标名称
贡献
我们欢迎有助于改进 mcp-server-make 的贡献!请参阅 CONTRIBUTING.md 以获取有关设置开发环境、使用项目工具和提交更改的详细说明。
许可证
MIT 许可证 - 有关详细信息,请参阅 LICENSE 文件
Available Tools
1 toolmakeA
Run a make target from the Makefile
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Make target to run | |
| args | No | List of command line arguments (e.g. VAR=value) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description does not mention potential side effects like file creation or environment changes, and with no annotations, the agent lacks awareness of destructive behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, direct sentence with no unnecessary words; highly concise and front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the essential functionality for a simple tool, though it could mention that the Makefile must exist in the current working directory.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the description adds no extra meaning beyond the schema's parameter descriptions, earning a baseline score.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (run) and the resource (make target from the Makefile), leaving no ambiguity about the tool's purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit guidance on when to use this tool or prerequisites, but given the absence of sibling tools, the description is minimally adequate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v0.4.0- Changed
make1 field changed- added
Input schema / properties / argsAdded value: +{ + "description": "List of command line arguments (e.g. VAR=value)", + "items": { + "type": "string" + }, + "title": "Args", + "type": "array" +}
1 tool update
v1.0.0- Added
make
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusion between tools. The single tool 'make' is clearly distinct by default.
With only one tool, naming consistency is perfect. The name 'make' directly describes the action, though it's a verb alone rather than verb_noun pattern.
A single tool for a server named 'MCP Server Make' is borderline. While it directly serves the core purpose, the domain could benefit from additional tools like listing targets or showing help.
The tool fulfills its stated function of running a make target. Minor gaps exist (e.g., no way to list targets or specify options), but the core workflow is supported.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that allows secure execution of pre-approved commands, enabling AI assistants to safely interact with the user's system.16 npm22ISC
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.9MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.42 npm2MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables LLMs to run ANY code safely in isolated Docker containers.122MIT