mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-24 11:58:31 -05:00
[GH-ISSUE #19525] issue: MCP Streamable HTTP incompatible with OpenMetadata MCP server due to missing Accept: application/json, text/event-stream header #122224
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aimendenche-nw on GitHub (Nov 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19525
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
latest
Ollama Version (if applicable)
No response
Operating System
ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
OpenWebUI should send the required dual Accept header for MCP Streamable HTTP:
Accept: application/json, text/event-stream
so that the OpenMetadata MCP server can establish a valid MCP handshake.
Actual Behavior
OpenWebUI always sends:
Accept: application/json
This violates the Java MCP Streamable HTTP protocol specification, leading to a 400 error and tool failure.
Proof: Curl Test
When sending the correct headers manually:
curl -i -X POST
-H "Content-Type: application/json"
-H "Accept: application/json, text/event-stream"
-H "Authorization: Bearer "
https://openmetadata./mcp
-d '{
"jsonrpc":"2.0",
"id":1,
"method":"initialize",
"params":{
"clientInfo":{"name":"curl-test","version":"0.1.0"},
"capabilities":{}
}
}'
The server responds successfully:
HTTP/2 200
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"serverInfo": { ... },
"capabilities": { ... }
}
}
This proves the issue is not on the server side.
The OpenWebUI MCP Streamable HTTP client does not allow modifying or injecting the required Accept header, and currently does not implement the dual Accept negotiation required by Java MCP servers.
This makes OpenWebUI incompatible with:
Java MCP servers using Streamable HTTP
Any MCP implementation requiring multiple MIME types
Steps to Reproduce
.....
Logs & Screenshots
Additional Information
Proposed Fix
Add support for dual Accept headers when initializing MCP HTTP connections.
Example:
headers["Accept"] = "application/json, text/event-stream"
or a more dynamic negotiation mechanism.
Also allow users to override required MCP headers in the UI.
@michalz-rely commented on GitHub (Nov 26, 2025):
I hit the same issue when setting up publicly available AWS Knowledge MCP Server
My Config
Logs
@tjbck commented on GitHub (Nov 26, 2025):
We're using the official mcp library to connect to mcp servers, do correct me if I'm wrong but chances are OpenMetadata MCP server is not fully compliant with the offical MCP spec.