MCP setup
Quey exposes browser captures to coding agents through the Model Context Protocol. Register the MCP server with your agent so it can read captures, make edits, and stream results back.
Register with your agent
If you ran quey init during setup and said yes when it asked about registering an agent, this is already done. Otherwise, use the quey mcp add command to auto-register, or add the entry to .mcp.json manually:
quey mcp addOr manually create .mcp.json at your project root:
{ "mcpServers": { "quey": { "command": "npx", "args": ["-y", "@quey/mcp", "server"] } }}.mcp.json when it exists in the project root — no additional setup needed.Cursor respects
.mcp.json in the project root. You can also add it manually in Settings → MCP.Other agents
For Codex, Windsurf, Zed, VS Code, Cline, Gemini CLI, and other MCP-aware agents, quey add delegates to add-mcp, which knows each agent's config file and format:
quey add all # register with every agent add-mcp supports, after you confirm what it'll write and wherequey add other # pick from add-mcp's full agent list interactivelyquey add codex # or any other agent slug, e.g. windsurf, zed, vscodequey add all/quey add <agent> always shows exactly what will be written and where, and asks you to confirm, before touching anything outside this project.QUEY_CODEX_CWD — with no target repo set, a capture just records an error asking you to set it. See Configuration to point it at a repo.The MCP server runs in combined mode by default: the HTTP bridge (for the extension) and MCP stdio (for agents) run in the same process, so captures are shared immediately.
Tools reference
These MCP tools are available to any connected agent:
| Tool | Description |
|---|---|
quey_list_sessions | List all capture sessions with counts. |
quey_get_session | Get a session with all its captures. |
quey_get_pending | Get unacknowledged captures, optionally by session. |
quey_get_capture | Get full capture details including element context and thread. |
quey_acknowledge | Mark a capture as seen / in-progress. |
quey_resolve | Mark a capture as resolved with a summary. |
quey_dismiss | Dismiss a capture with a reason. |
quey_reply | Add a message to a capture's thread. |
quey_watch | Block until new captures appear — use in loops for hands-free mode. |
HTTP API
The HTTP bridge also exposes a REST API on port 4747. The extension uses this directly; you can also use it for debugging.
# Health checkcurl http://localhost:4747/health # List pending capturescurl http://localhost:4747/captures/pending # Get a specific capturecurl http://localhost:4747/captures/<id> # Subscribe to real-time events (SSE)curl -N http://localhost:4747/events