debug-recorder-mcp: a local MCP server for debugging memory

debug-recorder-mcp: a local MCP server for debugging memory

debug-recorder-mcp•byoaslananka

A local-first MCP server that records debugging incidents, commands, fixes, and diagnostics in a searchable SQLite database.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Stores each debugging session, error, command, attempted fix, working fix, tags, and context in a local SQLite database.
  • •Combines SQLite FTS5 with fuzzy reranking, presets, pagination, related-session groups, and optional Markdown exports for search.
  • •Provides MCP-native tools via a stdio server for desktop MCP clients plus optional Streamable HTTP mode.
  • •Offers a get_diagnostics tool returning redacted runtime, schema, package, and health signals.

BEST FOR

  • •Asking an MCP client whether a similar error has appeared before.
  • •Recording an active incident by logging commands and attempted fixes over a session.
  • •Backing up or migrating debugging history via JSON export and import.

ABOUT DEBUG-RECORDER-MCP

debug-recorder-mcp: a local MCP server for debugging memory is cataloged as an MCP server attributed to oaslananka. A local-first MCP server that records debugging incidents, commands, fixes, and diagnostics in a searchable SQLite database. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for debug-recorder-mcp: a local MCP server for debugging memory are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Where is debugging history stored by default?

In a local SQLite database at ~/.debug-recorder-mcp/sessions.db by default, and the path can be overridden with DEBUG_RECORDER_DB.

Does it support redacting sensitive data before storage?

Yes, it offers optional before-store redaction in addition to diagnostics redaction.

Can it run over HTTP in addition to stdio?

Yes, it supports local Streamable HTTP and binds to 127.0.0.1 by default with Host and Origin validation.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 527d141e1aa3 · 采集于 2026-11-13 10:58:43 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

debug-recorder-mcp

Local-first debug memory for MCP clients.
Record incidents, commands, failed attempts, successful fixes, diagnostics, and searchable debugging history in SQLite.

npm version npm downloads CI Release Docs CodeQL License: MIT Sponsor

Published docs · Usage · Client recipes · Security · Release flow

Buy me a coffee

Why this exists

Debugging knowledge usually disappears into chat windows, terminals, and commit history. debug-recorder-mcp gives MCP-enabled agents and IDEs a durable local memory so they can answer:

“Have I fixed this before?”

It stores each debugging session, error, command, attempted fix, working fix, tags, and context in a local SQLite database. Search combines SQLite FTS5 with fuzzy reranking, reusable presets, pagination metadata, related-session groups, and optional Markdown exports.

Highlights

  • Local-first storage: no external database or hosted service required.
  • MCP-native tools: stdio server for desktop MCP clients plus optional Streamable HTTP mode.
  • Search that survives messy errors: FTS5 + Fuse.js reranking for stack traces, typos, Unicode, and punctuation-heavy logs.
  • Reusable search presets: save common filters and limits for recurring incident patterns.
  • Safe operations: redaction-before-store option, explicit destructive confirmations, local HTTP host/origin/auth/body-limit hardening.
  • Diagnostics: get_diagnostics returns redacted runtime, schema, package, and health signals for support without leaking raw paths, tokens, stack traces, or command output.
  • Release-grade packaging: audit, coverage, fuzzing, package-size gates, SBOM/VEX policy, install-script approvals, provenance-ready release workflow, and MCP Registry readiness checks.

Quick start

Requires Node.js 22 LTS or 24 LTS and npm 10+.

npx debug-recorder-mcp

Default database path:

~/.debug-recorder-mcp/sessions.db

Use a custom database path:

DEBUG_RECORDER_DB=/path/to/custom.db npx debug-recorder-mcp

MCP client setup

Desktop MCP clients

{
  "mcpServers": {
    "debug-recorder-mcp": {
      "command": "npx",
      "args": ["debug-recorder-mcp"]
    }
  }
}

VS Code / GitHub Copilot

Create or update .vscode/mcp.json:

{
  "servers": {
    "debug-recorder-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["debug-recorder-mcp"]
    }
  }
}

