Reversee MCP tools
Reversee exposes 36 Model Context Protocol tools so AI agents — Claude Code, Cursor, or any MCP client — can inspect and control its reverse proxy: search and summarize captured traffic, replay requests, mock endpoints and reroute paths, install interceptors for fault injection, and decode JWTs and gRPC. Read-only by default; the proxy-changing tools stay locked until you opt in.
Setup
Launch the Reversee app, then register the server. No config files, no API keys.
Claude Code
claude mcp add reversee -- npx -y reversee-mcp
Cursor — ~/.cursor/mcp.json
{
"mcpServers": {
"reversee": { "command": "npx", "args": ["-y", "reversee-mcp"] }
}
}
How access works
The bridge talks to the app over a token-authenticated local socket (Unix domain socket / Windows named pipe, mode 0600) — never a TCP port. Only your user account can reach it.
--allow-mcp-control). When the app isn't running, every call returns a
clear “launch Reversee” message.
Every captured request has a stable, monotonic trafficId — assigned once,
never reused, never reset (not on clear, not on a proxy restart). It's the durable
handle you pass to get_traffic_entry and replay_request.
The 36 tools
Descriptions below are verbatim — this is exactly what an agent reads in the
tools/list response. The app owns this catalog and serves it to the bridge
at startup, so tools added in an update reach agents automatically.
Orientation & status
Current Reversee state: app version, whether the proxy is running, listen/destination config, traffic and breakpoint counts.
No parameters.
Run setup checks: destination configured, ports valid, root certificate present and not expired, upstream client certificate readable, proxy process state.
No parameters.
Replace the root CA that signs the HTTPS listener certificate (use when validate_setup reports it expired). Clients must trust the new root before HTTPS through Reversee works again. Returns the new validity.
No parameters.
Export diagnostics: versions, platform, full settings, proxy state, traffic count, breakpoints, log location.
No parameters.
Tabs
Each tab is an independent proxy session with its own port, destination, rules,
scripts, breakpoints and traffic. Tab-scoped tools take an optional
tab (id or name) and default to the tab on screen; their responses
include tab: {id, name}.
List the open tabs: each tab's stable id (t1, t2, …),
unique name, running state, port, destination, request/in-flight/held counts, and
which tab is active.
No parameters.
Open a new tab, so an agent can debug something without changing the tab the user is
on. It opens stopped and in the background unless activate is true; the
listen port defaults to the next one no other tab uses. Returns the tab summary,
including its id.
name (unique, optional), activate (boolean), and any
per-tab setting from update_config (dest,
destProtocol, destPort, listenProtocol,
listenPort, captureAll, …).
Rename a tab. Names are unique (case-insensitive); an empty name restores the automatic name from the destination.
name (string, required), tab (id or name; default the
active tab).
Close a tab: its proxy stops, its held requests are dropped and its traffic is discarded. Closing the last tab leaves one empty tab.
tab (id preferred, or name; required).
Configuration & proxy control
Full Reversee proxy configuration (listen/destination, interceptors, rewrite flags).
No parameters.
Update Reversee configuration. Accepts a partial settings object; unknown keys and invalid values are ignored. Keys: listenProtocol/destProtocol (http|https), listenPort/destPort (1-65535), dest (host), interceptRequest/interceptResponse (bool), requestInterceptor/responseInterceptor (JS source), rewriteRedirects/rewriteHost/allowSelfSignedUpstream (bool). Requires "Allow MCP to Control the Proxy" enabled in the app. Returns the resulting config.
patch (object, required) — partial settings object.
Start the reverse proxy with the current configuration. Requires control to be enabled in the app.
No parameters.
Stop the reverse proxy. Requires control to be enabled in the app.
No parameters.
Restart the proxy worker process (also recovers from a wedged interceptor). Requires control to be enabled in the app.
No parameters.
Inspecting traffic
List captured requests (newest last): method, URL, status, content type, total time. Bodies are elided; use get_traffic_entry for full details.
offset (integer ≥ 0), limit (integer 1–200, default 50).
Filter captured requests server-side so you fetch only what matters (avoids dumping everything). All filters combine with AND. Bodies are elided in results; use get_traffic_entry for full detail.
text, method, status (e.g. 404,
"2xx", ">=400"), urlContains,
urlRegex, contentType, header,
bodyContains, minTotalMs, hasError,
offset, limit.
Aggregate view of all captured traffic: counts by status class and method, content types, top hosts, the error requests, and the slowest requests. Use this to orient before drilling in.
slowest (integer 1–50, default 5).
Full details of one captured request: headers, bodies, timings, a copy-pasteable curl command, the upstream target, and any decoded JWTs found in its Authorization header or cookies.
trafficId (integer, required).
Decode a JWT (header + claims, with exp/iat parsed). Inspection only — the signature is not verified.
token (string, required) — a leading Bearer is fine.
Diff two captured exchanges (A vs B) to answer "why did this call work and that one fail": request line, status, request and response headers (by name, case-insensitive) and bodies. JSON bodies are pretty-printed with sorted keys before diffing, so key order does not count; binary bodies are compared by size and fingerprint. Returns a plain-language summary of the differences first, then per-field diffs and a unified diff of each body that differs. Read-only.
trafficIdA, trafficIdB (integers, required);
ignoreHeaders (string[]); includeUnchanged (boolean).
Acting on traffic
Re-send a captured request to its upstream, optionally with edits — the agent way to test a hypothesis ("what if this header/body/status were different?"). Records a new traffic entry and returns it. Requires control to be enabled in the app.
trafficId (integer, required), overrides (object:
method, url, headers — a null value deletes a
header, body).
Install (or clear/toggle) a request or response interceptor — arbitrary JavaScript
that rewrites traffic on the fly, for mocking, fault injection, or header rewriting.
The code runs once per request with a one-second budget. Request interceptors can
mutate
requestParams (host, path, method, port, headers, body). Response
interceptors can mutate responseParams (statusCode, headers, body) and
read requestParams. Example (force a 500):
responseParams.statusCode = 500; responseParams.body =
"{\"error\":\"injected\"}";. Changes apply to the running proxy at once, no restart needed. Requires control
to be enabled in the app.
kind ("request" | "response", required),
code (string — omit to leave unchanged),
enabled (boolean).
Dry-run interceptor JavaScript against a captured exchange without sending or saving
anything. Returns the exchange after the script ran, a plain list of what it
changed, any error it threw, and its console output. Use it to check a script before
installing it with set_interceptor. Requires control to be enabled in
the app (it runs code).
kind ("request" | "response", required),
trafficId (number, required), code (string — omit to try
the saved interceptor).
Mocks & routes
List the mock and route rules in match order, each with its id and a plain-language summary. The first enabled mock that matches answers the request; otherwise the first enabled route picks the upstream; otherwise the default destination is used.
No parameters.
Answer matching requests with a canned response, without contacting the upstream.
Fake an endpoint, force an error status, or add latency. Takes effect immediately,
also while the proxy runs. Example:
{"path": "/api/flags", "body": {"beta": true}}.
path (string, required), pathMatch ("exact"
default | "prefix" | "contains" | "regex"),
method, status (default 200), body (string,
or object/array sent as JSON), headers, delayMs,
name, priority ("first" default |
"last").
Send matching requests to a different upstream than the default destination, for
example one path to a local service while the rest goes to staging. The request path
is forwarded unchanged. Takes effect immediately. Example:
{"path": "/api/v2", "target": "http://localhost:3001"}.
target (URL, required), path,
pathMatch ("prefix" default | "exact" |
"contains" | "regex"), host,
hostMatch ("exact" default | "regex"),
name, priority. Give path and/or
host.
Enable or disable one mock or route by id, without deleting it.
id (string, required), enabled (boolean, required).
Delete one mock or route by id, or every mock and route with
{"all": true}.
id (string) or all (boolean).
Record and replay: turn captured traffic into mocks, so the same responses are served again with no upstream (run a frontend offline, or a test against fixed responses). One mock per method + URL, latest response wins; binary bodies are kept as base64. A saved mock for the same request is updated in place. Skipped entries are reported with a reason. Takes effect immediately.
trafficIds (integer array) and/or the
search_traffic filters (none = all captured traffic),
ignoreQuery (boolean, default false), enabled (boolean,
default true).
Breakpoints & gRPC
List the configured breakpoint rules (URL regex + HTTP methods + phase: request or response).
No parameters.
Replace the breakpoint rules. A request-phase rule holds matching requests before they are forwarded; a response-phase rule holds the upstream response before the client sees it. Held exchanges wait until resumed, so set rules only when you will resume them. Pass an empty array to clear.
rules (array, required) of path (regex, required),
methods (string[]), phase ("request" |
"response").
List the requests/responses currently held at a breakpoint: id, phase, method, URL, headers, body, and (for a held response) status code.
No parameters.
Resume a held request or response, optionally edited first. For a held request you can change url, method, headers and body before it is forwarded; for a held response, statusCode, headers and body before the client receives it.
id (integer, required), edits (object: url,
method, statusCode, headers,
body).
Write captured traffic to a HAR 1.2 file (for sharing, diffing, or loading into browser devtools). Accepts the same filters as search_traffic to export a subset.
path (absolute file path, required), plus any
search_traffic filter.
List saved protobuf specs used to decode gRPC traffic (id, name, source) plus any compile errors.
No parameters.
Save a protobuf spec for decoding gRPC traffic. Provide raw .proto text (source "proto") or a base64-encoded FileDescriptorSet (source "descriptor"). Returns the updated spec list and compile errors. Requires "Allow MCP to Control the Proxy" enabled in the app.
name (string, required), source ("proto" |
"descriptor", required), content (string, required).
Delete a saved protobuf spec by id. Requires "Allow MCP to Control the Proxy" enabled in the app.
id (string, required).
Agent workflows
A few end-to-end patterns these tools were designed for.
summarize_session to orient → search_traffic with
hasError: true or status: ">=400" to find failures →
get_traffic_entry on the interesting ids for full detail.
Find the failing request, then replay_request with a changed
header/body/url and compare the new entry — no client changes needed.
set_interceptor (response) to force a status or body,
drive the client, then clear it with enabled: false.
get_traffic_entry surfaces decoded JWTs inline;
decode_jwt inspects a token in hand. Load a schema with
add_proto_spec and gRPC messages come back as JSON.
Prefer no UI? reversee --headless --allow-mcp-control runs the proxy + MCP
socket with no window, for CI- or agent-driven automation. See the
headless docs.