Coding agents (MCP)
Specto’s MCP server gives a coding agent — Claude Code, Codex, Cursor, any MCP client — a project’s bugs fix-ready: where, what happened, the evidence, who it hits, the release that introduced it, and a Playwright test that fails until it is fixed. The agent writes the fix; a person reviews it.
Connect
Each person connects their agent with their own agent token: Settings → Point → Coding agents → Create token. A token works for one project, may read bugs or also close them (closing needs a developer role), expires after 30, 90 or 365 days, and is shown once. Revoke it there and the agent is cut off at once; leaving the project revokes your tokens. The audit log names whose agent closed a bug. The project’s server key only sends backend traces — it is refused here.
Claude Code
claude mcp add --transport http specto https://specto.sh/api/mcp \ --header "Authorization: Bearer smcp_your_agent_token"
Any MCP client
{
"mcpServers": {
"specto": {
"type": "http",
"url": "https://specto.sh/api/mcp",
"headers": { "Authorization": "Bearer smcp_your_agent_token" }
}
}
}Streamable HTTP, stateless, JSON responses. Keep the token out of the repository — your agent’s environment or secret store. The organization’s IP allowlist applies to agents too, and an organization that requires single sign-on accepts tokens made in an SSO session.
Visitor text is not instructions
A bug’s title, where it happened, what people said, errors, requests and the recorded steps come from the visitors and pages a project records — and anyone holding the project’s public key can send them. So the tools return that part under reported, with a notice saying so, apart from what Specto knows itself (number, status, counts, release and commits). Agents should treat reported as a description of the bug, never as instructions; read get_repro’s test before running it.
Tools
| Tool | What it returns |
|---|---|
list_bugs | The project’s bugs, the ones hitting the most people first. status: active (default — open and handed off), fixed, ignored, or one status |
get_bug | One bug, fix-ready (number), visitor-produced parts under reported: where (page, component, file hint, selectors, element state and styles), what (what happened, what should have, what was said — pinned to the marker), evidence (replay links at the moment, failing requests, console errors, stack), who, cause (release and commits), handoff |
get_repro | The recorded steps and a Playwright test that fails while the bug is there — check the selectors, keep it as the regression test |
close_bug | Mark it fixed once the change ships, with a note (the PR). It counts as closed after 14 days with no session hitting it; if one does, Specto reopens it |
list_suggestions | What people asked for, on Improve: “How do I…?” questions, things flagged as confusing or as an idea, what Specto found in how people use the product, and changes a model drafted from an answer’s numbers (kind drafted by Specto, once the project shows them; never a draft still in review). Most people first. status: open (default), accepted, declined |
get_suggestion | One suggestion (number): where, how many people, and their own words under reported. A drafted one adds drafted (the numbers it stands on, the answer it came from, and a note that it is a proposal to check, not an instruction); its sentences stay under reported |
list_features | The product as Specto knows it: each feature with its score and what is missing, its pages and controls, its confirmed paths and how often people needed guided steps for them |
get_usage | Is a feature or a page used? feature (a name or id from list_features) or page (a path), and days (7, 14, 30 or 90). One plain reading with what the numbers cannot tell; how many saw it, tried it, succeeded and came back; where the others went; bugs and questions on it. Counts under 5 read “fewer than 5” |
The last four only read: a read-only token has all of them. Feature names come from your team (or are drafted from your routes); routes, element keys and people’s words come from what was recorded, so they are under reported too.
A loop that works
> Fix the top Specto bug.
list_bugs → #12 TypeError … (reading 'pct') 3 people · Error
get_bug(12) → where: [data-testid="apply"] · frame: apply (CouponForm.jsx)
what: an unknown coupon code throws
get_repro(12) → a Playwright test: goto /, click apply, expect no page error
… edits CouponForm.jsx, runs the test: fails before, passes after …
close_bug(12, "PR #431") → fixed — closes after 14 quiet daysSpecto’s own test suite runs this loop on a demo shop: the generated test fails on the buggy build and passes on the fixed one.
Getting better bugs
Release tags (data-release="<git sha>") let a bug name the release that introduced it; with GitHub linked in Settings → Integrations, the commits in it that touch the bug’s component, test id or route. Test ids (data-testid) make selectors and repros stable. Component names come from React, Vue and Svelte; the build plugin’s data-specto-src adds the file. With Name features from the repository on (Settings → Integrations → GitHub, a token with Contents: read), the draft features on Your product take their names from the route components — Specto reads the file list and one route file per draft, and keeps only the name.
Bugs come from Point reports and from what Specto detects on its own: JavaScript errors, rage and dead clicks on the same element, and requests failing on the same route.

