
redline
com.redlinejs/redline
Visual website feedback for coding agents: read, reply to and resolve comments on live pages
Documentation
RedlineJS MCP server
Point at the problem. Your agent ships the fix.
RedlineJS is visual website feedback for coding agents. Reviewers highlight text, circle a detail or pin a comment to the exact element on the live page. redline-mcp gives those comments to Claude Code, Codex, Cursor or any other MCP client: the agent reads each comment with the element attached, replies, makes the fix and marks it resolved. Reviewers see the agent's replies and status changes in their panel, labelled Agent.
The server ships in the npm package @perpetio/redline and needs Node.js 20 or later. This repository holds its marketplace listing and documentation; it contains no source code.
Website · MCP docs · Get started · Redline Cloud
What the agent gets
Every comment records the element it is about: a readable label (Button "Start free trial"), a stable selector that prefers ids and data-testid, the nearest heading, its classes, size and computed styles, and, in React, Vue or Svelte development builds, the component chain and source file:
## 1. Button "Start free trial"
Pin · open · Jane Doe
> Should say "Start 14-day trial", legal asked for it.
- Selector: `[data-testid="start-trial"]`
- Component: `<Pricing> <PlanCard> <Button>` · `src/components/PlanCard.tsx:42:7`
- Under heading: "Pricing"
Quick start (local)
-
In your project folder, register the server with your coding agent.
Claude Code:
claude mcp add redline -- npx -y -p @perpetio/redline@latest redline-mcpCodex:
codex mcp add redline -- npx -y -p @perpetio/redline@latest redline-mcpIt starts a review backend for the folder on
127.0.0.1:7335and keeps its data in.annotate/in the project folder. That folder has its own.gitignore, so nothing is committed. -
Open the page you are developing, on
localhostor127.0.0.1, with the Redline snippet:<script src="https://unpkg.com/@perpetio/redline"></script>Click Settings (the gear) in the Redline toolbar and turn on Send comments to my coding agent.
-
Leave some comments, then tell the agent: "work through the Redline comments".
Cursor, Claude Desktop and other clients
Any MCP client that can start a stdio server works. The usual JSON config:
{
"mcpServers": {
"redline": {
"command": "npx",
"args": ["-y", "-p", "@perpetio/redline@latest", "redline-mcp"]
}
}
}
Clients that don't start servers in the project folder (Claude Desktop starts them in /) need the folder given explicitly: add "--data-dir", "/absolute/path/to/project/.annotate" to args, or use the client's cwd setting.
Tools
| Tool | What it does |
|---|---|
annotate_list_pending | Open and in-progress comments, oldest first, as Markdown plus JSON. Optional page filter. |
annotate_get_comment | One comment in full: styles, position, replies and activity. |
annotate_reply | Adds a reply to a comment thread. |
annotate_set_status | Sets in_progress, resolved, wont_fix or open. A note is posted as a reply first, and wont_fix needs one. |
annotate_watch | Waits for new or changed comments, then returns them. |
Remote mode (Redline Cloud)
To work against a shared review in Redline Cloud instead of the local one, pass the review and the review's agent invite:
npx -y -p @perpetio/redline@latest redline-mcp --review rvw_… --invite agt_…
REDLINE_REVIEW and REDLINE_INVITE work in place of the flags. Create the agent token in the review's Agent tab at app.redlinejs.com; it shows this command ready to copy.
Anyone who can comment on a review can write to your agent. Don't pair an open review with an agent on a site that strangers can reach.
Troubleshooting
Run npx -y -p @perpetio/redline@latest redline-mcp doctor in the same folder (with the same flags or variables in remote mode). It prints a line per check and exits 1 if one fails. More in the MCP docs.
License
The widget, local mode and redline-mcp are free to use in personal and commercial projects under the terms in LICENSE. RedlineJS is not open source. Redline Cloud is a subscription service by Perpetio OÜ, provided under its Terms of Service and Privacy Policy.
Questions: redlinejs.com/contact.
@perpetio/redlinenpm install @perpetio/redline