fix(mcp): wrap websocket activity broadcasts in JSON-RPC notifications

Fixes a critical bug where the Antigravity MCP client would crash with 'invalid message version tag' during long-running tool executions. The server was broadcasting raw JSON activity objects ({'type': 'activity', 'data': ...}) over the WebSocket connection without wrapping them in the required JSON-RPC 2.0 Notification envelope, violating the protocol expectation on the proxy stub.
This commit is contained in:
Riz Ashraf committed 2026-09-21 19:56:03 +01:00
1 parent 208c5d448f
commit da1b7cdc9d
6 files changed
+90 -86

No files matched your search

+3 -2
View File
@@ -56,8 +56,9 @@ impl MemoryState {
});
let payload = serde_json::json!({
"type": "activity",
"data": item
"jsonrpc": "2.0",
"method": "notifications/activity",
"params": item
})
.to_string();
let _ = self.activity_tx.send(payload);