Check reference / Correctness & Structure

MCP-01 Valid MCP config

Correctness & Structure · 20% of the grade · deterministic · applies to MCP configs

Deterministic — runs on every scan, no LLM or network needed.

Why it matters

An .mcp.json that fails to parse — or lacks a top-level `mcpServers` object — configures nothing: Claude Code loads zero servers and every tool the config promised is silently missing at runtime.

How to fix it

Make the file valid JSON with a top-level `mcpServers` object mapping each server name to its config, and define at least one server (an empty map only earns a warn).

Example

✓ passes
{
  "mcpServers": {
    "docs": { "command": "npx", "args": ["-y", "@example/mcp-server@1.2.3"] }
  }
}