inspector.restDocs

inspector.rest documentation

Every request, explained. Record the HTTP calls your services make, including each retry, header and body, and find out what happened.

Terminal
npm install @inspector-rest/sdk
http.js
import axios from 'axios';
import { create_inspector } from '@inspector-rest/sdk';
import instrument_axios from '@inspector-rest/sdk/axios';

const inspector = create_inspector({
  server_key: process.env.INSPECTOR_REST_KEY,
  service: 'billing',
});
instrument_axios(axios, inspector);

Set INSPECTOR_REST_KEY to the ingest key of an environment. Your first request shows up in the app a few seconds later.

What is inspector.rest?

inspector.rest records the outgoing HTTP requests of your services: the request, the response, every retry, headers, bodies, timings and errors. You search and inspect them in the web app, or you let an AI agent do it through a read-only MCP server.

1Install an SDK

Add the Node.js or PHP SDK to your service and instrument your HTTP client (axios, Guzzle or another client). It stays out of the way of your requests.

Quickstart

2Inspect requests

Open the app to filter, search bodies with text or regex, follow requests live and see every attempt as a waterfall.

The app

3Ask your agent

Connect Claude, Claude Code, Cursor, VS Code or any MCP client. Agents summarize first and read only what they need.

MCP for AI agents

Give your agent the full story.

The MCP server is read-only. Sign in with OAuth 2.1 or use a personal token, then ask about your traffic.

Server URLhttps://mcp.inspector.rest/mcp
Connect an AI agent

Still stuck? Read Troubleshooting or email [email protected].