Skip to main content
Glama

mcp-devtools

npm version CI License: MIT Node.js

KI-native Entwicklertools über das Model Context Protocol. Ein produktionsreifer MCP-Server, der KI-Agenten (Claude, Cursor, Copilot, Continue, ...) sicheren, begrenzten Zugriff auf Ihre lokale Entwicklungsumgebung gewährt.

Warum

Das MCP-Ökosystem ist voll von zweckgebundenen Tutorials und anbietergebundenen Adaptern. Es gibt kein gut gewartetes, Multi-Tool-fähiges, framework-unabhängiges und produktionsreifes MCP-Paket für die tägliche Entwicklerarbeit.

mcp-devtools schließt diese Lücke mit 14 Tools, 3 MCP-Ressourcen, 4 MCP-Prompts, einer Plugin-API, zwei Transportmodi (stdio + HTTP mit Authentifizierung) und einem Audit-Log — basierend auf Mustern, die bei DailyBot in der Produktion verfeinert wurden.

Related MCP server: GPT Commander

Schnelleinstieg

stdio (Standard)

npx @oscarmarin/mcp-devtools

Fügen Sie es zu Claude Desktop hinzu (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "devtools": {
      "command": "npx",
      "args": ["-y", "@oscarmarin/mcp-devtools"]
    }
  }
}

Oder Cursor (~/.cursor/mcp.json): gleicher Block.

HTTP-Transport

Erstellen Sie eine mcp-devtools.json in Ihrem Projektstammverzeichnis:

{
  "transport": "http",
  "port": 3333,
  "auth": {
    "token": "env:MCP_AUTH_TOKEN"
  }
}

Starten Sie dann den Server:

npx @oscarmarin/mcp-devtools

Der MCP-Endpunkt ist unter http://localhost:3333 verfügbar.

Tools

Gruppe

Tools

Dateisystem

read_file, write_file, list_directory, search_files, get_file_info

Datenbank

query_db, list_tables, describe_table

Prozess

run_command, read_logs, get_env, list_processes

OpenAPI

parse_openapi, call_api

Referenz pro Tool: docs/tools/.

MCP-Ressourcen

Der Server stellt schreibgeschützte Daten über MCP-Ressourcen bereit:

URI

Beschreibung

devtools://tools

Katalog aller registrierten Tools mit Schemas

devtools://server-info

Serverversion, Transport, Umfang, Tool-Anzahl

MCP-Prompts

Kuratierte Prompt-Vorlagen für gängige Entwicklungs-Workflows:

Prompt

Beschreibung

debug_error

Systematisches Debuggen eines Fehlers mit mcp-devtools-Tools

code_review

Überprüfung einer Datei auf Fehler, Sicherheitsprobleme und Codequalität

explore_codebase

Erkunden und Verstehen der Struktur und Konventionen eines Projekts

refactor_function

Refactoring einer Funktion für Lesbarkeit, Leistung oder Testbarkeit

Plugin-API

Erweitern Sie mcp-devtools mit benutzerdefinierten Tools — kein Fork erforderlich.

Konfigurationsbasiert (beim Start laden):

{
  "plugins": ["./my-tools.js", "@scope/mcp-plugin-foo"]
}

Jedes Plugin-Modul exportiert standardmäßig ein Array von Tool-Definitionen:

import { defineTool } from "@oscarmarin/mcp-devtools";
import { z } from "zod";

export default [
  defineTool({
    name: "my_tool",
    description: "Does something useful",
    inputSchema: z.object({ input: z.string() }),
    handler: async (args, config) => ({
      ok: true,
      data: { result: args.input.toUpperCase() },
    }),
  }),
];

Konfiguration

Die Konfiguration wird durch cosmiconfig aus mcp-devtools.json, .mcp-devtoolsrc oder dem mcpDevtools-Schlüssel in package.json geladen. Siehe mcp-devtools.example.json und docs/configuration.md für das vollständige Schema.

Zero-Config wird unterstützt: Die Ausführung von npx @oscarmarin/mcp-devtools ohne Konfiguration verwendet die Schema-Standardwerte (RNF-05).

Sicherheit

Vier nicht umgehbare Kontrollen:

  1. Dateisystem-Bereichsbegrenzung. Jeder Pfad wird in einen absoluten Pfad aufgelöst und mit config.scope verglichen. Symlinks, die den Bereich verlassen, lösen SCOPE_VIOLATION aus.

  2. Befehls-Allowlist. run_command führt nur Binärdateien aus, deren Basisname in allowedCommands enthalten ist. Der Aufruf verwendet spawn(file, args) (keine Shell), sodass Shell-Injection über das Befehlsargument strukturell unmöglich ist.

  3. Datenbank-Schreibschutzmodus. Wenn readOnly: true gesetzt ist, wird jedes SQL geparst und INSERT/UPDATE/DELETE/DROP/CREATE/GRANT werden abgelehnt. Abfragen laufen unter BEGIN READ ONLY ... ROLLBACK auf PostgreSQL.

  4. HTTP Bearer-Authentifizierung. Wenn auth.token konfiguriert ist, muss jede HTTP-Anfrage Authorization: Bearer <token> enthalten. Der Vergleich verwendet crypto.timingSafeEqual, um Timing-Angriffe zu verhindern.

