Skip to content

Commit ee81e27

Browse files
dangayleruifigueira
authored andcommitted
docs: Update README.md to include instructions for enabling inline image responses in Cursor clients
1 parent 67079cf commit ee81e27

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,18 @@ code-insiders --add-mcp '{"name":"cloudflare-playwright","type":"sse","url":"htt
114114
```
115115

116116
After installation, the Playwright MCP server will be available for use with your GitHub Copilot agent in VS Code.
117-
</details>
117+
118+
### Use with Cursor
119+
120+
By default, when `imageResponses` is set to `"auto"`, the server disables inline image responses for Cursor clients. To enable inline screenshots in Cursor, you need to override this behavior:
121+
122+
If you're running your own Cloudflare Worker, pass `imageResponses: "allow"` when creating the MCP agent:
123+
124+
```typescript
125+
export const PlaywrightMCP = createMcpAgent(env.BROWSER, {
126+
imageResponses: 'allow',
127+
} as any);
128+
```
118129

119130
### Tool Modes
120131

0 commit comments

Comments
 (0)