{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/nitra/7n-rules/main/npm/schemas/vendor/mcp.json",
  "title": "MCP servers config (.mcp.json)",
  "description": "Конфіг MCP-серверів проєкту (Claude Code, Cursor тощо): mcpServers — мапа <ім'я> → опис запуску (stdio command/args/env або url для sse/http).",
  "type": "object",
  "properties": {
    "mcpServers": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "type": { "type": "string", "enum": ["stdio", "sse", "http"] },
          "command": { "type": "string" },
          "args": { "type": "array", "items": { "type": "string" } },
          "env": { "type": "object", "additionalProperties": { "type": "string" } },
          "url": { "type": "string" },
          "headers": { "type": "object", "additionalProperties": { "type": "string" } }
        },
        "additionalProperties": true
      }
    }
  },
  "required": ["mcpServers"],
  "additionalProperties": true
}
