{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/langflow/json-schema/langflow-mcpproject-update-request-schema.json",
  "title": "MCPProjectUpdateRequest",
  "description": "Request model for updating MCP project settings including auth.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/langflow-mcp-projects-api-openapi.yml#/components/schemas/MCPProjectUpdateRequest",
  "properties": {
    "auth_settings": {
      "anyOf": [
        {
          "$ref": "#/$defs/AuthSettings"
        },
        {
          "type": "null"
        }
      ]
    },
    "settings": {
      "items": {
        "$ref": "#/$defs/MCPSettings"
      },
      "title": "Settings",
      "type": "array"
    }
  },
  "required": [
    "settings"
  ],
  "type": "object",
  "$defs": {
    "AuthSettings": {
      "description": "Model representing authentication settings for MCP.",
      "properties": {
        "auth_type": {
          "default": "none",
          "enum": [
            "none",
            "apikey",
            "oauth"
          ],
          "title": "Auth Type",
          "type": "string"
        },
        "oauth_auth_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Auth Url"
        },
        "oauth_callback_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Callback Path"
        },
        "oauth_callback_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Callback Url"
        },
        "oauth_client_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Client Id"
        },
        "oauth_client_secret": {
          "anyOf": [
            {
              "format": "password",
              "type": "string",
              "writeOnly": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Client Secret"
        },
        "oauth_host": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Host"
        },
        "oauth_mcp_scope": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Mcp Scope"
        },
        "oauth_port": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Port"
        },
        "oauth_provider_scope": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Provider Scope"
        },
        "oauth_server_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Server Url"
        },
        "oauth_token_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Oauth Token Url"
        }
      },
      "title": "AuthSettings",
      "type": "object"
    },
    "MCPSettings": {
      "description": "Model representing MCP settings for a flow.",
      "properties": {
        "action_description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Action Description"
        },
        "action_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Action Name"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "mcp_enabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Enabled"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        }
      },
      "required": [
        "id"
      ],
      "title": "MCPSettings",
      "type": "object"
    }
  }
}