MCP Servers Validator
The MCP validator checks .mcp.json configuration files for transport types, URLs, environment variables, and server configuration.
What It Checks
- Transport type validity (stdio, SSE, HTTP, WebSocket)
- URL format validation per transport type
- Environment variable syntax
- Variable expansion patterns
- Command validation for stdio transport
Rules
This validator includes 11 rules. See the MCP rules category for the complete list.
| Rule | Severity | Description |
|---|---|---|
| mcp-invalid-transport | error | Unknown transport type |
| mcp-stdio-empty-command | error | Stdio transport command is empty |
| mcp-http-invalid-url | error | Invalid HTTP URL |
| mcp-invalid-env-var | warn | Invalid environment variable |
CLI Usage
bash
claudelint validate-mcp
claudelint validate-mcp --verboseSee Also
- Claude Code MCP Servers - Official MCP documentation
- Configuration - Customize rule severity