Skip to main content
Glama

MCP Server Make

CI Release PyPI version

make機能を提供するModel Context Protocolサーバーです。このサーバーにより、LLMは任意のMakefileからmakeターゲットを安全かつ制御された方法で実行できるようになります。

概要

このサーバーはModel Context Protocolを通じて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/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の多くには、helpターゲットが含まれています

    Human: Please run make help to see what commands are available.
  2. Claudeにターゲットを伝える: 利用可能なターゲットとその目的を明示的に伝えてください

    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は会話間で利用可能なターゲットを記憶しません。会話の開始時に毎回ターゲットを伝える必要があります。

統合例

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, 必須): 実行するターゲット名

貢献

mcp-server-makeの改善への貢献を歓迎します!開発環境のセットアップ、プロジェクトツールの使用、変更の送信に関する詳細な手順については、CONTRIBUTING.mdを参照してください。

ライセンス

MITライセンス - 詳細はLICENSEファイルを参照してください

Available Tools

1 tool
makeA

Run a make target from the Makefile

Inputs: target (required), args.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion between tools. The single tool 'make' is clearly distinct by default.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      A 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.
      9
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that enables LLMs to run ANY code safely in isolated Docker containers.
      125
      MIT