Skip to main content
Glama

MCP Server Make

CI Release PyPI version

Ein Model Context Protocol-Server, der Make-Funktionalität bereitstellt. Dieser Server ermöglicht es LLMs, Make-Targets aus jedem Makefile auf sichere und kontrollierte Weise auszuführen.

Übersicht

Der Server stellt Make-Funktionalität über das Model Context Protocol bereit, wodurch LLMs wie Claude Folgendes tun können:

  • Make-Targets sicher mit Ausgabeerfassung ausführen

  • Build-Prozesse verstehen und navigieren

  • Bei Entwicklungsaufgaben helfen

  • Fehler angemessen behandeln

  • Den Kontext des Arbeitsverzeichnisses respektieren

MCP Server Make funktioniert mit jedem gültigen Makefile – Sie können das enthaltene, meinungsstarke Makefile oder Ihre eigenen benutzerdefinierten Build-Skripte verwenden.

Related MCP server: MCP Python Toolbox

Schnellstart

Installation

Mit uv (empfohlen):

uv pip install mcp-server-make

Mit pip:

pip install mcp-server-make

Grundlegende Verwendung

# 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-Client-Konfiguration

Um es mit Claude Desktop zu verwenden, fügen Sie es Ihrer Claude-Konfiguration (claude_desktop_config.json) hinzu:

{
  "mcpServers": {
    "make": {
      "command": "uvx",
      "args": [
        "mcp-server-make",
        "--make-path", "/absolute/path/to/Makefile",
        "--working-dir", "/absolute/path/to/working/dir"
      ]
    }
  }
}

Dokumentation

Für detaillierte Informationen zur Verwendung von MCP Server Make lesen Sie bitte unsere Dokumentation:

Verbesserung von Entwicklungs-Workflows

Dieser Server ermöglicht leistungsstarke Entwicklungs-Workflows, indem er LLMs direkten Zugriff auf Make-Funktionalität gibt:

Für Entwickler

  1. Automatisierte Unterstützung

    • Lassen Sie Claude Testergebnisse ausführen und interpretieren

    • Erhalten Sie Vorschläge und Verbesserungen für das Build-System

    • Automatisieren Sie wiederkehrende Entwicklungsaufgaben

  2. Projektmanagement

    • Lassen Sie Claude Abhängigkeitsaktualisierungen verwalten

    • Automatisieren Sie Release-Prozesse

    • Pflegen Sie eine konsistente Codequalität

Arbeiten mit Make-Targets

MCP Server Make erkennt verfügbare Targets in Ihrem Makefile nicht automatisch. Um es effektiv mit Claude zu nutzen:

  1. Beginnen Sie mit make help: Die meisten gut durchdachten Makefiles enthalten ein Help-Target

    Human: Please run make help to see what commands are available.
  2. Informieren Sie Claude über Ihre Targets: Erwähnen Sie explizit die verfügbaren Targets und deren Zweck

    Human: Our project has these make targets: test, lint, format, build, and clean.
  3. Verwenden Sie Standardkonventionen: Gängige Targets, die viele Makefiles enthalten:

    • make test – Tests ausführen

    • make lint – Codequalität prüfen

    • make format – Code formatieren

    • make build – Projekt bauen

    • make clean – Build-Artefakte bereinigen

Das Repository enthält ein meinungsstarkes Makefile mit zusätzlichen Utility-Targets – siehe das Benutzerhandbuch für Details zu diesen erweiterten Funktionen oder zum Erstellen eigener benutzerdefinierter Targets.

Hinweis: Claude merkt sich verfügbare Targets nicht zwischen Konversationen. Sie müssen sie zu Beginn jeder Konversation vorstellen.

Beispiel-Integration

Hier ist, wie Claude bei Entwicklungsaufgaben helfen kann:

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.

Verfügbare Tools

Der Server stellt ein einzelnes Tool bereit:

  • make – Führt ein Make-Target aus dem Makefile aus

    • target (Zeichenfolge, erforderlich): Name des auszuführenden Targets

Mitwirken

Wir freuen uns über Beiträge zur Verbesserung von mcp-server-make! Bitte lesen Sie CONTRIBUTING.md für detaillierte Anweisungen zum Einrichten Ihrer Entwicklungsumgebung, zur Verwendung der Projekt-Tools und zum Einreichen von Änderungen.

Lizenz

MIT-Lizenz – siehe LICENSE-Datei für Details

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