{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-mcp-server-config-dto-success-response-schema.json",
  "title": "McpServerConfigDtoSuccessResponse",
  "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/McpServerConfigDtoSuccessResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Success message"
    },
    "data": {
      "type": "object",
      "properties": {
        "serverId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "mode": {
          "enum": [
            "NORMAL",
            "META"
          ],
          "type": "string"
        },
        "discoveryToolSlugs": {
          "description": "Tool slugs pinned for discovery filter (Meta mode).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "discoveryToolsWhitelist": {
          "type": "boolean",
          "description": "When true, discovery only considers discoveryToolSlugs; when false, discovery excludes them."
        },
        "tools": {
          "description": "Tools in MCP standard format (name, description, inputSchema) for listing and execution",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string",
                "description": "Unique identifier for the tool (used in tools/call)"
              },
              "toolkitSlug": {
                "type": "string",
                "description": "Toolkit slug"
              },
              "description": {
                "type": "string",
                "description": "Human-readable description of the tool"
              },
              "inputSchema": {
                "type": "object",
                "description": "JSON Schema defining expected parameters"
              },
              "outputSchema": {
                "type": "object",
                "description": "JSON Schema defining expected output"
              }
            },
            "required": [
              "slug",
              "toolkitSlug",
              "description",
              "inputSchema",
              "outputSchema"
            ]
          }
        },
        "connections": {
          "type": "object",
          "description": "toolkitSlug -> connectedAccountId for tool execution"
        },
        "externalMcpConfigs": {
          "type": [
            "array",
            "null"
          ],
          "description": "External MCP configs (name, url, headers?, tools) attached to this MCP server for the client to load",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "headers": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "tools": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "connectionCallbackUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "OAuth redirect URL after linking a toolkit account"
        }
      },
      "required": [
        "serverId",
        "name",
        "mode",
        "tools"
      ]
    }
  },
  "required": [
    "success",
    "message",
    "data"
  ]
}