Skip to main content
Glama

MCP Server Make

by wrale

MCP 服务器制造商

提供 make 功能的模型上下文协议 (MLM) 服务器。该服务器使 LLM 能够以安全、可控的方式执行任何 Makefile 中的 make 目标。

概述

该服务器通过模型上下文协议公开 make 功能,允许像 Claude 这样的 LLM 进行以下操作:

  • 使用输出捕获安全地运行 make 目标
  • 理解并引导构建过程
  • 帮助完成开发任务
  • 适当处理错误
  • 尊重工作目录上下文

MCP Server Make 可与任何有效的 Makefile 一起使用 - 您可以使用包含的自定义 Makefile 或您自己的自定义构建脚本。

快速入门

安装

使用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/dir

MCP 客户端配置

要与 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 的详细信息,请参阅我们的文档:

增强开发工作流程

该服务器允许 LLM 直接访问 make 功能,从而实现强大的开发工作流程:

对于开发人员

  1. 自动协助
    • 让 Claude 运行并解释测试结果
    • 获取构建系统建议和改进
    • 自动化重复的开发任务
  2. 项目管理
    • 让 Claude 处理依赖项更新
    • 自动化发布流程
    • 保持一致的代码质量

使用 Make 目标

MCP Server Make 不会自动发现 Makefile 中的可用目标。为了有效地与 Claude 配合使用,请执行以下操作:

  1. make help开始:大多数设计良好的 Makefile 都包含帮助目标
    Human: Please run make help to see what commands are available.
  2. 告诉克劳德你的目标:明确提及可用的目标及其目的
    Human: Our project has these make targets: test, lint, format, build, and clean.
  3. 使用标准约定:许多 Makefile 的常见目标包括:
    • make test ——运行测试
    • make lint - 检查代码质量
    • make format - 格式代码
    • make build构建项目
    • make clean - 清理构建工件

该存储库包含一个带有附加实用程序目标的自定义 Makefile - 有关这些扩展功能或创建您自己的自定义目标的详细信息,请参阅用户指南

注意:克劳德不会记住对话期间的可用目标。你需要在每次对话开始时介绍他们。

集成示例

以下是 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 (字符串,必需):要执行的目标名称

贡献

欢迎大家为 mcp-server-make 的改进做出贡献!请参阅CONTRIBUTING.md 文件,了解如何设置开发环境、使用项目工具以及提交更改的详细说明。

执照

MIT 许可证 - 详情请参阅许可证文件

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Tools

模型上下文协议服务器使 LLM 能够安全地从 Makefile 执行 make 目标,从而允许 AI 助手通过自然语言交互来运行测试、格式化代码并自动执行各种开发任务。

  1. 概述
    1. 快速入门
      1. 安装
      2. 基本用法
      3. MCP 客户端配置
    2. 文档
      1. 增强开发工作流程
        1. 对于开发人员
        2. 使用 Make 目标
      2. 集成示例
        1. 可用工具
          1. 贡献
            1. 执照

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that connects LLMs to the Compiler Explorer API, enabling them to compile code, explore compiler features, and analyze optimizations across different compilers and languages.
                Last updated -
                Python
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that connects AI tools and LLMs to Figma designs, enabling them to extract design data, analyze design systems, and generate development documentation.
                Last updated -
                TypeScript
                • Apple
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server that allows LLMs to interact with Python environments, execute code, and manage files within a specified working directory.
                Last updated -
                9
                42
                Python
                • Linux
                • Apple
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that fetches up-to-date, version-specific documentation and code examples from libraries directly into LLM prompts, helping developers get accurate answers without outdated or hallucinated information.
                Last updated -
                2
                121,113
                12,861
                JavaScript
                MIT License
                • Linux
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/wrale/mcp-server-make'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server