More setup examples are in Client setup recipes.

Available MCP tools

ToolPurpose
start_debug_sessionStart tracking a new issue or incident.
add_fixRecord a failed or successful fix attempt.
record_commandSave a command, output, exit code, and session link.
close_sessionMark a session as resolved or abandoned.
update_sessionEdit title, description, or tags.
delete_sessionPermanently delete a session with explicit confirmation.
search_sessionsSearch history with FTS5, fuzzy reranking, pagination, related groups, and optional Markdown export.
save_search_presetStore a reusable query, filters, and limit.
list_search_presetsList saved search presets.
remove_search_presetRemove a saved search preset by name.
find_similar_errorsAsk whether a similar error has appeared before.
get_sessionFetch full details, fixes, and commands.
get_session_contextGet an AI-friendly session summary.
list_sessionsBrowse sessions with filters.
get_statsSummarize debug history.
get_diagnosticsReturn a redacted operational diagnostics snapshot.
export_sessionsExport a full JSON backup or a lightweight summary inventory.
import_sessionsImport a validated export payload.

Real usage examples

Have I seen this before?

Ask your MCP client:

I am getting TypeError: Cannot read properties of undefined. Have I seen this before?

The client can call find_similar_errors, then inspect the best match with get_session_context.

Record an active incident

  1. Call start_debug_session with the problem title and error details.
  2. Add terminal commands with record_command.
  3. Add each attempted fix with add_fix.
  4. Improve title, notes, or tags with update_session.
  5. Close the incident with close_session.

Back up or migrate history

  1. Call export_sessions with format: "json". The response is marked with format: "json" and contains the full sessions, fixes, and commands arrays.
  2. Store the returned object in your backup system.
  3. Restore later by passing that object as import_sessions.payload.

For a lightweight inventory, call export_sessions with format: "summary". Summary responses are marked with format: "summary", include aggregate stats and abbreviated session rows, and are not restore payloads.

HTTP transport

The package also supports local Streamable HTTP:

npm run start:http

Useful routes:

  • GET /health
  • GET /version
  • MCP endpoint: POST /mcp

HTTP mode is local-first by default. It binds to 127.0.0.1, creates an isolated stateless MCP server/transport per request, validates Host, validates browser Origin when present, and enforces a JSON body-size limit before the MCP transport receives the request.

For deliberate non-loopback exposure, set all of these:

HOST=0.0.0.0
DEBUG_RECORDER_REMOTE_HTTP=true
DEBUG_RECORDER_HTTP_TOKEN=replace-with-a-long-random-token
DEBUG_RECORDER_ALLOWED_HOSTS=debug-recorder.example.com
DEBUG_RECORDER_ALLOWED_ORIGINS=https://debug-recorder.example.com
npm run start:http

Wildcard origins are rejected for remote mode. The static bearer token is private/shared-secret mode: every caller shares one identity, one authority level, and one SQLite dataset. It is suitable for loopback, an encrypted trusted network, or a private authenticating proxy, but it is not OAuth and does not provide per-user scopes or revocation.

Public multi-user HTTP is not supported by the current release. The accepted target architecture uses an external authorization server and MCP-aware gateway with protected-resource discovery, audience-bound tokens, scopes, rate limits, audit events, and subject-aware storage. See Public HTTP authorization and ADR-0006.

Configuration

VariableDescription
DEBUG_RECORDER_DBOverride the SQLite database path.
HOSTHTTP bind host. Defaults to 127.0.0.1.
PORTHTTP port. Defaults to 3000.
DEBUG_RECORDER_HTTP_TOKENPrivate/shared-secret token; required for non-loopback HTTP, not OAuth.
DEBUG_RECORDER_ALLOWED_HOSTSComma-separated HTTP Host allowlist.
DEBUG_RECORDER_ALLOWED_ORIGINSComma-separated browser Origin allowlist.
DEBUG_RECORDER_MAX_BODY_BYTESHTTP JSON body limit. Defaults to 1048576.
DEBUG_RECORDER_REMOTE_HTTPEnable non-loopback HTTP with true, 1, or yes.
DEBUG_RECORDER_REDACT_BEFORE_STOREEnable pre-store redaction with true, 1, or yes.
LOG_LEVELMinimum structured log level: debug, info, warn, or error.
FUZZY_THRESHOLDOverride the Fuse.js reranking threshold.

