{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-mcp-server-response-dto-paginated-response-schema.json",
  "title": "McpServerResponseDtoPaginatedResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-mcp-api-openapi.yml#/components/schemas/McpServerResponseDtoPaginatedResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "description": "Array of items",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Project ID; null for admin/global MCP"
          },
          "mode": {
            "enum": [
              "NORMAL",
              "META"
            ],
            "type": "string"
          },
          "discoveryToolsWhitelist": {
            "type": "boolean",
            "description": "In Meta mode: if true, discovery is limited to pinned tools; if false, those slugs are excluded from discovery."
          },
          "isPublic": {
            "type": "boolean"
          },
          "config": {
            "type": [
              "object",
              "null"
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "toolkitSlugs": {
            "description": "Up to 5 toolkit slugs for list display (icons)",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "externalMcpConfigs": {
            "type": [
              "array",
              "null"
            ],
            "description": "External MCP configs (name, url, headers?, tools)",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "headers": {
                  "type": "object"
                },
                "tools": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "connectionCallbackUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "OAuth redirect URL after linking a toolkit account"
          },
          "toolkitAuthConfigs": {
            "type": "array",
            "description": "AuthConfig bindings per toolkit"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "mode",
          "isPublic",
          "config",
          "createdAt",
          "updatedAt"
        ]
      }
    },
    "total": {
      "type": "number",
      "description": "Total number of items across all pages"
    },
    "totalTools": {
      "type": "number",
      "description": "Optional secondary total (e.g. nested tools across all matching toolkits)"
    },
    "page": {
      "type": "number",
      "description": "Current page number (1-based)"
    },
    "limit": {
      "type": "number",
      "description": "Number of items per page"
    },
    "totalPages": {
      "type": "number",
      "description": "Total number of pages"
    },
    "hasNextPage": {
      "type": "boolean",
      "description": "Whether there is a next page"
    },
    "hasPreviousPage": {
      "type": "boolean",
      "description": "Whether there is a previous page"
    }
  },
  "required": [
    "success",
    "message",
    "data",
    "total"
  ]
}