{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/mcp-server-wrapper.schema.json",
  "title": "Wever Labs MCP Server Wrapper v1",
  "type": "object",
  "description": "JSON-RPC tool surface for Wever Labs rails, payment challenge, run status, return packages, receipts, production write validation, and first paid run execution proof.",
  "oneOf": [
    {
      "required": [
        "jsonrpc",
        "method"
      ],
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": [
            "string",
            "integer",
            "null"
          ]
        },
        "method": {
          "type": "string",
          "enum": [
            "initialize",
            "notifications/initialized",
            "ping",
            "tools/list",
            "tools/call"
          ]
        },
        "params": {
          "type": "object"
        }
      },
      "additionalProperties": true
    },
    {
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "read_mcp_server",
            "list_tools",
            "call_tool"
          ]
        },
        "tool_name": {
          "type": "string"
        },
        "arguments": {
          "type": "object"
        }
      },
      "additionalProperties": true
    }
  ]
}