Labsco
jkolo logo

debug-mcp

โ˜… 18

from jkolo

MCP server exposing .NET debugging as 34 AI-accessible tools via ICorDebug APIs โ€” breakpoints, stepping, inspection, exception autopsy, and code analysis.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

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.

Tools (34)

CategoryToolsDescription
Sessiondebug_launch, debug_attach, debug_disconnect, debug_stateStart, stop, and monitor debug sessions
Executiondebug_continue, debug_pause, debug_stepControl program flow
Breakpointsbreakpoint_set, breakpoint_remove, breakpoint_list, breakpoint_enable, breakpoint_waitSet and manage source breakpoints
Exception Breakpointsbreakpoint_set_exceptionBreak on specific exception types (first/second chance)
Tracepointstracepoint_setNon-blocking breakpoints that log messages without pausing
Exception Autopsyexception_get_contextFull exception analysis: type, message, inner exceptions, stack frames with source, and local variables
Inspectionthreads_list, stacktrace_get, variables_get, evaluateExamine program state
Memoryobject_inspect, memory_read, layout_get, references_get, members_getDeep object and memory analysis
Modulesmodules_list, modules_search, types_getExplore loaded assemblies and types
Code Analysiscode_load, code_goto_definition, code_find_usages, code_find_assignments, code_get_diagnosticsRoslyn-powered code navigation and diagnostics
Process I/Oprocess_write_input, process_read_outputInteract with debuggee stdin/stdout

Resources (4)

URIDescription
debugger://sessionCurrent debug session state
debugger://breakpointsAll active breakpoints
debugger://threadsThread list with states
debugger://source/{file}Source file contents

Documentation

Similar Projects

ProjectLanguageApproach.NET Support
mcp-debuggerTypeScriptDAPVia external debugger
dap-mcpPythonDAPVia external debugger
LLDB MCPC++NativeNo
debug-mcpC#ICorDebugNative, direct