app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: advanced-chat
  name: sqlbot-test
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: junjiem/mcp_sse:0.2.1@53cc613667fcf91dd7208dd5f6d2c8df3c7ff0af8b79e8f3c0a430f1b39bda4c
kind: app
version: 0.3.0
workflow:
  conversation_variables:
  - description: ''
    id: 99c192a6-ec6c-4d5c-ae2d-14e5d1910ec8
    name: access_token
    selector:
    - conversation
    - access_token
    value: ''
    value_type: string
  - description: ''
    id: d3516b05-1faf-460d-8689-13ebbf172a2d
    name: chat_id
    selector:
    - conversation
    - chat_id
    value: 0
    value_type: number
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_size_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: ''
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: if-else
      id: 1758090351370-source-1758091453454-target
      selected: false
      source: '1758090351370'
      sourceHandle: source
      target: '1758091453454'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: if-else
        targetType: tool
      id: 1758091453454-true-1758091588852-target
      selected: false
      source: '1758091453454'
      sourceHandle: 'true'
      target: '1758091588852'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: tool
        targetType: code
      id: 1758091588852-source-1758092552178-target
      selected: false
      source: '1758091588852'
      sourceHandle: source
      target: '1758092552178'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: code
        targetType: assigner
      id: 1758092552178-source-1758092556290-target
      selected: false
      source: '1758092552178'
      sourceHandle: source
      target: '1758092556290'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: assigner
        targetType: tool
      id: 1758092556290-source-1758092765242-target
      source: '1758092556290'
      sourceHandle: source
      target: '1758092765242'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: tool
        targetType: answer
      id: 1758092765242-source-answer-target
      source: '1758092765242'
      sourceHandle: source
      target: answer
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: tool
      id: 1758091453454-false-1758092765242-target
      source: '1758091453454'
      sourceHandle: 'false'
      target: '1758092765242'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables:
        - label: username
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: username
        - label: password
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: password
      height: 116
      id: '1758090351370'
      position:
        x: 30
        y: 263
      positionAbsolute:
        x: 30
        y: 263
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        answer: '{{#1758092765242.text#}}'
        desc: ''
        selected: false
        title: 直接回复
        type: answer
        variables: []
      height: 105
      id: answer
      position:
        x: 1842.5714285714284
        y: 345.85714285714283
      positionAbsolute:
        x: 1842.5714285714284
        y: 345.85714285714283
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        cases:
        - case_id: 'true'
          conditions:
          - comparison_operator: empty
            id: 04434cde-207b-4deb-9889-5b4869f27b28
            value: ''
            varType: string
            variable_selector:
            - conversation
            - access_token
          id: 'true'
          logical_operator: and
        desc: ''
        selected: false
        title: 条件分支
        type: if-else
      height: 126
      id: '1758091453454'
      position:
        x: 334
        y: 263
      positionAbsolute:
        x: 334
        y: 263
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        is_team_authorization: true
        output_schema: null
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: Name of the tool to execute.
            ja_JP: Name of the tool to execute.
            pt_BR: Name of the tool to execute.
            zh_Hans: 要执行的工具的名称。
          label:
            en_US: Tool Name
            ja_JP: Tool Name
            pt_BR: Tool Name
            zh_Hans: 工具名称
          llm_description: Name of the MCP tool to execute.
          max: null
          min: null
          name: tool_name
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: string
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: Tool arguments (JSON string in the python dict[str, Any] format).
            ja_JP: Tool arguments (JSON string in the python dict[str, Any] format).
            pt_BR: Tool arguments (JSON string in the python dict[str, Any] format).
            zh_Hans: 工具的参数。
          label:
            en_US: Arguments
            ja_JP: Arguments
            pt_BR: Arguments
            zh_Hans: 参数
          llm_description: MCP Tool arguments (JSON string in the python dict[str,
            Any] format).
          max: null
          min: null
          name: arguments
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: string
        - auto_generate: null
          default: 1
          form: form
          human_description:
            en_US: Fetch and call the preset MCP Resources as Tools.
            ja_JP: Fetch and call the preset MCP Resources as Tools.
            pt_BR: Fetch and call the preset MCP Resources as Tools.
            zh_Hans: 将预设的 MCP Resources 作为 Tools 返回和调用。
          label:
            en_US: MCP Resources as Tools
            ja_JP: MCP Resources as Tools
            pt_BR: MCP Resources as Tools
            zh_Hans: MCP 资源作为工具
          llm_description: ''
          max: null
          min: null
          name: resources_as_tools
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: boolean
        - auto_generate: null
          default: 1
          form: form
          human_description:
            en_US: Fetch and call the preset MCP Prompts as Tools.
            ja_JP: Fetch and call the preset MCP Prompts as Tools.
            pt_BR: Fetch and call the preset MCP Prompts as Tools.
            zh_Hans: 将预设的 MCP Prompts 作为 Tools 返回和调用。
          label:
            en_US: MCP Prompts as Tools
            ja_JP: MCP Prompts as Tools
            pt_BR: MCP Prompts as Tools
            zh_Hans: MCP 提示词作为工具
          llm_description: ''
          max: null
          min: null
          name: prompts_as_tools
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: boolean
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: MCP Servers config, support multiple MCP services. (Optional, Filling
              in this field will overwrite the MCP Servers config entered during authorization.)
            ja_JP: MCP Servers config, support multiple MCP services. (Optional, Filling
              in this field will overwrite the MCP Servers config entered during authorization.)
            pt_BR: MCP Servers config, support multiple MCP services. (Optional, Filling
              in this field will overwrite the MCP Servers config entered during authorization.)
            zh_Hans: MCP服务配置，支持多个MCP服务。 （选填，填写后将覆盖授权时填写的MCP服务配置。）
          label:
            en_US: MCP Servers config
            ja_JP: MCP Servers config
            pt_BR: MCP Servers config
            zh_Hans: MCP 服务配置
          llm_description: ''
          max: null
          min: null
          name: servers_config
          options: []
          placeholder: null
          precision: null
          required: false
          scope: null
          template: null
          type: string
        params:
          arguments: ''
          prompts_as_tools: ''
          resources_as_tools: ''
          servers_config: ''
          tool_name: ''
        provider_id: junjiem/mcp_sse/mcp_sse
        provider_name: junjiem/mcp_sse/mcp_sse
        provider_type: builtin
        selected: false
        title: mcp_start
        tool_configurations:
          prompts_as_tools: 1
          resources_as_tools: 1
        tool_description: 调用 MCP 服务端工具。
        tool_label: 调用 MCP 工具
        tool_name: mcp_sse_call_tool
        tool_parameters:
          arguments:
            type: mixed
            value: '{

              "username":"{{#1758090351370.username#}}",

              "password":"{{#1758090351370.password#}}"

              }'
          servers_config:
            type: mixed
            value: '{

              "sqlbot_mcp": {

              "url": "http://39.100.81.193:8001/mcp",

              "transport": "sse"

              }

              }'
          tool_name:
            type: mixed
            value: mcp_start
        type: tool
      height: 116
      id: '1758091588852'
      position:
        x: 635.1428571428573
        y: 180.1428571428571
      positionAbsolute:
        x: 635.1428571428573
        y: 180.1428571428571
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        code: "import json\ndef main(arg1: str) -> dict:\n    json_obj = json.loads(arg1)\n\
          \    return {\n        \"chat_id\": json_obj[\"data\"][\"chat_id\"],\n \
          \       \"access_token\": json_obj[\"data\"][\"access_token\"]\n    }\n"
        code_language: python3
        desc: ''
        outputs:
          access_token:
            children: null
            type: string
          chat_id:
            children: null
            type: number
        selected: false
        title: 代码执行
        type: code
        variables:
        - value_selector:
          - '1758091588852'
          - text
          variable: arg1
      height: 54
      id: '1758092552178'
      position:
        x: 939.1428571428571
        y: 180.1428571428571
      positionAbsolute:
        x: 939.1428571428571
        y: 180.1428571428571
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        items:
        - input_type: variable
          operation: over-write
          value:
          - '1758092552178'
          - chat_id
          variable_selector:
          - conversation
          - chat_id
          write_mode: over-write
        - input_type: variable
          operation: over-write
          value:
          - '1758092552178'
          - access_token
          variable_selector:
          - conversation
          - access_token
          write_mode: over-write
        selected: false
        title: 变量赋值
        type: assigner
        version: '2'
      height: 116
      id: '1758092556290'
      position:
        x: 1238.857142857143
        y: 180.1428571428571
      positionAbsolute:
        x: 1238.857142857143
        y: 180.1428571428571
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        is_team_authorization: true
        output_schema: null
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: Name of the tool to execute.
            ja_JP: Name of the tool to execute.
            pt_BR: Name of the tool to execute.
            zh_Hans: 要执行的工具的名称。
          label:
            en_US: Tool Name
            ja_JP: Tool Name
            pt_BR: Tool Name
            zh_Hans: 工具名称
          llm_description: Name of the MCP tool to execute.
          max: null
          min: null
          name: tool_name
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: string
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: Tool arguments (JSON string in the python dict[str, Any] format).
            ja_JP: Tool arguments (JSON string in the python dict[str, Any] format).
            pt_BR: Tool arguments (JSON string in the python dict[str, Any] format).
            zh_Hans: 工具的参数。
          label:
            en_US: Arguments
            ja_JP: Arguments
            pt_BR: Arguments
            zh_Hans: 参数
          llm_description: MCP Tool arguments (JSON string in the python dict[str,
            Any] format).
          max: null
          min: null
          name: arguments
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: string
        - auto_generate: null
          default: 1
          form: form
          human_description:
            en_US: Fetch and call the preset MCP Resources as Tools.
            ja_JP: Fetch and call the preset MCP Resources as Tools.
            pt_BR: Fetch and call the preset MCP Resources as Tools.
            zh_Hans: 将预设的 MCP Resources 作为 Tools 返回和调用。
          label:
            en_US: MCP Resources as Tools
            ja_JP: MCP Resources as Tools
            pt_BR: MCP Resources as Tools
            zh_Hans: MCP 资源作为工具
          llm_description: ''
          max: null
          min: null
          name: resources_as_tools
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: boolean
        - auto_generate: null
          default: 1
          form: form
          human_description:
            en_US: Fetch and call the preset MCP Prompts as Tools.
            ja_JP: Fetch and call the preset MCP Prompts as Tools.
            pt_BR: Fetch and call the preset MCP Prompts as Tools.
            zh_Hans: 将预设的 MCP Prompts 作为 Tools 返回和调用。
          label:
            en_US: MCP Prompts as Tools
            ja_JP: MCP Prompts as Tools
            pt_BR: MCP Prompts as Tools
            zh_Hans: MCP 提示词作为工具
          llm_description: ''
          max: null
          min: null
          name: prompts_as_tools
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: boolean
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: MCP Servers config, support multiple MCP services. (Optional, Filling
              in this field will overwrite the MCP Servers config entered during authorization.)
            ja_JP: MCP Servers config, support multiple MCP services. (Optional, Filling
              in this field will overwrite the MCP Servers config entered during authorization.)
            pt_BR: MCP Servers config, support multiple MCP services. (Optional, Filling
              in this field will overwrite the MCP Servers config entered during authorization.)
            zh_Hans: MCP服务配置，支持多个MCP服务。 （选填，填写后将覆盖授权时填写的MCP服务配置。）
          label:
            en_US: MCP Servers config
            ja_JP: MCP Servers config
            pt_BR: MCP Servers config
            zh_Hans: MCP 服务配置
          llm_description: ''
          max: null
          min: null
          name: servers_config
          options: []
          placeholder: null
          precision: null
          required: false
          scope: null
          template: null
          type: string
        params:
          arguments: ''
          prompts_as_tools: ''
          resources_as_tools: ''
          servers_config: ''
          tool_name: ''
        provider_id: junjiem/mcp_sse/mcp_sse
        provider_name: junjiem/mcp_sse/mcp_sse
        provider_type: builtin
        selected: false
        title: mcp_question
        tool_configurations:
          prompts_as_tools: 1
          resources_as_tools: 1
        tool_description: 调用 MCP 服务端工具。
        tool_label: 调用 MCP 工具
        tool_name: mcp_sse_call_tool
        tool_parameters:
          arguments:
            type: mixed
            value: "{\n\"chat_id\":{{#conversation.chat_id#}}, \n\"question\":\"{{#sys.query#}}\"\
              ,\n\"token\":\"{{#conversation.access_token#}}\"\n}"
          servers_config:
            type: mixed
            value: '{

              "sqlbot_mcp": {

              "url": "http://39.100.81.193:8001/mcp",

              "transport": "sse"

              }

              }'
          tool_name:
            type: mixed
            value: mcp_question
        type: tool
      height: 116
      id: '1758092765242'
      position:
        x: 1544.2857142857142
        y: 345.85714285714283
      positionAbsolute:
        x: 1544.2857142857142
        y: 345.85714285714283
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    viewport:
      x: 69.79999999999973
      y: 83.65000000000003
      zoom: 0.7
