MCP-011: Invalid MCP server type - MCP
Summary
- Rule ID:
MCP-011 - Severity:
HIGH - Category:
MCP - Normative Level:
MUST - Auto-Fix:
Yes (unsafe) - Verified On:
2026-10-17
Applicability
- Tool:
all - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://code.claude.com/docs/en/mcp
- https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers
- https://code.visualstudio.com/docs/agents/reference/mcp-configuration
- https://cursor.com/docs/mcp
- https://docs.cline.bot/mcp/mcp-overview
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
{
"mcpServers": {
"my-server": {
"type": "websocket",
"url": "ws://localhost:8080"
}
}
}
Valid
{
"mcpServers": {
"my-server": {
"type": "stdio",
"command": "node"
}
}
}