-
Notifications
You must be signed in to change notification settings - Fork 205
MCP: Fails to decode json rpc message #1996
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
Had observed that aigateway extproc fails to decode the json rpc messages for mcp remote servers like slack ( https://mcp.slack.com/mcp ). Apparently Slack’s MCP (and similar servers) often responds with SSE, e.g. lines like data: {"jsonrpc":"2.0",...}, not raw JSON starting with{.
Repro steps:
Configure a mcpRoute with slack mcp remote server, and hit tools/list
Environment:
latest
Logs:
time=2026-03-29T16:52:13.752Z level=ERROR msg="failed to collect messages from MCP backend"
component=mcp-proxy backend=slack-remote session_id=4c5bfda2-9132-40e8-9634-723176bcd485
error="failed to decode jsonrpc message from MCP response body: unmarshaling jsonrpc message: json: invalid
character '\x13' looking for beginning of value: \x13ep\x8cHM\xea\x01\xd0\b\x1d>\xe7\xed\xff\xfb\xa6\xda\xd7\xef\x1d\xe8tDf@Jv\xd6\ "\xab\xbc..."
...
cc: @nacx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working