Install the Python package first:
python -m pip install .The server is stdio-only and read-only. Configure one or more filesystem roots before starting it if you want the explicit-file inspection tools:
export MINEFIELD_ALLOWED_ROOTS=/path/to/review
minefield-mcpOn Windows, separate multiple roots with ;; on POSIX systems, use :.
Without this variable, inspect_config, inspect_logs and scan_files fail closed. A tool
caller cannot override or widen the server-configured roots.
Validated command shape for Hermes v0.19:
hermes mcp add minefield --command minefield-mcpCurrent Codex hosts share MCP configuration between the desktop app, CLI, and IDE extension:
codex mcp add minefield -- minefield-mcpEquivalent TOML:
[mcp_servers.minefield]
command = "minefield-mcp"
default_tools_approval_mode = "prompt"Place this in .cursor/mcp.json for project scope:
{
"mcpServers": {
"minefield": {
"command": "minefield-mcp",
"args": []
}
}
}Claude Code:
claude mcp add minefield -- minefield-mcpClaude Desktop uses the same mcpServers JSON shape shown for Cursor in its
desktop configuration file.
The server exposes search, trap retrieval, coverage, doctor interpretation,
reproduction planning, issue drafting, and explicit-file inspection. It has no
shell, process-management, restart, write, or unrestricted filesystem tool.
inspect_config, inspect_logs and scan_files accept explicit paths only
within the server-configured roots, reject symlinks and non-UTF-8/binary inputs,
and bound input size. scan_files is the same offline scan as minefield scan:
it walks a named folder a few levels deep without following symlinks, and the
only thing it executes is a chat template, inside Jinja's sandbox. Requests and issue-report text are also size-bounded.