Skip to main content
Glama

mcp-fleet-doctor

Post-install operations for an MCP server fleet: what died, what silently grew, what carries risk.

Paid. Local, read-only except for its own baseline file. No network calls.


Why this exists when config linters already exist

A linter tells you what is wrong right now. The problems that actually cost you appear over months and never raise an error:

  1. Servers die quietly. A package update, a moved path, a revoked token — the entry stays in the config, the agent silently loses a capability, and you find out weeks later when a task fails in a way you cannot explain. A fleet where 8 of 20 servers are dead is the normal steady state after a year.

  2. Tool schemas grow on every upgrade. No protocol version warns you that a server went from 6 tools to 14. Every session now pays for the new schemas, in every request, forever. The agent gets worse and nothing in any log says why.

  3. Configuration risk accumulates as copy-paste. Someone pastes a yolo flag from a blog post to make a demo work. Someone drops a key straight into env because the docs said so. Unpinned npx specs mean every restart may run different code.

None of these are caught by a one-shot check. They require a recorded baseline and a repeatable measurement — which is what this is.

Related MCP server: mcp-security-scanner

Install

Requires Python 3.8+. No dependencies.

{
  "mcpServers": {
    "mcp-fleet-doctor": {
      "command": "python",
      "args": ["/absolute/path/to/mcp-fleet-doctor/run.py"]
    }
  }
}

The workflow

1. record_baseline      # once, or after a deliberate upgrade
2. ...use your agent for a month...
3. diff_baseline        # did anything drift?
4. check_fleet          # full picture, when you need it

Running check_fleet without a baseline still gives you health and static risk, but the drift section — the part you are paying for — stays empty until you record one.

Tools

check_fleet

Starts every server, measures handshake latency and tool count, diffs against the baseline, audits the launch config, and returns a scored report with an ordered action list.

record_baseline

Saves the current state as the reference point. The only operation that writes a file (to ~/.mcp-fleet-doctor/baseline.json).

audit_config_only

Static audit with no probing — safe in CI, or on a machine where starting arbitrary servers is not acceptable.

diff_baseline

Only what changed, nothing else.

What gets flagged

Health

  • Server will not start (missing binary, crash on launch, no tools/list reply)

  • Slow handshake (over 3s — paid on every session)

Drift (requires baseline)

  • grew — tool count increased; new schemas are now in every prompt

  • went_down — was working, now does not

  • new / disappeared / shrank

Static risk

  • command_missing — the binary in the config does not exist

  • literal_secret — a credential pasted into env in plain text

  • risky_flag — --yolo, --dangerously-skip-permissions, and similar

  • unpinned_package — npx/uvx without a version pin

  • plaintext_remote — remote server over http://

  • shell_execution — curl | sh, eval, destructive rm in the launch args

  • config_drift — the same server name declared differently across clients

What it does not do

  • Does not scan the network. It reads declared configs and the local files they point at. It is not a vulnerability scanner and does not claim to be.

  • Does not sandbox the servers it starts. It launches them exactly as your client would, which is the point — but that means a malicious server is still malicious here. Run it against servers you chose to install.

  • Does not fix anything. It never edits your configs. Every finding carries the fix as text because the decision to disable a capability should be yours.

  • Does not measure remote servers. URL-based servers are reported as unprobed, never silently scored as healthy.

  • Tool count is the drift signal, not token cost. Token estimation shifts when the estimator improves; a server gaining six tools is an unambiguous fact that will not produce phantom drift after an upgrade of this tool.

Self-verification

python tests/selftest.py

26 checks. The negative half matters most: a clean, pinned, keyring-based config must produce zero findings. A hygiene tool that cries wolf gets ignored within a week, and then it is worse than nothing.

Boundaries worth knowing

  • If a server writes to stdout before answering, the JSON-RPC stream breaks. That is a bug in that server, and this tool reports it as no tools/list reply.

  • Baselines are per-machine. They record tool counts and status, not secrets, so they are safe to commit — but comparing baselines across machines will show spurious new/disappeared entries.

  • Timeout defaults to 20s per server. Raise it for servers that compile on launch.

License

Commercial. One-time purchase or subscription as listed on the marketplace.

Available Tools

4 tools
audit_config_onlyA

Static-only audit with no probing: checks launch commands, arguments and env for dead binaries, unpinned package specs, plaintext secrets, risky flags and plaintext remote URLs. Fast and safe to run in CI or on a machine where starting servers is not acceptable.

Inputs: config.

check_fleetA

Full health and risk pass over every configured MCP server: starts each one, measures handshake latency, counts tools, compares to the recorded baseline, and audits the launch configuration for dead commands, unpinned packages, plaintext secrets and confirmation-bypass flags. Use after installing or upgrading servers, or when the agent feels slower than it used to. Reads configs; writes nothing.

Inputs: config, timeout, baseline.

diff_baselineB

Show only what changed since the recorded baseline, without the full report. Use for a quick 'did anything drift' answer.

Inputs: config, baseline.

record_baselineA

Probe every server and save the current tool counts and status as the baseline that later check_fleet runs compare against. Run this right after a deliberate upgrade so the next drift report is clean. This is the only operation that writes a file.

Inputs: config, baseline.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a distinct primary role: full health pass, baseline recording, static-only audit, and baseline diff. However, check_fleet is a superset that also performs baseline comparison and config auditing, so it overlaps functionally with diff_baseline and audit_config_only. The descriptions clarify when to prefer the narrower tools, but the boundaries are not perfectly sharp.

    Naming Consistency5/5

    All tool names use snake_case with a consistent verb-first pattern: check_fleet, record_baseline, audit_config_only, diff_baseline. The '_only' suffix on audit_config_only is a readable modifier rather than a convention break.

    Tool Count5/5

    Four tools is well-scoped for a fleet health and baseline management server. Each tool corresponds to a meaningful workflow: full check, baseline capture, static audit, and drift diff.

    Completeness4/5

    The surface covers the core lifecycle of checking fleet health, recording a baseline, auditing configuration, and diffing drift. Minor gaps remain, such as no explicit tool to list configured servers or delete/reset a baseline, but agents can work around these via record_baseline and the full report.

    Related MCP Connectors

    Related MCP Servers