{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hasmcp/main/json-schema/hasmcp-list-providers-response-schema.json",
  "title": "ListProvidersResponse",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hasmcp-openapi.yaml#/components/schemas/ListProvidersResponse",
  "type": "object",
  "properties": {
    "providers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Provider"
      }
    },
    "matchCount": {
      "type": "integer"
    },
    "nextToken": {
      "type": "string"
    }
  },
  "$defs": {
    "Provider": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{11}$",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "version": {
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "apiType": {
          "type": "string",
          "description": "0: INVALID, 1: REST"
        },
        "visibilityType": {
          "type": "string",
          "description": "0: INVALID, 1: INTERNAL, 2: PUBLIC"
        },
        "baseURL": {
          "type": "string",
          "format": "uri"
        },
        "documentURL": {
          "type": "string",
          "format": "uri"
        },
        "iconURL": {
          "type": "string",
          "format": "uri"
        },
        "secretPrefix": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "tools": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/ProviderTool"
          }
        },
        "oauth2Config": {
          "$ref": "#/$defs/ProviderOAuth2Config"
        }
      }
    },
    "ProviderOAuth2Config": {
      "type": "object",
      "properties": {
        "clientID": {
          "type": "string"
        },
        "clientSecret": {
          "type": "string"
        },
        "authURL": {
          "type": "string",
          "format": "uri"
        },
        "tokenURL": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "ProviderTool": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{11}$",
          "readOnly": true
        },
        "providerID": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{11}$"
        },
        "method": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "MCP tool name (camelCase up to 20chars)"
        },
        "title": {
          "type": "string",
          "description": "MCP tool title (Free text up to 64 chars)"
        },
        "description": {
          "type": "string"
        },
        "pathArgsJSONSchema": {
          "type": "object",
          "description": "A raw JSON schema.",
          "additionalProperties": true
        },
        "queryArgsJSONSchema": {
          "type": "object",
          "description": "A raw JSON schema.",
          "additionalProperties": true
        },
        "reqBodyJSONSchema": {
          "type": "object",
          "description": "A raw JSON schema.",
          "additionalProperties": true
        },
        "headers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ToolHeader"
          }
        },
        "oauth2Scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ToolHeader": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    }
  }
}