MCP Debug Recorder
mcp-debug-recorder
mcp-debug-recorder는 간단한 질문에 빠르게 답해줍니다: 이 문제를 이전에 해결한 적이 있는가?
이 도구는 디버그 세션, 터미널 명령어, 실패한 시도 및 성공적인 수정 사항을 로컬 SQLite 데이터베이스에 기록하여 MCP 클라이언트가 자연어로 자신의 디버깅 기록을 조회할 수 있도록 합니다.
빠른 시작
npx mcp-debug-recorder기본적으로 데이터는 ~/.mcp-debug-recorder/sessions.db에 저장됩니다.
아키텍처
src/
├── db.ts - openDb(), createTestDb(), versioned MIGRATIONS[]
├── store.ts - Store class with dependency-injected SQLite access
├── search.ts - FTS5 + Fuse.js hybrid search
├── tools/ - MCP tool handlers grouped by session/search/admin concerns
├── types.ts - Zod schemas and TypeScript types
├── mcp.ts - MCP server wiring + tool registration
├── server-http.ts - Streamable HTTP transport
├── logging.ts - Structured logging with secret redaction
└── version.ts - Package version helper스키마 버전 관리
데이터베이스 스키마는 PRAGMA user_version을 통해 버전이 관리됩니다. 마이그레이션은 시작 시 자동으로 실행되므로 업그레이드 시 수동 SQL 작업이 필요하지 않습니다.
사용자 지정 데이터베이스 경로 추가
DEBUG_RECORDER_DB=/path/to/custom.db npx mcp-debug-recorder구성
환경 변수
DEBUG_RECORDER_DB: SQLite 데이터베이스 경로 재정의PORT: 스트리밍 HTTP 모드를 위한 HTTP 서버 포트 재정의LOG_LEVEL: 최소 구조화된 로그 레벨 (debug,info,warn,error)FUZZY_THRESHOLD: 순위 재조정(reranking) 시 사용되는 Fuse.js 임계값 재정의
사용 가능한 도구
start_debug_session: 새로운 이슈 추적 시작add_fix: 실패했거나 성공한 수정 시도 기록record_command: 터미널 명령어와 그 출력 저장close_session: 세션을 해결됨 또는 포기됨으로 표시update_session: 제목, 설명 또는 태그 편집delete_session: 명시적 확인을 통해 세션을 영구적으로 삭제search_sessions: FTS5 + 퍼지 순위 재조정을 사용하여 과거 세션 검색find_similar_errors: 이전에 유사한 오류를 본 적이 있는지 확인get_session: 전체 세션 세부 정보 가져오기get_session_context: AI가 이해하기 쉬운 세션 요약 가져오기list_sessions: 필터를 사용하여 세션 탐색get_stats: 디버그 기록 요약export_sessions: 백업 또는 마이그레이션을 위해 로컬 기록 내보내기import_sessions: 이전에 내보낸 JSON 페이로드 가져오기
클라이언트 설정
Claude Desktop
{
"mcpServers": {
"mcp-debug-recorder": {
"command": "npx",
"args": ["mcp-debug-recorder"]
}
}
}VS Code / GitHub Copilot
.vscode/mcp.json을 생성하거나 업데이트하세요:
{
"servers": {
"mcp-debug-recorder": {
"type": "stdio",
"command": "npx",
"args": ["mcp-debug-recorder"]
}
}
}Codex CLI
codex mcp add mcp-debug-recorder -- npx mcp-debug-recorder
codex mcp listGemini CLI
gemini mcp add mcp-debug-recorder npx mcp-debug-recorder
gemini mcp listAntigravity
antigravity --add-mcp "{\"name\":\"mcp-debug-recorder\",\"command\":\"npx\",\"args\":[\"mcp-debug-recorder\"]}"실제 사용 예시
이 문제를 이전에 본 적이 있는가?
"
TypeError: Cannot read properties of undefined오류가 발생하는데, 이전에 본 적이 있나요?"
현재 오류 텍스트로 find_similar_errors를 호출한 다음, get_session_context로 가장 일치하는 항목을 검사하세요.
활성 인시던트 기록
start_debug_session호출record_command로 터미널 명령어 추가add_fix로 각 수정 시도 추가제목이나 메모가 명확해지면
update_session사용close_session으로 세션 종료
로컬 디버그 기록 백업
format: "json"으로export_sessions호출반환된 JSON을 선호하는 백업 시스템에 저장
나중에
import_sessions로 복원
데이터 저장소
기본 경로:
~/.mcp-debug-recorder/sessions.dbbetter-sqlite3를 사용한 휴대용 SQLite 저장소대규모 기록을 위한 FTS5 기반 검색 인덱스
외부 데이터베이스 서버 불필요
참고:
better-sqlite3는 네이티브 애드온을 사용합니다. 바인딩 오류가 발생하면 사용 중인 Node 버전에 맞춰npm rebuild better-sqlite3를 실행하세요.
HTTP 전송
이 패키지는 스트리밍 HTTP도 지원합니다:
npm run start:http유용한 경로:
GET /healthGET /versionMCP 엔드포인트:
POST/GET/DELETE /mcp
개발
npm ci
npm run lint
npm test
npm run build
npm run test:e2e
npm run docs:api릴리스 검증:
npm run format:check
npm run test:coverage
npm run prepublishOnly추가 프로젝트 문서:
This server cannot be installed
Maintenance
Related MCP Connectors
Knowledge accumulation for AI coding agents. Records decisions, problems, and insights as context.
Shared debugging memory for AI coding agents
Shared memory for coding agents. Stop re-explaining your codebase every session.
Persistent cross-session memory shared by Codex, Claude Code, ChatGPT, and other AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/oaslananka/mcp-debug-recorder'
If you have feedback or need assistance with the MCP directory API, please join our Discord server