DOCS
CONFIG-001
A discovered agent config file is empty, or it is not valid JSON or TOML. An empty YAML config is the same info finding. A YAML file with contents is left for that agent to read.
Why it matters
The scanner does not read MCP servers from a file it cannot parse. An empty file is a placeholder editors such as VS Code can create. A malformed file may be a real syntax error the agent is also failing to read.
How to fix
An empty file, a whitespace-only file, or a file that is only a UTF-8 BOM is info. The message is Configuration file is empty. Delete the file or add valid contents in that file's format.
- VS Code
mcp.jsonuses{ "servers": {} }. - Cursor, Claude, Windsurf, Cline, Roo, and Gemini JSON use
{ "mcpServers": {} }. - Codex
config.tomluses an empty[mcp_servers]table or a[mcp_servers.<name>]entry. - Claude Code
settings.jsonand VS Codesettings.jsonuse{}. Zed settings use{ "context_servers": {} }. - Aider, Continue, and Goose are YAML. Continue's MCP list, when present, is
mcpServers:.
A file with broken JSON or TOML stays high. The message includes the parser line and column. Fix that syntax. Then run balerx scan again.
Current scanner
Empty and whitespace-only configs, including a leading BOM with nothing after it, are info. They do not add to the risk score. --fail-on high, --fail-on medium, and --fail-on low do not fail because of them. --fail-on info does.
Malformed JSON and TOML stay high. A leading UTF-8 BOM is removed before parsing, so a BOM followed by valid JSON or TOML is read normally.
Back to scan results.
