Purpose
A board of captures is already structured data: a cropped screenshot, the page URL, the element's selector and computed styles, console errors at the moment of capture, and the note the person wrote. That is what a coding agent needs to act on a capture without a human re-describing it. The MCP server would expose a workspace read-only (plus one write: creating a capture) so that:
- An IDE agent can list open captures for the project it is working in, pull the screenshot and element context, and fix the thing.
- A design agent can read the captures labelled Design as a brief.
- A CI or review bot can file a capture against a preview URL when it notices something.
Proposed tools
Arguments and results mirror the contract types in packages/contracts. Enum values are the wire values. Labels are given by name; the server resolves them to ids.
list_projectsArgumentsnoneReturnsProject[] for the token's workspace: id, name, createdAt, linked repo if any.list_capturesArgumentsproject (id), label? (a label name), since? (ms), limit? (1 to 500)ReturnsSyncCapture[] without image bytes, plus a cursor. Tombstones are filtered out.get_captureArgumentsidReturnsOne capture with a read URL on every uploaded attachment (seven-day URLs, same as GET /assets/:id).create_captureArgumentsproject, pageUrl, title, labels? (names; unknown ones are created), description?ReturnsThe created capture id. Creates a capture with a rect detail and no attachments; it appears on the board like any other.searchArgumentsquery, project?, label?ReturnsCaptures whose title, description, quoted words, page title or URL match. Plain substring match to begin with.Likely additions once the basics work: list_workspaces (so a token tied to a user can pick a workspace, as X-Workspace does today), and a file_capture tool that turns an existing capture into an issue in the tool the project sends to. Resources (MCP's read-only URI scheme) could expose each capture's screenshot as capture://<id>/image for clients that prefer resources to tool results.
What a capture looks like to an agent
Authentication
By a personal API token, created in the workspace settings and shown once. The token maps to a user and one workspace, with that user's role in it. It would be sent as Authorization: Bearer exactly like the Clerk JWT the API accepts today, and checked against the same permission table, narrowed by the key's scopes, and limited by its maker's seat: the key of someone with a Viewer seat, or a read-only key, can list and get but not create_capture.
Personal access keys exist today (Dashboard → Settings → API and agents) and can be limited to reading, so an agent can be given a key that changes nothing.
Transport
- stdio: a small
npx-runnable package for local IDE clients (Claude Code, Cursor, VS Code). ReadsONEWEAVR_TOKENfrom the environment and talks to the workspace API over HTTPS. - Streamable HTTP: hosted at a path on the workspace host, for remote clients and anything that cannot spawn a process. Same bearer token.
Both would be thin: the server holds no state and calls the same use cases the REST routes call.
What will not be exposed
- Raw credentials of any kind: no Clerk session tokens, no GitHub or GitLab tokens, no blob store tokens. Sending, when added, happens server-side on the user's behalf.
- Other workspaces. A token is bound to one workspace; there is no tool to enumerate or switch.
- Members, roles or workspace settings. Read the board, write a capture; that is all.
- Delete or edit of existing captures. Agents should add, not rewrite, what people captured.
- Anything the person turned off in capture settings (diagnostics, element, viewport, browser). If it was not attached at capture time it is not there to read.
Open questions
- Should
list_capturespage by the sync cursor (updatedAt) or bycreatedAt? Agents mostly want "what's new", which argues for the sync cursor. - Image delivery: URLs (cheap, needs a second fetch) versus inline base64 (one round trip, large payloads). Probably URLs by default with an
inlinecapture. - Whether
create_captureshould accept a screenshot. It would need the asset upload dance, which is awkward over MCP.
If you have a client you want this to work with, say so: hello@1weavr.com.