Skip to content

MCP工具节点中写SQL 时,引入变量会存在不间断空格,导致SQL语法错误 #2155

@cyoeki

Description

@cyoeki

📝 问题描述

为MySQL数据库搭建了MCP服务,并在毕昇平台创建了MCP工具。尝试在工作流的MCP工具节点中写SQL时(示例select * from risk_info where unit_level_name =代码2/result1 limit 2000),会提示SQL语法错误,存在不间断空格\xa0.

💻 复现步骤

复现该 Bug 的具体步骤:
基于工作流,引入基于MySQL的MCP工具节点,并在该节点填写查询sql,在引入用户输入的变量后,添加limit语句。

🔍 期望行为

移除不间断空格或者替换为普通空格,避免sql语法错误。

📸 截图或日志

Image

🖥️ 环境信息

Chrome 148.0.7778.215

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions