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.
npx agentmods add instructions/tosssssy/mcp-server-debug-thinking/claude-mdgit clone --depth 1 https://github.com/tosssssy/mcp-server-debug-thinkingWrote 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.
[](https://agentmods.dev/instructions/tosssssy/mcp-server-debug-thinking/claude-md)<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>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.
| Model | Per session | Once 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 |
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.
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つのアクション付き)
-
CREATE: 知識グラフにノードを追加
- 親子関係に基づいて自動的にエッジを作成
- すべてのノードタイプをサポート: problem、hypothesis、experiment、observation、learning、solution
-
CONNECT: ノード間に明示的な関係を作成
- 関係タイプをサポート: decomposes、hypothesizes、tests、produces、learns、contradicts、supports、solves
-
QUERY: グラフを検索・分析
- クエリタイプ: similar-problems、successful-patterns、learning-path、graph-visualizationなど
主要な設計パターン
- グラフベースの知識表現: すべてのデバッグ知識は有向グラフとして保存
- 自動エッジ作成: 親子関係は適切なエッジを自動的に作成
- パターン認識: セッション間で成功したデバッグパターンを識別
- TypeScriptファースト: 包括的な型定義により型安全性を確保
- ファイルシステム永続化: グラフデータは
.debug-thinking-mcp/ディレクトリに保存 - モジュラーアーキテクチャ: グラフ操作、ストレージ、MCPインターフェース間の明確な分離
エントリーポイント
メインエントリーポイントはsrc/index.tsで、以下を行います:
- stdioトランスポートを使用してMCPサーバーをセットアップ
- アクションをGraphServiceメソッドにルーティング
- MCP準拠の形式でレスポンスを処理
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.
- 4d ago First seen · 83 lines · 1,173 tokens per session scan A 4d1d3c65f278
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.
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).
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.
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.
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.
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).
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.