mcp-server-debug-thinking CLAUDE.md

mcp-server-debug-thinking CLAUDE.md is an instructions file for coding agents from tosssssy/mcp-server-debug-thinking. It costs 1,173 tokens per session, scanned A, original, MIT.

Repository instructions for a graph-based debugging MCP server. The server records problems, hypotheses, experiments, observations, lessons, solutions, and their relationships in JSONL files, a text format with one JSON object per line.

In plain words
What is it for?
Use them when working on this TypeScript debugging server, including its `debug_thinking` tool, graph storage, graph actions, and development commands.
Why use it?
They tell a coding agent how to build, develop, clean, lint, format, and understand the server's debugging data model.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/tosssssy/mcp-server-debug-thinking/claude-md
Clone the repo
git clone --depth 1 https://github.com/tosssssy/mcp-server-debug-thinking

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-server-debug-thinking CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tosssssy/mcp-server-debug-thinking/claude-md.svg)](https://agentmods.dev/instructions/tosssssy/mcp-server-debug-thinking/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/tosssssy/mcp-server-debug-thinking/claude-md"><img src="https://agentmods.dev/badge/instructions/tosssssy/mcp-server-debug-thinking/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,173 This file is loaded in full into every session.
When invoked 1,173 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01173 $0.01173
Opus 5 $0.00587 $0.00587
Sonnet 5 $0.00235 $0.00235
Haiku 4.5 $0.00117 $0.00117

Measured 4d ago against content hash 4d1d3c65f278, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-server-debug-thinking CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

このファイルは、Claude Code (claude.ai/code) がこのリポジトリのコードを扱う際のガイダンスを提供します。

ビルドと開発コマンド

  • ビルド: npm run build - TypeScriptをコンパイルして実行可能ファイルを作成
  • 開発: npm run dev - TypeScriptコンパイラをウォッチモードで実行
  • クリーン: npm run clean - distディレクトリを削除
  • リビルド: npm run rebuild - クリーンとビルドを連続実行
  • リント: npm run lint - TypeScriptファイルでESLintを実行
  • フォーマット: npm run format - Prettierでコードをフォーマット

アーキテクチャ概要

これは問題解決ツリーと仮説-実験-学習サイクルを使用した体系的なデバッグのための、グラフベースのMCP (Model Context Protocol) サーバーです。

コアサービス

  • GraphService (src/services/GraphService.ts): デバッグ知識グラフを管理するメインサービス

    • CREATE、CONNECT、QUERYアクションを処理
    • ノード(問題、仮説、実験、観察、学習、解決策)を管理
    • エッジ(ノード間の関係)を管理
    • パターン認識と検索機能を提供
  • GraphStorage (src/services/GraphStorage.ts): グラフデータの永続化を処理

    • ノードとエッジをJSONL形式で保存
    • グラフメタデータを管理
    • 効率的な読み込みと保存を提供

型システム

  • グラフ型 (src/types/graph.ts):

    • Node: すべてのグラフノードの基本型
    • Edge: ノード間の関係
    • DebugGraph: 完全なグラフ構造
    • 特定のノード型: ProblemNode、HypothesisNode、ExperimentNodeなど
  • アクション型 (src/types/graphActions.ts):

    • CreateAction: ノード作成のパラメータ
    • ConnectAction: エッジ作成のパラメータ
    • QueryAction: グラフ検索のパラメータ
    • 各アクションのレスポンス型

公開されているMCPツール

サーバーは単一のツールを公開しています: debug_thinking (3つのアクション付き)

  1. CREATE: 知識グラフにノードを追加

    • 親子関係に基づいて自動的にエッジを作成
    • すべてのノードタイプをサポート: problem、hypothesis、experiment、observation、learning、solution
  2. CONNECT: ノード間に明示的な関係を作成

    • 関係タイプをサポート: decomposes、hypothesizes、tests、produces、learns、contradicts、supports、solves
  3. QUERY: グラフを検索・分析

    • クエリタイプ: similar-problems、successful-patterns、learning-path、graph-visualizationなど

主要な設計パターン

  • グラフベースの知識表現: すべてのデバッグ知識は有向グラフとして保存
  • 自動エッジ作成: 親子関係は適切なエッジを自動的に作成
  • パターン認識: セッション間で成功したデバッグパターンを識別
  • TypeScriptファースト: 包括的な型定義により型安全性を確保
  • ファイルシステム永続化: グラフデータは.debug-thinking-mcp/ディレクトリに保存
  • モジュラーアーキテクチャ: グラフ操作、ストレージ、MCPインターフェース間の明確な分離

エントリーポイント

メインエントリーポイントはsrc/index.tsで、以下を行います:

  • stdioトランスポートを使用してMCPサーバーをセットアップ
  • アクションをGraphServiceメソッドにルーティング
  • MCP準拠の形式でレスポンスを処理

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 83 lines · 1,173 tokens per session scan A 4d1d3c65f278

Subscribe to this mod's changes

mcp-server-debug-thinking CLAUDE.md is an instructions file published in the GitHub repository tosssssy/mcp-server-debug-thinking (4 stars, last pushed 7mo ago), licensed MIT. It adds 1,173 tokens to every session, about $0.0059 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens