Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(mcp): document heartbeat timeout (#41516)

Alex Tumanov4ee1439fcc9c
diff --git a/docs/src/getting-started-mcp.md b/docs/src/getting-started-mcp.md
index 6879b69a75..a73e61b5be 100644
--- a/docs/src/getting-started-mcp.md
+++ b/docs/src/getting-started-mcp.md
@@ -195,6 +195,8 @@ When running a headed browser on a system without a display or from IDE worker p
npx @playwright/mcp@latest --port 8931
```
+HTTP sessions use a five-second heartbeat timeout. If your MCP client or proxy does not answer server-initiated pings, set `PLAYWRIGHT_MCP_PING_TIMEOUT_MS` to a longer timeout in milliseconds. Set it to `0` to disable the heartbeat.
+
Then point your MCP client to the HTTP endpoint:
```json