Replay MCP server for AI agents

Live

OAUTH 2.1

DEBUGGING

Developer Tools

Replay MCP gives your agent debugging access to your Replay recordings through Replay's own MCP server: get a recording overview, inspect console messages, network requests, and React renders, evaluate expressions at a point in time, and read the call stack.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Replay MCP
agent · Acme Q3
Run
What went wrong in this recording?
S
replaymcp_recordingoverview
1260ms
Debugging agent
The recording shows 2 uncaught exceptions and 14 failed network requests. The first error is a TypeError in the checkout form.
Sources: Replay recording, 1 overview
replaymcp
1 recording
18:29
Message Claude...

Tools your debugging agent reaches for on Replay, scoped per user.

CALL ANY TOOL
32 tools for debugging in Replay: get a recording overview, inspect console messages, network requests, and user interactions, analyze React renders, Redux actions, and TanStack queries, evaluate expressions at a point in time, and read the call stack.
replaymcp_annotations
Annotations
Inspect the annotations in a recording. Annotations are timestamped records attached by the runtime and integrations (e.g. Cypress, Playwright, React DevTools, network, localStorage). Call with no arguments to list all annotation kinds in the recording with their counts. Pass a 'kind' to return the annotation data for that kind (paginated, optionally filtered by text). For WebSocket traffic (DOMWebSocket annotations), use the WebSocketMessages tool instead.
Parameters
Name
Type
Required
Description
recordingId
string
Required
The ID of the recording to analyze.
filterByText
string
Optional
Substring filter (case-insensitive) on annotation contents. Only applies when a kind is provided.
kind
string
Optional
Annotation kind to return data for. When omitted, lists all annotation kinds in the recording with their counts.
limit
integer
Optional
Pagination page size (default 25). Only applies when a kind is provided. Default: `25`.
offset
integer
Optional
Pagination offset. Only applies when a kind is provided. Default: `0`.
replaymcp_consolemessages
Consolemessages
replaymcp_describepoint
Describepoint
replaymcp_evaluate
Evaluate
replaymcp_executiondelay
Executiondelay
replaymcp_getpointcomponent
Getpointcomponent
replaymcp_getpointlink
Getpointlink
replaymcp_getstack
Getstack
replaymcp_inspectelement
Inspectelement
replaymcp_listsources
Listsources
replaymcp_localstorage
Localstorage
replaymcp_logpoint
Logpoint
replaymcp_networkrequest
Networkrequest
replaymcp_playwrightsteps
Playwrightsteps
replaymcp_profilegraph
Profilegraph
replaymcp_profilestatements
Profilestatements
replaymcp_reactcomponenttree
Reactcomponenttree
replaymcp_reactexception
Reactexception
replaymcp_reactperformanceinsights
Reactperformanceinsights
replaymcp_reactrenders
Reactrenders
replaymcp_readsource
Readsource
replaymcp_recordingoverview
Recordingoverview
replaymcp_reduxactions
Reduxactions
replaymcp_screenshot
Screenshot
replaymcp_searchsources
Searchsources
replaymcp_tanstackqueries
Tanstackqueries
replaymcp_uncaughtexception
Uncaughtexception
replaymcp_userinteractions
Userinteractions
replaymcp_warmrecording
Warmrecording
replaymcp_websocketmessages
Websocketmessages

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Replay tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["replaymcp"], toolNames: [
    "replaymcp_recordingoverview",
    "replaymcp_uncaughtexception",
    "replaymcp_networkrequest"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Give me an overview of this recording, then show its uncaught exceptions and failed network requests" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["replaymcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Give me an overview of this recording, then show its uncaught exceptions and failed network requests" }],
  tools,
});

// Execute the tool call with the user's vaulted Replay OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["replaymcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Give me an overview of this recording, then show its uncaught exceptions and failed network requests" }],
  tools,
});

// Tool call runs with the user's vaulted Replay OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["replaymcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "debugging_agent",
  model: "gemini-2.5-pro",
  instruction: "Replay tools scoped to this user",
  tools,
});

await agent.run("Give me an overview of this recording, then show its uncaught exceptions and failed network requests");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Replay MCP tool. Click to copy, paste into your agent, done.
Recording overview
Copy the prompt
Copied
Give me an overview of this Replay recording.
Copy the prompt
Copied
Show the uncaught exceptions in this recording.
Copy the prompt
Copied
Show the console errors in this recording.
Network and state
Copy the prompt
Copied
Summarize the network requests in this recording.
Copy the prompt
Copied
Show the Redux actions dispatched in this recording.
Copy the prompt
Copied
List the TanStack Query cache events.
React and code
Copy the prompt
Copied
Which React components rendered most in this recording?
Copy the prompt
Copied
Get the call stack at this execution point.
Copy the prompt
Copied
Evaluate this expression at the point of the error.
SEE HOW AUTH WORKS
Each user signs in to Replay once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Replay MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Replay MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Replay MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Replay MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Test other agents
See the same per-user auth pattern across other developer tools connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Replay token looks fine in a demo. In production every recording analysis looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Replay today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Replay as the user or through a shared service account?
As the user. Each user signs in to Replay once, and Scalekit stores and refreshes their tokens. Audit logs attribute every recording analysis to that user, not a shared service account.
Where is the Replay OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Replay?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the overview, console, and network tools without replaymcp_evaluate. All 32 tools are read-only, and Scalekit also enforces scope checks before every API call.
What happens when a user revokes Replay access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent change my recordings?
No. All 32 tools are read-only. They analyze a recording: overview, console and network activity, React renders, source code, and the application state at a code execution point.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""replaymcp"": {
""url"": ""https://mcp.scalekit.com/replaymcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.replaymcp]
url = ""https://mcp.scalekit.com/replaymcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""replaymcp"": {
""url"": ""https://mcp.scalekit.com/replaymcp"",
""type"": ""http""
}
}
}