Laneshot runs a Model Context Protocol server. An AI agent connected to it reads a capture the way a developer would: the report first, then the console, the failing requests, the steps, and what the backend did. You paste a link; the agent does the rest.
There are two endpoints:
| Endpoint | Authentication | Reads |
|---|---|---|
<APP_URL>/api/mcp |
A personal API token | Everything you can open in Laneshot: private traces, projects, cards, and automations. |
<APP_URL>/api/mcp/public |
None | Only traces opened through a public link (/share/…). |
Both use the Streamable HTTP transport and are stateless, so they work behind load balancers without sticky sessions.

Create a token
- Open Account settings from the menu at the bottom of the sidebar.
- Under Browsers and API tokens, name the token, such as "Claude Code on my laptop". If you belong to several organizations, choose the one the agent should work in. Then select Create token.
- Copy the token, or the ready-made
claude mcp addcommand. The token starts withlsh_and is shown once.

Every call runs as you, inside the token's organization. The agent sees exactly what you can see there, and nothing from your other organizations: list_projects lists that organization's projects, and get_card resolves WEB-42 within it. It loses access when you revoke the token, when you leave the organization, when the organization is suspended, or when your account is deactivated. Laneshot stores only a SHA-256 hash of each token, and shows when it was last used.
Connect a client
Replace https://laneshot.acme.com with your APP_URL, and lsh_… with your token. For public links only, use /api/mcp/public and leave out the header.
Claude Code
claude mcp add --transport http laneshot https://laneshot.acme.com/api/mcp \
--header "Authorization: Bearer lsh_…"
Claude (web and desktop)
Custom connectors in Claude don't send custom headers, so add the public endpoint: open Settings, Connectors, Add custom connector, and paste https://laneshot.acme.com/api/mcp/public. Claude can then read any public Laneshot link you paste into a chat.
For private traces in Claude Desktop, bridge the account endpoint through mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"laneshot": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://laneshot.acme.com/api/mcp",
"--header",
"Authorization: Bearer ${LANESHOT_TOKEN}"
],
"env": { "LANESHOT_TOKEN": "lsh_…" }
}
}
}
Cursor
In ~/.cursor/mcp.json, or .cursor/mcp.json in a repository:
{
"mcpServers": {
"laneshot": {
"url": "https://laneshot.acme.com/api/mcp",
"headers": { "Authorization": "Bearer lsh_…" }
}
}
}
VS Code
In .vscode/mcp.json. VS Code prompts for the token once and stores it securely:
{
"inputs": [
{ "type": "promptString", "id": "laneshot-token", "description": "Laneshot API token", "password": true }
],
"servers": {
"laneshot": {
"type": "http",
"url": "https://laneshot.acme.com/api/mcp",
"headers": { "Authorization": "Bearer ${input:laneshot-token}" }
}
}
}
Codex
In ~/.codex/config.toml, with the token in the LANESHOT_TOKEN environment variable:
[mcp_servers.laneshot]
url = "https://laneshot.acme.com/api/mcp"
bearer_token_env_var = "LANESHOT_TOKEN"
Other clients
Any client that supports Streamable HTTP works. Send the token as Authorization: Bearer lsh_…. The CLI prints the exact configuration for each client with laneshot mcp.
Tools
Every tool returns JSON as text, except read_trace, which returns Markdown.
Capture tools
Available on both endpoints. Each takes a trace input: a public link (https://laneshot.acme.com/share/share_…), a private link (https://laneshot.acme.com/traces/0b1f…), or a bare trace ID. On the public endpoint, only public links work.
| Tool | Inputs | Returns |
|---|---|---|
read_trace |
trace |
The whole capture as a Markdown report: description, environment, console errors, failed requests, every request, the person's actions, the transcript, and backend data when allowed. Agents should start here. |
get_trace |
trace |
Metadata: title, description, kind, start time, duration, problem counts, and environment. |
get_console_logs |
trace, errorsOnly (default false), limit (1 to 500, default 100) |
Console messages and uncaught exceptions, with stack traces. |
get_network_requests |
trace, failedOnly (default false), urlContains, includeAssets (default false), limit |
Requests with method, URL, status, timing, redacted headers and bodies, and backend trace IDs. Images, scripts, and other assets are left out unless includeAssets is true. |
get_user_actions |
trace, limit |
Clicks, typing, navigation, and page events. |
get_transcript |
trace |
The timed transcript of the voice-over, or a note when there's none. |
get_backend |
trace |
Spans, errors, and logs from the project's backend connections. |
get_backend is available to project members. Through a public link, it works only when the link includes backend data.
Account tools
Available on /api/mcp with a token. They act with your permissions.
| Tool | Inputs | Returns |
|---|---|---|
list_projects |
none | The projects you can access, with their ID, key, and name. |
create_project |
name, and optionally key (2 to 10 letters or digits, such as WEB; derived from the name if omitted), description, icon (one emoji), folder (a folder's name) |
Creates the project with the default columns, makes you its project admin, and returns its key, folder, and link. Needs an organization owner or admin. |
update_project |
project (key or ID), and any of name, description, icon (null removes it) |
Changes only what you send and returns the project. The key never changes, so card references stay valid. Needs a project admin. |
move_project |
project (key or ID), folder (a folder's name, or null for no folder) |
Files the project in a sidebar folder, or takes it out, and returns it. Needs an organization owner or admin. |
list_project_folders |
none | The sidebar folders in order, with the keys of the projects you can open in each, and the projects outside folders. |
create_project_folder |
name |
Adds a folder after the existing ones. Needs an organization owner or admin. |
get_project |
project (key or ID) |
The project's columns in order, labels, custom fields with their options, the people cards can be assigned to, and its linked GitHub repositories. Read it before creating or moving cards. |
search_cards |
Any of query (title, number, or reference), project (key or ID; all your projects by default), column, type, label, assignee (name, email, or me), completed, limit (up to 100, default 50) |
Matching cards, most recently changed first, each with its reference, title, column, type, priority, assignee, labels, due date, whether it's done or blocked, checklist progress, and updatedAt. Usually enough without calling get_card on each. |
get_card |
reference, such as SHOP-12 |
The card, with its updatedAt, description, type, priority, column, assignee, labels, dates, custom fields, checklist, the cards it's blocked by and blocking, linked issues, comments, and traces. |
list_my_cards |
person, label, and includeCompleted (all optional) |
The open cards assigned to you, or to person (a name or email in the organization), in every project you can open, overdue and soonest due first, then by priority. Each says whether it's blocked and how far its checklist is. With includeCompleted, also the cards you finished in the last 14 days. |
create_card |
project (key, such as SHOP, or ID), title, and optionally description, type, priority, column, assignee, labels, startDate, dueDate, completed, fields |
Creates the card and returns it. It lands at the bottom of the first column unless you name one. Needs permission to edit cards. |
update_card |
reference, and any of title, description, appendToDescription, type, priority, column, assignee, labels, startDate, dueDate, completed, fields, ifUnchangedSince |
Changes only what you send and returns the card. Naming another column moves the card to the bottom of it. completed: true marks it complete without moving it. appendToDescription adds Markdown at the end of the description instead of replacing it. With ifUnchangedSince, the updatedAt you read, nothing is written if someone changed the card since. Needs permission to edit cards. |
add_comment |
reference, body (Markdown) |
Comments on the card as you, like a comment in the app: its assignee and reporter are notified, and so is anyone you mention with @ and their full name, such as @Maya Chen. Returns the card. Needs permission to comment. |
move_card |
reference, project (key or ID), and optionally column |
Moves the card to another project and returns it with its new reference and what didn't come along. The old reference keeps working. Needs permission to edit cards in both projects. |
list_team_work |
none | Everyone in the organization with their open cards in projects you can open: how many are overdue (in UTC), due in the next 7 days, or blocked, and their next due date. People with overdue cards first. |
update_checklist |
reference, and any of add, check, uncheck, remove |
Edits the card's checklist and returns the card. add comes first and adds items at the end: their text, or { "text": "…", "done": true } for an item already done. The others name items by their ID from get_card or by their exact text, case aside, including items added in the same call. Needs permission to edit cards. |
update_blockers |
reference, and any of add, remove |
Adds or removes the cards this card waits on, by reference, such as PAY-7, and returns the card. They can be in any project of the organization you can open. A card can't wait on a card that already waits on it. Needs permission to edit cards. |
list_issue_repositories |
project (key or ID) |
The GitHub repositories the project's cards can be filed in, as owner/name. Needs permission to create issues. |
create_github_issue |
reference, and optionally repository (owner/name; optional when the project has one linked repository), title, body, allowDuplicate |
Files the card as a GitHub issue and links it, so the card moves when the issue closes. Without a title or body, it uses the same ones as the app: the card's description with links to its captures and their errors. Only repositories linked to the project are allowed, and a second issue in the same repository needs allowDuplicate. Needs permission to create issues. |
list_traces |
limit |
Your most recent captures, newest first, with their problem counts. |
list_automations |
projectId |
The project's automations, their trigger, and whether they're on. |
run_automation |
automationId, card (optional, such as SHOP-12) |
Runs the automation now and returns each step's outcome. Needs permission to edit cards. |
create_card and update_card take names, the way you'd say them:
column,labels, and the keys offieldsare names from the project, such asIn progress,checkout, orStory points. Case doesn't matter.assigneeis a project member's name or email, orme. Sendnullto unassign.descriptionis Markdown. Onupdate_card, it replaces the whole description, andlabelsreplaces all the card's labels: send[]to remove them.- Dates are
YYYY-MM-DD. Sendnullto clear one. fieldsworks like the REST API: select options and people by name, andnullclears a value.
Keep the description as the reference. A card's description is edited live by your team. Agents should post progress, such as "Shipped in v1.2" or "Verified", with add_comment, which notifies people and keeps the history. When an agent does change the description, pass ifUnchangedSince so it never overwrites a teammate's edit, or use appendToDescription.
Every name is checked before anything is written. A name that matches nothing returns an error that lists the valid ones, so the agent can correct itself. Changes count as yours: they notify people, run automations, and update open boards like an edit in the app.
Example prompts
Use the Laneshot MCP to read https://laneshot.acme.com/traces/0b1f… and find the cause of the bug.
Then look for the code that handles the failing request in this repository.
List the bugs in the To do column of SHOP that have captures, read each capture,
and group them by likely root cause.
What should I work on next? Use Laneshot to list my cards, skip the blocked ones,
and pick the most urgent. Tick its checklist items as you finish them.
Create a "Mobile app" project in the Clients folder, then add cards for the
login screen, push notifications, and the App Store release.
Read SHOP-12. If the backend shows a payments error, run the "Escalate to on-call"
automation on it.
Read SHOP-12, fix the bug in this repository, then move the card to In review,
assign it to me, and append a short summary of the fix to its description.
File every Critical bug in the To do column of SHOP that has no linked issue as a
GitHub issue in acme/web, then list the issue links.
Use MCP in automations
Laneshot can also call your MCP servers. The Call an MCP tool action sends a trace link to your agent whenever a bug is captured. See Automations.
Troubleshooting
| Symptom | What to check |
|---|---|
401 with "Missing API token." or "Invalid API token." |
The Authorization header is missing, mistyped, or the token was revoked. |
| "Trace not found" through the public endpoint | Only public links work there. Create a public link, or use /api/mcp with a token. |
| "Backend data not found" | The public link was created without backend data. |
| Claude.ai can't reach the connector | Your server must be on a public HTTPS address. Use Claude Code or Cursor for internal instances. |