You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and discussions.
I am using the latest version of mcpo.
mcpo Version
v0.0.12
Open WebUI Version (if applicable)
v0.6.5
Operating System
Ubuntu 24.04
Browser (if applicable)
Chrome
Confirmation
I have read and followed all instructions in README.md.
I am using the latest version of both MCPO and Open WebUI.
I have included the browser console logs.
I have included the Docker container logs.
I have listed steps to reproduce the bug in detail.
Expected Behavior
The integration of the Sequential Thinking MCP server with OpenWebUI should work correctly. When a user makes a request that requires sequential thinking, OpenWebUI should be able to call the /sequentialthinking/sequentialthinking endpoint with properly typed JSON parameters, and the tool should perform a step-by-step analysis.
Actual Behavior
The integration of the Sequential Thinking MCP server with OpenWebUI should work correctly. When a user makes a request that requires sequential thinking, OpenWebUI should be able to call the http://mcpo:8000/sequentialthinking endpoint with properly typed JSON parameters, and the tool should perform a step-by-step analysis.
We get a error in the container logs: ""Input should be a valid integer, unable to parse string as an integer"
The problem appears to be a data type incompatibility issue between OpenWebUI and the Sequential Thinking server. OpenWebUI sends parameters as strings (also for null values and booleans), while the API expects concrete types (integer, boolean, null).
Steps to Reproduce
Create a Docker Compose setup with OpenWebUI and MCPO Server
Activate native function calling to see the status in the chat fenster or leave it off and see in container logs
In a chat, ask a question that requires sequential thinking, e.g., "Analyze step by step the business model of 1komma5.com"
The MCPO logs show a 422 error
The manual curl command works fine:
curl -X POST "http://localhost:8000/sequentialthinking/sequentialthinking"
-H "Content-Type: application/json"
-H "Authorization: Bearer ..."
-d '{
"thought": "I am analyzing the business model of 1komma5.com",
"nextThoughtNeeded": true,
"thoughtNumber": 1,
"totalThoughts": 5
}'
But the request generated by OpenWebUI fails.
Logs & Screenshots
Faulty request from OpenWebUI to the Sequential Thinking server:
Error Message in MCPO container logs:
docker logs mcpo
{
"error": "HTTP error 422: {"detail":[{"type":"int_parsing","loc":["body","revisesThought"],"msg":"Input should be a valid integer, unable to parse string as an integer","input":"null"},{"type":"int_parsing","loc":["body","branchFromThought"],"msg":"Input should be a valid integer, unable to parse string as an integer","input":"null"}]}"
}
Error message in UI:
{
"thought": "Let's break down the business model of 1komma5.com into its key components and analyze each step in detail.",
"next_thought_needed": "True",
"thought_number": "1",
"total_thoughts": "5",
"is_revision": "False",
"revises_thought": "null",
"branch_from_thought": "null",
"branch_id": "null",
"needs_more_thoughts": "False"
}
{
"error": "HTTP error 422: {"detail":[{"type":"missing","loc":["body","nextThoughtNeeded"],"msg":"Field required","input":{"thought":"Let's break down the business model of 1komma5.com into its key components and analyze each step in detail."}},{"type":"missing","loc":["body","thoughtNumber"],"msg":"Field required","input":{"thought":"Let's break down the business model of 1komma5.com into its key components and analyze each step in detail."}},{"type":"missing","loc":["body","totalThoughts"],"msg":"Field required","input":{"thought":"Let's break down the business model of 1komma5.com into its key components and analyze each step in detail."}}]}"
}
This discussion was converted from issue #79 on April 17, 2025 06:10.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Check Existing Issues
mcpo Version
v0.0.12
Open WebUI Version (if applicable)
v0.6.5
Operating System
Ubuntu 24.04
Browser (if applicable)
Chrome
Confirmation
README.md
.Expected Behavior
The integration of the Sequential Thinking MCP server with OpenWebUI should work correctly. When a user makes a request that requires sequential thinking, OpenWebUI should be able to call the
/sequentialthinking/sequentialthinking
endpoint with properly typed JSON parameters, and the tool should perform a step-by-step analysis.Actual Behavior
The integration of the Sequential Thinking MCP server with OpenWebUI should work correctly. When a user makes a request that requires sequential thinking, OpenWebUI should be able to call the
http://mcpo:8000/sequentialthinking
endpoint with properly typed JSON parameters, and the tool should perform a step-by-step analysis.We get a error in the container logs: ""Input should be a valid integer, unable to parse string as an integer"
The problem appears to be a data type incompatibility issue between OpenWebUI and the Sequential Thinking server. OpenWebUI sends parameters as strings (also for null values and booleans), while the API expects concrete types (integer, boolean, null).
Steps to Reproduce
Create a Docker Compose setup with OpenWebUI and MCPO Server
Configure Sequential Thinking in the config.json:
"sequentialthinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
Configure in Openwebui:
http://mcpo:8000/sequentialthinking
Activate native function calling to see the status in the chat fenster or leave it off and see in container logs
In a chat, ask a question that requires sequential thinking, e.g., "Analyze step by step the business model of 1komma5.com"
The MCPO logs show a 422 error
The manual curl command works fine:
curl -X POST "http://localhost:8000/sequentialthinking/sequentialthinking"
-H "Content-Type: application/json"
-H "Authorization: Bearer ..."
-d '{
"thought": "I am analyzing the business model of 1komma5.com",
"nextThoughtNeeded": true,
"thoughtNumber": 1,
"totalThoughts": 5
}'
But the request generated by OpenWebUI fails.
Logs & Screenshots
Faulty request from OpenWebUI to the Sequential Thinking server:
Error Message in MCPO container logs:
docker logs mcpo
{
"error": "HTTP error 422: {"detail":[{"type":"int_parsing","loc":["body","revisesThought"],"msg":"Input should be a valid integer, unable to parse string as an integer","input":"null"},{"type":"int_parsing","loc":["body","branchFromThought"],"msg":"Input should be a valid integer, unable to parse string as an integer","input":"null"}]}"
}
Error message in UI:
{
"thought": "Let's break down the business model of 1komma5.com into its key components and analyze each step in detail.",
"next_thought_needed": "True",
"thought_number": "1",
"total_thoughts": "5",
"is_revision": "False",
"revises_thought": "null",
"branch_from_thought": "null",
"branch_id": "null",
"needs_more_thoughts": "False"
}
{
"error": "HTTP error 422: {"detail":[{"type":"missing","loc":["body","nextThoughtNeeded"],"msg":"Field required","input":{"thought":"Let's break down the business model of 1komma5.com into its key components and analyze each step in detail."}},{"type":"missing","loc":["body","thoughtNumber"],"msg":"Field required","input":{"thought":"Let's break down the business model of 1komma5.com into its key components and analyze each step in detail."}},{"type":"missing","loc":["body","totalThoughts"],"msg":"Field required","input":{"thought":"Let's break down the business model of 1komma5.com into its key components and analyze each step in detail."}}]}"
}
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions