mcp-devtools
mcp-devtools
Инструменты разработчика с поддержкой ИИ через Model Context Protocol. MCP-сервер промышленного уровня, который предоставляет ИИ-агентам (Claude, Cursor, Copilot, Continue, ...) безопасный и ограниченный доступ к вашей локальной среде разработки.
Зачем это нужно
Экосистема MCP переполнена узкоспециализированными руководствами и адаптерами, привязанными к конкретным поставщикам. Не существует хорошо поддерживаемого, многофункционального, не зависящего от фреймворков MCP-пакета промышленного качества для повседневных задач разработчика.
mcp-devtools заполняет этот пробел, предлагая 14 инструментов, 3 ресурса MCP,
4 промпта MCP, API плагинов, два режима транспорта (stdio + HTTP
с аутентификацией) и журнал аудита — всё это построено на принципах, отточенных в промышленной эксплуатации в DailyBot.
Related MCP server: GPT Commander
Быстрый старт
stdio (по умолчанию)
npx @oscarmarin/mcp-devtoolsДобавьте его в Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"devtools": {
"command": "npx",
"args": ["-y", "@oscarmarin/mcp-devtools"]
}
}
}Или в Cursor (~/.cursor/mcp.json): используйте тот же блок.
HTTP-транспорт
Создайте файл mcp-devtools.json в корне вашего проекта:
{
"transport": "http",
"port": 3333,
"auth": {
"token": "env:MCP_AUTH_TOKEN"
}
}Затем запустите сервер:
npx @oscarmarin/mcp-devtoolsЭндпоинт MCP будет доступен по адресу http://localhost:3333.
Инструменты
Группа | Инструменты |
Файловая система |
|
База данных |
|
Процессы |
|
OpenAPI |
|
Справочник по инструментам: docs/tools/.
Ресурсы MCP
Сервер предоставляет данные только для чтения через ресурсы MCP:
URI | Описание |
| Каталог всех зарегистрированных инструментов со схемами |
| Версия сервера, транспорт, область видимости, количество инструментов |
Промпты MCP
Кураторская подборка шаблонов промптов для типичных рабочих процессов разработки:
Промпт | Описание |
| Систематическая отладка ошибки с помощью инструментов mcp-devtools |
| Проверка файла на наличие ошибок, проблем безопасности и качества кода |
| Изучение и понимание структуры и соглашений проекта |
| Рефакторинг функции для улучшения читаемости, производительности или тестируемости |
API плагинов
Расширяйте mcp-devtools собственными инструментами — форк не требуется.
На основе конфигурации (загрузка при запуске):
{
"plugins": ["./my-tools.js", "@scope/mcp-plugin-foo"]
}Каждый модуль плагина должен экспортировать по умолчанию массив определений инструментов:
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() },
}),
}),
];Конфигурация
Конфигурация загружается с помощью cosmiconfig
из mcp-devtools.json, .mcp-devtoolsrc или ключа mcpDevtools в
package.json. Полную схему см. в mcp-devtools.example.json
и docs/configuration.md.
Поддерживается работа без конфигурации: запуск npx @oscarmarin/mcp-devtools без параметров использует значения по умолчанию (RNF-05).
Безопасность
Четыре неотключаемых механизма контроля:
Ограничение области файловой системы. Каждый путь приводится к абсолютному и сравнивается с
config.scope. Символические ссылки, выходящие за пределы области, вызывают ошибкуSCOPE_VIOLATION.Белый список команд.
run_commandвыполняет только те бинарные файлы, базовое имя которых указано вallowedCommands. Вызов осуществляется черезspawn(file, args)(без оболочки), поэтому инъекции через аргументы командной строки структурно невозможны.Режим базы данных «только для чтения». Если
readOnly: true, весь SQL парсится, и командыINSERT/UPDATE/DELETE/DROP/CREATE/GRANTотклоняются. Запросы выполняются в режимеBEGIN READ ONLY ... ROLLBACKдля PostgreSQL.HTTP Bearer аутентификация. Если настроен
auth.token, каждый HTTP-запрос должен содержатьAuthorization: Bearer <token>. Сравнение выполняется с помощьюcrypto.timingSafeEqualдля предотвращения атак по времени.
Дополнительные меры безопасности:
Журнал аудита. Опциональный лог в формате NDJSON для каждого вызова инструмента с указанием времени, очищенными входными данными и статусом результата.
Маскирование секретов.
get_envавтоматически маскирует значения, соответствующие типичным шаблонам секретов (SECRET,TOKEN,PASSWORD,KEYи т.д.).Ограничение хостов OpenAPI.
call_apiотправляет запросы только на хосты, указанные в массивеserversспецификации.Ограничение вывода. Все инструменты ограничивают объем вывода для предотвращения переполнения контекста (100 КБ для команд, 1 МБ для файлов, 200 строк для запросов).
Участие в разработке
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 .Полный рабочий процесс описан в CONTRIBUTING.md, а правила сообщества — в CODE_OF_CONDUCT.md.
Лицензия
MIT © Oscar Humberto Marin Molina — oscarmarindev.com
Available Tools
15 toolscall_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
Scored across 15 tools
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.
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.
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.
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
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceOpen-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.97MIT
- AlicenseCqualityDmaintenanceA security-first MCP server that provides LLMs with structured tools for filesystem, process, search, build/test/lint, IDE integration, and more.402PolyForm Noncommercial 1.0.0
- AlicenseNot gradedqualityDmaintenanceAn 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 npm1MIT
- AlicenseNot gradedqualityCmaintenanceA self-hosted MCP server that gives AI agents controlled access to a machine: filesystem, shell, background processes, git, web fetching and persistent key-value memory.GPL 3.0