JD

jkolo/debug-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

31 stars 10 forks 品質 70 トレンド 34AGPL-3.0

.NET デバッグ用の MCP サーバー — ブレイクポイント、検査、例外の autopsy、コード解析などの 34 個のツール。 ICorDebug 上に構築.

概要

— AI エージェントが .NET アプリケーションをインタラクティブにデバッグできるようにします。 debug-mcp は、.NET デバッグ機能を構造化された API ツールとして公開するモデルコンテキストプロトコルサーバーです。 Claude、GPT、CopilotなどのAIアシスタントを以下に許可します。 - .NET プロセスを起動または添付 - ブレイクポイント、例外のブレークポイント、およびトレースポイントを設定 - 変数を調べ、式を評価し、メモリを読み込みます - スタックトレースとスレッドを分析 - 1つのコール(例外オートプサイ)で完全な例外コンテキストを取得 - ゴーツー定義、使用方法、および診断 - パブリックシンボルサーバーからシンボルを自動的に解決する DAP プロトコルを介して外部デバッガを使用する同様のツールとは異なり、ICorDebug API を使用して debug-mcp インターフェイス — JetBrains Rider によって使用される同じアプローチ。 - . .

概要(AI 翻訳)

.NETデバッグ用のMCPサーバー — AIエージェントがインタラクティブに.NETアプリケーションをデバッグできるようにします。

debug-mcp とは何ですか?

debug-mcp は、.NET デバッグ機能を構造化された API ツールとして公開するモデルコンテキストプロトコルサーバーです。 Claude、GPT、CopilotなどのAIアシスタントを以下に許可します。

  • .NETプロセスの起動または添付
  • ブレークポイント、例外ブレークポイント、トレースポイントの設定
  • ラインによるコードラインによるステップ
  • 変数を調べ、式を評価し、メモリを読み込む
  • スタックトレースとスレッドの解析
  • 1つの呼び出しで完全な例外のコンテキストを取得します(例外自動精神)
  • Go-to-definition、使用方法および診断のコードを操縦して下さい
  • パブリックシンボルサーバーからシンボルを自動的に解決

DAP プロトコルを介して外部デバッガを使用する同様のツールとは異なり、debug-mcp インターフェイスは、ICorDebug API を使用して .NET のランタイム** を .NET のランタイムを .NET と直接接続します。

クイックスタート

実行

要件

  • .NET 10 SDK以降
  • Linux(Windows、macOS対応)

##Claudeデスクトップの設定

[claude_desktop_config.json]に追加します。

##Claude コードの設定

[.mcp.jsonに追加します。

事例会話

ツール (34)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

debug-mcp.net

MCP server for .NET debugging — enable AI agents to debug .NET applications interactively.

What is debug-mcp?

debug-mcp is a Model Context Protocol server that exposes .NET debugging capabilities as structured API tools. It allows AI assistants like Claude, GPT, or Copilot to:

  • Launch or attach to .NET processes
  • Set breakpoints, exception breakpoints, and tracepoints
  • Step through code line by line
  • Inspect variables, evaluate expressions, and read memory
  • Analyze stack traces and threads
  • Get full exception context with one call (exception autopsy)
  • Navigate code with go-to-definition, find usages, and diagnostics
  • Automatically resolve symbols from public symbol servers

Unlike similar tools that use external debuggers via DAP protocol, debug-mcp interfaces directly with the .NET runtime using ICorDebug APIs — the same approach used by JetBrains Rider.

Quick Start

Run

# No installation needed (.NET 10+)
dnx -y debug-mcp

Requirements

  • .NET 10 SDK or later
  • Linux (Windows and macOS support planned)

Configure with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "dotnet-debugger": {
      "command": "dnx",
      "args": ["-y", "debug-mcp"]
    }
  }
}

Configure with Claude Code

Add to your .mcp.json:

{
  "mcpServers": {
    "dotnet-debugger": {
      "command": "dnx",
      "args": ["-y", "debug-mcp"]
    }
  }
}

Example Conversation

You: Debug my ASP.NET app and find why GetUser returns null

Claude: I'll launch your application and investigate.
        [Calls debug_launch with program path]
        [Calls breakpoint_set at UserService.cs:42]
        [Calls debug_continue]
        [Calls breakpoint_wait with 30s timeout]

        The breakpoint was hit. Let me check the variables.
        [Calls variables_get for current frame]

        I found the issue: the `userId` parameter is an empty string.
        The bug is in the calling code at line 28 where...
You: My app throws NullReferenceException somewhere in checkout. Find it.

Claude: I'll set an exception breakpoint and trigger the flow.
        [Calls debug_launch with program path]
        [Calls breakpoint_set_exception for System.NullReferenceException]
        [Calls debug_continue]
        [Calls breakpoint_wait with include_autopsy: true]
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "dotnet-debugger": { "command": "dnx", "args": ["-y", "debug-mcp"] } } }