Zusätzliche Sicherheitsmaßnahmen:

  • Audit-Log. Optionales NDJSON-Log jedes Tool-Aufrufs mit Zeitmessung, bereinigten Eingaben und Ergebnisstatus.

  • Maskierung von Geheimnissen. get_env maskiert automatisch Werte, die gängigen Geheimnismustern entsprechen (SECRET, TOKEN, PASSWORD, KEY usw.).

  • OpenAPI-Host-Beschränkung. call_api sendet Anfragen nur an Hosts, die im servers-Array der Spezifikation aufgeführt sind.

  • Ausgabebegrenzung. Alle Tools begrenzen ihre Ausgabe, um eine Überflutung des Kontexts zu verhindern (100 KB für Befehle, 1 MB für Dateien, 200 Zeilen für Abfragen).

Mitwirken

git clone https://github.com/marin1321/mcp-devtools.git
cd mcp-devtools
npm install
npm run dev       # tsup --watch
npm run test      # vitest
npm run typecheck # tsc --noEmit
npm run lint      # eslint .

Siehe CONTRIBUTING.md für den vollständigen Workflow und CODE_OF_CONDUCT.md für Community-Richtlinien.

Lizenz

MIT © Oscar Humberto Marin Molina — oscarmarindev.com

Available Tools

15 tools
call_apiCall APIC

Invoke an operation defined in an OpenAPI spec.

Inputs: specPath (required), operationId (required), pathParams, queryParams, +2 more.

describe_tableDescribe tableC

Return column metadata for a table in a configured database connection.

Inputs: table (required), connection, schema.

echo_testEcho testA

Returns the provided message and a server-side ISO timestamp. Used to verify the MCP server pipeline end-to-end.

Inputs: message (required).

get_envGet environmentC

Return environment variables (process env or .env file) with optional masking.

Inputs: source, path, keys, maskSecrets.

get_file_infoGet file infoA

Return metadata (size, type, MIME, line count, symlink info) for a file or directory.

Inputs: path (required).

list_directoryList directoryC

List directory entries inside the configured scope, with optional recursion and glob filtering.

Inputs: path, depth, glob, includeHidden.

list_processesList processesB

List running processes, optionally filtered by name or listening port.

Inputs: name, port, limit.

list_tablesList tablesC

List tables in a configured database connection.

Inputs: connection, schema.

parse_openapiParse OpenAPIB

Parse an OpenAPI spec and return a summary of operations.

Inputs: path (required).

query_dbQuery databaseC

Execute a parameterized SQL query against a configured database connection. Read-only by default.

Inputs: sql (required), connection, params, timeoutMs, +1 more.

read_fileRead fileB

Read a text file inside the configured scope. Optionally restrict to a line range.

Inputs: path (required), startLine, endLine.

read_logsRead logsC

Read the tail of a configured log file with optional filter.

Inputs: path (required), tail, filter, jsonField.

run_commandRun commandC

Spawn a process from the configured allowedCommands list. Captures stdout/stderr with caps and a timeout.

Inputs: command (required), args, cwd, timeoutMs, +1 more.

search_filesSearch filesC

Search for a pattern (literal or regex) across files inside the configured scope.

Inputs: pattern (required), path, glob, regex, +4 more.

write_fileWrite fileA

Write a file atomically inside the configured scope (writes to a temp file then renames).

Inputs: path (required), content (required), encoding, createDirs.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool targets a distinct operation: database metadata vs query, file read vs write vs listing vs search, process listing vs command execution, API calling vs spec parsing, etc. No two tools have overlapping purposes.

    Naming Consistency5/5

    All tools follow a verb_noun pattern in snake_case (e.g., list_directory, read_file, query_db). The verbs vary but are appropriate for the action, and the naming is uniform throughout.

    Tool Count4/5

    15 tools is slightly broad for a devtools server covering databases, files, processes, APIs, logs, and environment variables, but each tool has a clear role and the count is not excessive for a general-purpose utility server.

    Completeness3/5

    Core developer utilities are covered (file ops, database queries, command execution, API handling), but there are gaps like no process kill, no file editing, no HTTP utilities, and database is read-only. The set feels like a curated collection rather than a comprehensive toolkit.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Open-source, local macOS MCP server for AI agents. Automate background Safari/Chrome tabs, native apps, files and shell with scoped permissions, optional approvals and delegated coding agents.
      97
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives your AI assistant full awareness of your local dev environment — running processes, Docker containers, git state, open ports, log files, and more.
      8 npm
      1
      MIT