apply_patch_plan
Apply a patch plan after explicit confirmation. Creates backups before writing.
Diagnose your own MCP setup — context weight, stale entries, configuration problems — and apply a reversible patch after confirmation, with backups written first.
LABSCO SUMMARY
The whole point of a config diagnostic is showing it to someone else, and MCP configuration is exactly where API keys live. Redacting by default rather than as an option means the report can go into an issue or a chat without a review step. The write path is separated the way it should be — scan, explain, plan, then apply behind an explicit confirmation with backups already written — which matters more here than usual, because the thing being modified is the configuration the agent itself runs on. Context weight as a first-class diagnostic is a good instinct: an over-attached MCP setup degrades every turn quietly, and nothing else measures it.
A diagnostic tool for the MCP configuration itself: it scans local config files, explains what it found, generates a reversible patch plan, and applies it only after explicit confirmation.
Nothing to supply — it reads the MCP configuration already on the machine.
One command — npx -y @inferensys/dr-mcp server
USE CASES
Run the one-step scan for context weight and stale entries, and read the highest-value cleanup candidates before changing anything.
Expand the specific diagnostic to see what it means and why it was raised.
Generate the reversible patch plan, review it, then apply with explicit confirmation — backups are written before anything changes.
Export the redacted report as Markdown, HTML or JSON, safe to paste because the credentials are already stripped.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
apply_patch_planApply a patch plan after explicit confirmation. Creates backups before writing.
dr_mcp_cleanupScan and return the highest-value MCP cleanup candidates. Does not apply patches.
dr_mcp_scanOne-step MCP cleanup scan for agent sessions. Checks context weight, stale packages, abandoned repos, duplicates, and safe patch plans.
explain_issueExplain a diagnostic from the current MCP setup scan.
export_reportExport a redacted dr-mcp report as Markdown, HTML, or JSON.
generate_patch_planGenerate a reversible patch plan for a scan finding.
scan_mcp_setupScan local MCP configuration files and return a redacted diagnostic report.
BEFORE YOU INSTALL
7 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"dr-mcp": {
"command": "npx",
"args": [
"-y",
"@inferensys/dr-mcp",
"server"
]
}
}
}npx -y @inferensys/dr-mcp server