Delve MCP
デルブMCP
Delve デバッガー統合用の MCP サーバー
これはTypeScriptベースのMCPサーバーで、Goプログラム用のDelveデバッガーへの完全なインターフェースを提供します。MCPツールを通じて、主要なDelveコマンドと機能をすべて実装しています。
特徴
リソース
delve://URI 経由でデバッグ セッションの一覧を表示してアクセスする各セッションには、そのタイプ、ターゲット、ポートに関するメタデータがあります。
セッションの詳細と状態のJSON表現
ツール
Go プログラムをデバッグ、トレース、分析するには:
デバッグコマンド(
debug、attach、exec、test)コアダンプ分析
プログラムトレース
rrでデバッグを再生するDAPサーバーのサポート
条件付きブレークポイント管理
実行制御(
continue、step、next)変数の検査と評価
バックエンドの選択(
native、lldb、rr)ログ記録の構成
セッション管理
環境設定
サーバーには以下が必要です:
Delve と一緒にインストールされた Go (
go install github.com/go-delve/delve/cmd/dlv@latest)再生機能については、Mozilla
rr( https://github.com/mozilla/rr ) をご覧ください。Node.jsとnpm
Related MCP server: MCP-Typescribe
インストール
Delve MCP サーバーをインストールするには:
npm install @dwisiswant0/delve-mcp発達
依存関係をインストールします:
npm installサーバーを構築します。
npm run build自動リビルドを使用した開発の場合:
npm run watch構成
Claude Desktop で使用するには、サーバー設定を追加します。
Linux の場合:
~/.config/Claude/claude_desktop_config.json。MacOS の場合:
~/Library/Application Support/Claude/claude_desktop_config.json。Windows の場合:
%APPDATA%/Claude/claude_desktop_config.json。
{
"mcpServers": {
"delve-mcp": {
"command": "/path/to/delve-mcp/build/index.js"
}
}
}利用可能なツール
デバッグコマンド
debug- 現在のディレクトリまたは指定されたパッケージ内の Go パッケージをデバッグしますattach- PIDで実行中のプロセスにアタッチするexec- コンパイル済みバイナリの実行とデバッグtest- 現在のパッケージまたは指定されたパッケージのテストをデバッグしますcore- 関連する実行ファイルを含むコアダンプファイルを調べるdap- デバッグアダプタプロトコル(DAP)サーバーを起動するreplay- rr トレース記録を再生するtrace- 関数マッチングによるプログラム実行のトレース
制御コマンド
setBreakpoint- オプションの条件でブレークポイントを設定するremoveBreakpoint- 既存のブレークポイントを削除するcontinue- プログラムの実行を継続するnext- 次の行へ進むstep- 関数呼び出しにステップインするstepout- 現在の関数からステップアウトするvariables- 現在のスコープ内のローカル変数を一覧表示するevaluate- 現在のスコープ内の式を評価する
設定コマンド
version- Delveのバージョン情報を取得するsetBackend- デバッグバックエンドを構成する(native、lldb、rr)configureLogging- デバッグログコンポーネントを構成する
使用例
デバッグセッションの開始
// Debug current package
{ name: "debug" }
// Debug with specific package and build flags
{
name: "debug",
arguments: {
package: "./cmd/myapp",
buildFlags: "-tags=integration"
}
}ブレークポイントの管理
// Set a breakpoint
{
name: "setBreakpoint",
arguments: {
sessionId: "abc123",
file: "main.go",
line: 42,
condition: "count > 5"
}
}検査状態
// List variables
{
name: "variables",
arguments: {
sessionId: "abc123"
}
}
// Evaluate expression
{
name: "evaluate",
arguments: {
sessionId: "abc123",
expr: "myVar.Field"
}
}ライセンス
マサチューセッツ工科大学。
Available Tools
19 toolsattachC
Attach to a running process
Inputs: pid (required).
configureLoggingC
Configure debug logging
Inputs: components (required), destination.
continueC
Continue program execution
Inputs: sessionId (required).
coreB
Examine a core dump
Inputs: executable (required), corePath (required).
dapC
Start a DAP (Debug Adapter Protocol) server
Inputs: clientAddr.
debugC
Start debugging a Go package
Inputs: package, buildFlags.
evaluateC
Evaluate an expression in current scope
Inputs: sessionId (required), expr (required).
execC
Debug a precompiled binary
Inputs: binary (required), args.
nextC
Step over to next line
Inputs: sessionId (required).
removeBreakpointC
Remove a breakpoint
Inputs: sessionId (required), breakpointId (required).
replayC
Replay an rr trace
Inputs: tracePath (required), onProcess.
setBackendC
Set the backend for debugging
Inputs: backend (required).
setBreakpointB
Set a breakpoint in the debugged program
Inputs: sessionId (required), file (required), line (required), condition.
stepC
Step into function call
Inputs: sessionId (required).
stepoutB
Step out of current function
Inputs: sessionId (required).
testC
Debug tests in a package
Inputs: package, testFlags.
traceC
Trace program execution
Inputs: regexp (required), pkg, ebpf, stack, +1 more.
variablesC
List local variables in current scope
Inputs: sessionId (required).
versionB
Get Delve version information
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Tools have distinct purposes with clear descriptions. Some potential confusion exists between 'debug', 'exec', 'test', and 'attach' as different ways to start debugging, but descriptions differentiate them. Overall, agents can reliably distinguish tools.
All tools use a consistent single-word lowercase naming pattern (e.g., 'continue', 'step', 'setBreakpoint'). While not verb_noun, the pattern is uniform and predictable, making it easy for agents to understand.
19 tools is on the higher end for a debugger MCP server. While each tool serves a legitimate debugging function, the count exceeds the typical 3-15 range, making it somewhat heavy but still manageable.
Covers core debugging workflows like starting, stepping, breakpoints, and evaluation. However, missing common operations like listing breakpoints, viewing stack traces, and goroutine inspection indicate notable gaps for comprehensive debugging.
Maintenance
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
A MCP server built for developers enabling Git based project management with project and personal…
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseBqualityDmaintenanceTypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.3163 npm26MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables LLMs to understand and work with TypeScript APIs they haven't been trained on by providing structured access to TypeScript type definitions and documentation.34 npm46MIT
- AlicenseNot gradedqualityCmaintenanceA TypeScript-based MCP server that enables code search, file reading, and project management via the GitLab API.1ISC
- AlicenseNot gradedqualityDmaintenanceA standalone MCP server that provides TypeScript type inference and hover information using tsgo, enabling AI agents to get type details, diagnostics, references, and more without needing an editor.1MIT