MCP Server Make

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides access to make functionality, allowing execution of targets from a Makefile in a controlled environment. Enables running build processes, tests, formatting, and other development tasks defined in Makefiles.

MCPサーバーの作成

make機能を提供するモデルコンテキストプロトコルサーバー。このサーバーにより、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. 自動アシスタンス
    • クロードにテストの実行と結果の解釈を任せましょう
    • ビルドシステムの提案と改善点を入手する
    • 反復的な開発タスクを自動化する
  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. クロードにあなたの目標を伝えましょう: 利用可能な目標とその目的を明示的に伝えましょう
    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ライセンス - 詳細はLICENSEファイルを参照

You must be authenticated.

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

Tools

LLM が Makefile から make ターゲットを安全に実行できるようにするモデル コンテキスト プロトコル サーバー。これにより、AI アシスタントはテストを実行し、コードをフォーマットし、自然言語による対話を通じてさまざまな開発タスクを自動化できるようになります。

  1. Overview
    1. Quick Start
      1. Installation
      2. Basic Usage
      3. MCP Client Configuration
    2. Documentation
      1. Enhancing Development Workflows
        1. For Developers
        2. Working with Make Targets
      2. Example Integration
        1. Available Tools
          1. Contributing
            1. License
              ID: g8rwy0077w