Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(mcp): remove stale keepalive reference (#98996)

Paul D'Ambrac0aad9d9df31
diff --git a/services/mcp/src/api/client.ts b/services/mcp/src/api/client.ts
index ee5237d90405..a29a8b3cbde2 100644
--- a/services/mcp/src/api/client.ts
+++ b/services/mcp/src/api/client.ts
@@ -44,9 +44,8 @@ const RATE_LIMIT_TOTAL_WAIT_BUDGET_MS = 30_000
const SSE_DEFAULT_TIMEOUT_MS = 10 * 60 * 1000
// Per-read inactivity timeout: if no chunk (not even a keepalive comment) arrives
-// within this window, the server is assumed dead. Must comfortably exceed the
-// server-side keepalive interval — kept in sync with `SSE_KEEPALIVE_INTERVAL = 15s`
-// in `ee/api/session_summaries.py`. If you change one, check the other.
+// within this window, the server is assumed dead. It must comfortably exceed
+// expected server keepalive intervals.
const SSE_READ_TIMEOUT_MS = 30_000
// Page size for the `query-*-actors` tools. The ceiling bounds how much of a caller's context