Grok Bot remote MCP requests omit MCP-Protocol-Version on reused sessions, causing empty HTTP 400

Where does the bug appear (feature/product)?

Grok Bot

Describe the Bug

Full investigation, redacted server trace and runnable reproduction: Grok Bot (Cursor MCP client) omits MCP-Protocol-Version on reused sessions → empty 400 from T3 Code; analysis, repro and fixes · GitHub

OAuth authorization, token exchange, MCP initialization and the first tools/list succeed. Later requests arrive with Mcp-Session-Id but without MCP-Protocol-Version. On a session negotiated as 2025-06-18, strict servers reject them with HTTP 400 and an empty body. Grok Bot shows: Streamable HTTP error: Error POSTing to endpoint:

The requested tools never execute. Server traces prove the header is absent when requests arrive, but do not establish which connector component drops it or conclusively identify the rejected RPC method.

Steps to Reproduce

  1. Add a T3 Code /mcp endpoint through T3 Connect as a custom remote MCP server in Grok Bot (Effect 4.0.1, MCP protocol 2025-06-18).
  2. Approve OAuth. Initial discovery succeeds and lists 80 tools.
  3. Ask the bot to call t3_project_list or t3_environment_read.
  4. Observe the empty error and requests on an existing session without the version header.

Reauthorizing and reconnecting did not resolve the incident. The gist also contains a local client/server reproduction.

Expected Behavior

Every request after initialization should include the negotiated MCP-Protocol-Version (2025-06-18), and tool calls should succeed. Actual behavior: later requests omit the header, receive an empty HTTP 400, and tools do not run.

Operating System

MacOS

Version Information

Installed Grok Bot: 0.68.1 (read from the macOS app bundle on 2026-10-08; app version was not captured in the original incident trace).
OS: macOS / darwin
Bot: Membrane
Connector user-agent: Cursor/1.0.0
Server: T3 Code 0.0.46-nightly.20261008.2819, Effect 4.0.1
Negotiated MCP protocol: 2025-06-18
Incident: 2026-10-08 16:44–16:51 UTC

Additional Information

Related server-side issue: [Bug]: MCP returns an empty 400 for in-session requests without MCP-Protocol-Version, so Grok Bot (Cursor client) can't call tools · Issue #16906 · pingdotgg/t3code · GitHub

The report documents a server compatibility fix in Effect 4.0.2. That helps T3 Code, but the connector should still send the required header for other strict servers.

Suggested connector fix: persist the negotiated protocol version alongside sessionId and restore it before any resumed-session requests. In the official TypeScript SDK this is transport.setProtocolVersion(saved.protocolVersion). The SDK reproduces the same behavior when a new transport resumes only sessionId without restoring protocolVersion; this is a hypothesis for the connector implementation, not a confirmed finding about its internals. Please investigate session reconstruction and any proxy/header handling.

The gist includes the redacted timeline, Cloudflare request IDs, reproduction client/server and tested fixes. This blocks Grok Bot from using this MCP server.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @Andrew_Pashynnyk, thanks for the report and the reproduction.

We were able to confirm what you described: when Grok Bot reuses an existing MCP session, it doesn’t restore the negotiated protocol version, so those requests go out without the MCP-Protocol-Version header. I’ve flagged this to the team along with your suggested fix.

In the meantime, updating T3 Code to the build that includes the Effect 4.0.2 compatibility fix should get tool calls working again, since that server then accepts requests without the header. Reconnecting or re-authorizing in Grok Bot won’t help on its own, because a fresh connection gets reused the same way.

Hey @Andrew_Pashynnyk,

Following up on this one: Grok Bot now sends the negotiated MCP-Protocol-Version header on reused MCP sessions, so strict servers should no longer reject tool calls with the empty 400. The change is on our side, so there’s nothing to update in Grok Bot itself.

If you still see the empty “Error POSTing to endpoint” error when calling your server’s tools, let me know roughly when it happened (UTC) and we’ll take another look.