MCP Tools - Error updating tool list
Bug Description
When I use the MCP Tools component in a flow, the list of available tools does not work. I can select the MCP server that I want to use (in this case, it is a Langflow MCP Server), but after selecting the MCP Server the Tools control displays an error message "Error on MCP Server"
Reproduction
Steps:
- Install a new instance of Langflow
uv pip install langflow - Create a new Project named
MCP Server(to host the MCP Server) - Create a new flow named
echoin the project 'MCP Server' - Drop a
Chat InputandChat Outputinto the flow. Wire them up to echo the input - Copy the JSON config for this MCP Server from the MCP Server tab in the MCP Server project
- Generate an API Key
- Navigate to Langflow Settings -> MCP Servers
- Create a new MCP Server, paste in the JSON config and the API key
- Navigate to the Starter Project folder
- Create a new flow
- Drop the MCP Tools component
- Select the MCP Server that was created in step 8.
Expected behavior
The MCP Tools component should enumerate the available tools on the MCP server.
Who can help?
No response
Operating System
MacOS 15.5
Langflow Version
1.5.0.post1
Python Version
3.12
Screenshot
No response
Flow File
This is the error message on the terminal where I am running Langflow:
[07/18/25 12:57:11] INFO 2025-07-18 12:57:11 - INFO - util - Successfully loaded 1 tools from MCP server util.py:1255
'lf_mcp_server'
[07/18/25 12:57:15] ERROR 2025-07-18 12:57:14 - ERROR -
fastapi.exceptions.HTTPException: 400: Super user hasn't been created
╭─────────────── Traceback (most recent call last) ────────╮
│ in update_tool_list:206 │
│ │
│ /Users/hiltonrosenfield/Development/DataStax/Langflow/.venv/lib/python3.12/site-pa │
│ ckages/langflow/services/auth/utils.py:314 in create_user_longterm_token │
│ │
│ 311 │ username = settings_service.auth_settings.SUPERUSER │
│ 312 │ super_user = await get_user_by_username(db, username) │
│ 313 │ if not super_user: │
│ ❱ 314 │ │ raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail= │
│ hasn't been created") │
│ 315 │ access_token_expires_longterm = timedelta(days=365) │
│ 316 │ access_token = create_token( │
│ 317 │ │ data={"sub": str(super_user.id), "type": "access"}, │
╰─────────────────────────╯
HTTPException: 400: Super user hasn't been created
I am also facing the same issue when upgrading my langflow-ide chart in kubernetes cluster with 1.5.0 image. please help
I am facing the same issue. Under tool mode it says "error loading actions"
Please fix this!
Same issue as well.
Please fix this!
Please fix this!
please fix!!
Please fix this!
use "langflow" as your superuser name can solve this ques , but other account which is not "langflow" still can not run
+1
@edwinjosechittilappilly Has a fix for this and will be released in v1.6
Can confirm that this is now fixed.