Boolean configuration also accepts false, 0, and no; values are case-insensitive, whitespace is ignored, and unsupported values fail fast. Diagnostics reports the resolved effective values rather than re-reading changed environment strings.

Data and privacy

  • Database: local SQLite via better-sqlite3.
  • Search index: SQLite FTS5 virtual table.
  • Default path: ~/.debug-recorder-mcp/sessions.db.
  • Redaction: optional before-store redaction plus diagnostics redaction.
  • Deletion: destructive operations require explicit confirmation.
  • Maintenance: see Storage retention and maintenance.

better-sqlite3 uses a native addon. If Node versions change and bindings fail, run npm rebuild better-sqlite3.

Docker

docker build -t debug-recorder-mcp:local .
docker run --rm -p 127.0.0.1:3000:3000 \
  -e HOST=0.0.0.0 \
  -e DEBUG_RECORDER_REMOTE_HTTP=true \
  -e DEBUG_RECORDER_HTTP_TOKEN=replace-with-a-long-random-token \
  -e DEBUG_RECORDER_ALLOWED_HOSTS=127.0.0.1:3000,localhost:3000 \
  -e DEBUG_RECORDER_ALLOWED_ORIGINS=http://127.0.0.1:3000,http://localhost:3000 \
  debug-recorder-mcp:local

The image installs with npm ci, preserves reviewed native install scripts, prunes development dependencies, and runs as the non-root node user.

Documentation

Published documentation is generated by npm run docs:site and published to GitHub Pages:

https://oaslananka.github.io/debug-recorder-mcp/

Important docs:

Development

npm ci
npm run format:check
npm run lint
npm run check:dead-code
npm run test:coverage
npm run test:fuzz
npm run build
npm run test:e2e
npm run audit
npm run check:install-scripts
npm pack --dry-run
npm run check:package-size
npm run check:version
npm run check:mcp
npm run check:security-policy
npm run check:sbom
npm run docs:site

Full local gate:

npm run ci:local

Release readiness:

npm run prepublishOnly
npm run check:mcp-registry

Release and npm publishing

The normal release workflow uses Release Please, builds release assets, generates SBOM/checksums, attests the tarball, uploads GitHub Release assets, and publishes to npm with provenance.

For the first npm package creation, use the manual Initial npm Token Publish workflow with repository secret NPM_TOKEN. After the package exists and npm trusted publishing is configured, the regular Release workflow can publish through GitHub OIDC. Details are in Release flow.

License

Released under the MIT License. package.json also declares "license": "MIT", and the npm package includes LICENSE.

Funding

If this project saves you debugging time, support development here:

Funding metadata is available in both .github/FUNDING.yml and package.json.

Agent plugin and runtime configuration

This repository owns the product-level agent plugin, MCP runtime configuration, and product-specific skills for debug-recorder-mcp. The central agent-tools repository should catalog this plugin, but the manifest and workflow instructions live here so they stay synchronized with the actual MCP server package.

FilePurpose
.claude-plugin/plugin.jsonClaude Code-valid product plugin manifest.
.mcp.jsonClaude Code project-local MCP server configuration.
.codex/config.example.tomlCodex CLI MCP configuration example.
.vscode/mcp.example.jsonVS Code / GitHub Copilot workspace MCP configuration example.
opencode.example.jsoncOpenCode project MCP configuration example.
.opencode/skills/OpenCode-native mirrored skill definitions.
docs/agent-runtime-config.mdAgent runtime setup and validation notes.

Validate plugin packaging locally:

claude plugin validate .

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for debug-recorder-mcp: a local MCP server for debugging memory from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/debug-recorder-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools