Features

AI tools (MCP)

Connect Claude Code, Cursor, VS Code and other AI tools to PeekInside over the Model Context Protocol. They read your app's errors, requests, queries, logs and jobs, and fix problems with you, on your machine and from PeekInside Cloud.

PeekInside comes with an MCP server: npx peekinside mcp. Connect it to Claude Code, Cursor, VS Code, Windsurf, Claude Desktop, Codex, or any tool that speaks the Model Context Protocol, and your AI assistant reads what your app did. It sees every error with its stack trace and your source lines, and the request behind each one. It also sees the database queries (with N+1 patterns flagged), outgoing HTTP calls, logs, jobs, and memory.

Ask fix the errors from the last hour, and it finds them and reads your code at the lines that threw. Then it makes the fix, replays the request to check it, and marks the error resolved.

It works with the local dashboard, free, and with PeekInside Cloud on Team and Business, where records stay end-to-end encrypted: they're decrypted on your computer.

Local dashboard#

In your project's folder, run the line for your AI tool:

# Claude Code
claude mcp add peekinside -- npx -y peekinside@latest mcp

Other tools take a JSON file. For Cursor, .cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project):

{
  "mcpServers": {
    "peekinside": {
      "command": "npx",
      "args": ["-y", "peekinside@latest", "mcp"]
    }
  }
}

VS Code reads .vscode/mcp.json, with servers in place of mcpServers and "type": "stdio" on the server. Windsurf reads the same JSON as Cursor from ~/.codeium/windsurf/mcp_config.json, and Claude Desktop from its config file (Settings → Developer → Edit Config). Codex reads ~/.codex/config.toml:

[mcp_servers.peekinside]
command = "npx"
args = ["-y", "peekinside@latest", "mcp", "--project", "orders-api"]

The dashboard's Projects page shows each of these, ready to copy, under Connect your AI tools.

The command starts the local dashboard if it isn't running, and reads the project of the folder your AI tool runs in. A tool that runs it elsewhere (Claude Desktop, a global config) names the project with --project and the project's name or id from the Projects page. When it can't tell, the tools say which projects there are, and your assistant picks one.

Tools that connect to MCP servers by URL can use http://localhost:7335/mcp while the dashboard runs. Add ?project=<id> to name the project.

PeekInside Cloud#

MCP keys for Cloud projects come with Team ($59 a month) and Business ($99). The project's MCP page, in the sidebar, has this guide and the project's keys.

  1. Open the project, then Settings, and under AI tools (MCP) name a key, such as Claude Code on my laptop, and choose Create MCP key.
  2. Copy the key: it's shown once. The setup for each tool is under it, with the key filled in. For Claude Code:
claude mcp add peekinside -e PEEKINSIDE_MCP_KEY=pim1.… -- npx -y peekinside@latest mcp

Keep the key out of git: it reads the project's records. Claude Code keeps it on your machine, VS Code can ask for it once and store it safely, and for Cursor, Windsurf and Codex, your user-level config file keeps it out of the project.

Your data stays encrypted#

Your servers encrypt what PeekInside records before it leaves them, and PeekInside Cloud stores it encrypted (see Security). An MCP key keeps it that way:

  • The key holds a secret that never reaches PeekInside. When you made the key, your browser derived two values from it: a proof, whose hash PeekInside stores to check the key, and a key that wraps the project's private key.
  • npx peekinside mcp on your computer unwraps the project key, fetches the encrypted records, and decrypts them there.
  • PeekInside stores the wrapped key, but without the secret it opens nothing.

npx peekinside mcp takes its settings (the key, PeekInside's address) from your AI tool's configuration only, never from a project's .env: a repository you open can't send your key anywhere else.

Your AI tool sends what it reads to its model, like the code and files you share with it. Credentials in what the tools return are masked: see Tools.

What a key can do#

  • It reads what its member's role reads (requests, exceptions, jobs, logs, the runtime), checked at every request. When the role resolves errors, it can too. It can't change or delete anything else.
  • Each member makes and revokes their own keys. Members who manage API keys see and revoke everyone's.
  • A key stops working when it's revoked, when its member leaves the organization, and when the organization's encryption keys are reset. While the organization's plan doesn't include MCP (it moved to Hobby or Pro, or Cloud is paused), keys stay but read nothing.
  • A member can have up to 20 keys per project, and a key makes up to 1,200 requests a minute.

MCP keys come with Team and Business. The local dashboard's MCP needs no plan.

Tools#

Tool What it does Local Cloud
list_projects The projects it can read ✓ ✓
list_errors Errors grouped into issues: how often, when, where in your code, resolved or not ✓ ✓
get_error One error: the stack trace with your source lines, its causes, and the request behind it with what that request did first ✓ ✓
resolve_error Marks an issue resolved, or reopens it ✓ ✓
list_requests Requests by status, path, duration, and what they had (an exception, an N+1 pattern, a slow query) ✓ ✓
get_request One request: headers, bodies, the response, and its timeline (queries, HTTP calls, logs) ✓ ✓
replay_request Sends a recorded request to your running app again, to check a fix ✓
list_queries Database statements across requests: N+1 patterns, slow and duplicate queries, with the code that runs them ✓ ✓
list_logs Log lines by level and text, or those of one request or job run ✓ ✓
list_jobs, get_job_run Job runs, failures and schedules; one run's data and timeline ✓ ✓
get_runtime Memory and whether it keeps growing, CPU, the event loop, and what holds the heap ✓ ✓
list_dumps, list_emails Values your app dumped, and emails it sent ✓

Credentials are masked in what the tools return: authorization headers and cookies, values under names such as password, token or api_key in bodies, forms and query strings, and tokens and password hashes in log lines and messages. replay_request sends a request again with its original credentials, so it's marked for AI tools to ask before running it.

Things to ask#

  • Fix the errors from the last hour.
  • Why does POST /checkout return a 500? Check the fix by replaying it.
  • Which endpoints have N+1 queries? Fix the worst one.
  • Is memory growing anywhere, and what holds it?
  • Did a job fail today? Why?

The AI agent in PeekInside Cloud answers questions like these in the dashboard. MCP brings the same records to the AI tool in your editor, where it can change the code.

Troubleshooting#

  • Unknown command: mcp. The version of PeekInside that ran is older than 1.5. Use peekinside@latest as above, or update the package in your project.
  • On Windows, some tools need npx run through cmd: "command": "cmd", "args": ["/c", "npx", "-y", "peekinside@latest", "mcp"].
  • Several projects use PeekInside. Add --project with the project's name or id.
  • PeekInside Cloud doesn't accept this MCP key. It was revoked, its member left the organization, or the organization's encryption keys were reset. Make a new one.