Skip to content

Loading local mcp server failed silently #4749

@rickliujh

Description

@rickliujh

Describe the bug

When some of tools in custom MCP server have incorrect schema definition, Flowise failed to load that MCP server with zero error indication. This cause two problems:

  1. remaining tools that available in that MCP server is not accessible because of this
  2. making it hard to debug for MCP users

To Reproduce

  1. install Smarsheet MCP in the local following the instruction in the readme
  2. open chatflow
  3. drag a Custom MCP
  4. use the config below
{
   "command": "/usr/local/bin/node",
   "args": [
      "-r",
      "/root/smar-mcp/node_modules/dotenv/config",
      "/root/smar-mcp/build/index.js"
   ],
   "env": {
      "SMARTSHEET_API_KEY":"123",
      "SMARTSHEET_ENDPOINT": "https://api.smartsheet.eu/2.0"
   }
}
  1. click the "refresh" button in the right side of available actions dropdown list
  2. check the server logs

Expected behavior

all other tools provided by SmartSheet MCP should be loaded besides two user related tools that have the schema problem

Screenshots

Image

Image

Flow

No response

Use Method

Docker

Flowise Version

3.0.1

Operating System

Linux

Browser

Other

Additional context

The error of user related tools in SmartSheet MCP failed the loading

Error: Invalid schema type or missing properties
    at createSchemaModel (/usr/src/packages/components/dist/nodes/tools/MCP/core.js:139:15)
    at /usr/src/packages/components/dist/nodes/tools/MCP/core.js:86:29
    at Array.map (<anonymous>)
    at MCPToolkit.get_tools (/usr/src/packages/components/dist/nodes/tools/MCP/core.js:77:49)
    at MCPToolkit.initialize (/usr/src/packages/components/dist/nodes/tools/MCP/core.js:66:37)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions