{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-new-mcpserver-request-schema.json",
  "title": "NewMCPServerRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-mcp-rest-api-openapi.yml#/components/schemas/NewMCPServerRequest",
  "properties": {
    "alias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Alias"
    },
    "allow_all_keys": {
      "default": false,
      "title": "Allow All Keys",
      "type": "boolean"
    },
    "allowed_tools": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Tools"
    },
    "approval_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Server-managed: set by the endpoint; caller values are overridden.",
      "title": "Approval Status"
    },
    "args": {
      "items": {
        "type": "string"
      },
      "title": "Args",
      "type": "array"
    },
    "auth_type": {
      "anyOf": [
        {
          "enum": [
            "none",
            "api_key",
            "bearer_token",
            "basic",
            "authorization",
            "oauth2",
            "aws_sigv4",
            "token"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Type"
    },
    "authorization_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Authorization Url"
    },
    "available_on_public_internet": {
      "default": true,
      "title": "Available On Public Internet",
      "type": "boolean"
    },
    "byok_api_key_help_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Byok Api Key Help Url"
    },
    "byok_description": {
      "items": {
        "type": "string"
      },
      "title": "Byok Description",
      "type": "array"
    },
    "command": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Command"
    },
    "credentials": {
      "anyOf": [
        {
          "$ref": "#/$defs/MCPCredentials"
        },
        {
          "type": "null"
        }
      ]
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "env": {
      "additionalProperties": {
        "type": "string"
      },
      "title": "Env",
      "type": "object"
    },
    "extra_headers": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extra Headers"
    },
    "instructions": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instructions"
    },
    "is_byok": {
      "default": false,
      "title": "Is Byok",
      "type": "boolean"
    },
    "mcp_access_groups": {
      "items": {
        "type": "string"
      },
      "title": "Mcp Access Groups",
      "type": "array"
    },
    "mcp_info": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mcp Info"
    },
    "oauth2_flow": {
      "anyOf": [
        {
          "enum": [
            "client_credentials",
            "authorization_code"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Oauth2 Flow"
    },
    "registration_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Registration Url"
    },
    "server_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Server Id"
    },
    "server_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Server Name"
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "spec_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Spec Path"
    },
    "static_headers": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Static Headers"
    },
    "submitted_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Server-managed: set by the endpoint; caller values are overridden.",
      "title": "Submitted At"
    },
    "submitted_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Server-managed: set by the endpoint; caller values are overridden.",
      "title": "Submitted By"
    },
    "token_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Token Url"
    },
    "tool_name_to_description": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Name To Description"
    },
    "tool_name_to_display_name": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Name To Display Name"
    },
    "transport": {
      "default": "sse",
      "enum": [
        "sse",
        "http",
        "stdio"
      ],
      "title": "Transport",
      "type": "string"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url"
    }
  },
  "type": "object",
  "$defs": {
    "MCPCredentials": {
      "properties": {
        "auth_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Auth Value"
        },
        "aws_access_key_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Access Key Id"
        },
        "aws_region_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Region Name"
        },
        "aws_role_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Role Name"
        },
        "aws_secret_access_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Secret Access Key"
        },
        "aws_service_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Service Name"
        },
        "aws_session_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Session Name"
        },
        "aws_session_token": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aws Session Token"
        },
        "client_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Client Id"
        },
        "client_secret": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Client Secret"
        },
        "scopes": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Scopes"
        }
      },
      "title": "MCPCredentials",
      "type": "object"
    }
  }
}