MCP server setup

Trapr includes an MCP server that gives Ingot, Rex or any MCP client your saved reports, as ready-to-run missions.

The Trapr MCP server speaks MCP over stdio. It serves the reports you downloaded from the extension, which are saved in ~/.trapr/reports. Set TRAPR_REPORTS_DIR to use another folder.

Set it up

  1. In the Trapr repository, run npm run build.
  2. In your MCP client, add a server that runs node with packages/mcp/dist/server.js, or the trapr-mcp command.
  3. Restart the client. It lists the tools below.

The published package name is not final yet, so this site does not show an npx command.

Tools

  • list_reports: saved reports, newest first.
  • get_report: one report as Markdown or JSON.
  • get_network: the redacted network entries, optionally only failed ones.
  • get_mission: a report as a ready-to-run mission with repro steps and the top issue.
  • ingest_event: push an error from another source, such as Sentry or CI.
  • mark_fixed: mark a report fixed, with a note.
  • link_pr: link a pull request to a report.