DD

dwisiswant0/delve-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 3 forks 품질 67 트렌드 10MIT

Delve debugger 통합을 위한 MCP 서버

개요

Delve debugger 통합을 위한 MCP 서버 이 TypeScript 기반 MCP 서버는 Go 프로그램에 대한 Delve debugger에 완벽한 인터페이스를 제공합니다. 그것은 MCP 도구를 통해 모든 주요 Delve 명령과 기능을 구현합니다. - delve://를 통해 목록 및 액세스 디버그 세션 URIs - 각 세션에는 유형, 대상 및 포트에 대한 메타데이터가 있습니다 - 세션 세부 사항 및 상태에 대한 JSON 표현 Debug, trace, and analysis Go programs with: - Debug command (debug, Attach, exec, test) - Core Dump analysis - Program tracing - Replay debugging with rr - DAP server support - Breakpoint management with conditions - Execution control (continue, step, next) - 변수 검사 및 평가 - 백엔드 선택 (native, lldb, rr) - 로깅 구성 - 세션 관리 - Delve (go install github.com/go-delve/delve/cmd/dlv@latest)로 설치 - 재생 기능 : Mozilla rr ([T0]] - Node.

개요(AI 번역)

Delve debugger 통합을 위한 MCP 서버

이 TypeScript 기반 MCP 서버는 Go 프로그램에 대한 Delve debugger에 완벽한 인터페이스를 제공합니다. 그것은 MCP 도구를 통해 모든 주요 Delve 명령과 기능을 구현합니다.

특징

자원

  • delve://를 통해 목록 및 액세스 디버그 세션 한국어
  • 각 세션은 유형, 대상 및 포트에 대한 메타데이터를 가지고 있습니다.
  • 세션 세부 사항 및 상태에 대한 JSON 표현

도구

디버그, 추적 및 분석 Go 프로그램:

  • 디버그 명령 (debug, attach], exec], test])
  • 핵심 덤프 분석
  • 프로그램 추적
  • rr로 디버깅
  • DAP 서버 지원
  • 조건을 가진 Breakpoint 관리
  • 실행 제어 (continue, step], next)
  • 변하기 쉬운 검사 및 평가
  • 백엔드 선택 (native, lldb], rr)
  • 로깅 구성
  • 세션 관리

환경 설정

서버는:

  • Delve 설치 (go install github.com/go-delve/delve/cmd/dlv@latest)
  • 재생 기능 : 모질라 rr (https://github.com/mozilla/rr)]
  • Node.js 및 npm

설치

Delve MCP 서버를 설치하려면:

개발

의존성 설치:

서버 구축:

auto-rebuild를 가진 발달을 위해:

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

delve-mcp

MCP server for Delve debugger integration

This is a TypeScript-based MCP server that provides a complete interface to the Delve debugger for Go programs. It implements all major Delve commands and capabilities through MCP tools.

Features

Resources

  • List and access debug sessions via delve:// URIs
  • Each session has metadata about its type, target, and port
  • JSON representation for session details and state

Tools

Debug, trace, and analyze Go programs with:

  • Debug commands (debug, attach, exec, test)
  • Core dump analysis
  • Program tracing
  • Replay debugging with rr
  • DAP server support
  • Breakpoint management with conditions
  • Execution control (continue, step, next)
  • Variable inspection and evaluation
  • Backend selection (native, lldb, rr)
  • Logging configuration
  • Session management

Environment Setup

The server requires:

  • Go installed with Delve (go install github.com/go-delve/delve/cmd/dlv@latest)
  • For replay functionality: Mozilla rr (https://github.com/mozilla/rr)
  • Node.js and npm

Installation

To install Delve MCP server:

npm install @dwisiswant0/delve-mcp

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Configuration

To use with Claude Desktop, add the server config:

  • On Linux: ~/.config/Claude/claude_desktop_config.json.
  • On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json.
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json.
{
  "mcpServers": {
    "delve-mcp": {
      "command": "/path/to/delve-mcp/build/index.js"
    }
  }
}

Available Tools

Debug Commands

  • debug - Debug a Go package in current directory or specified package
  • attach - Attach to a running process by PID
  • exec - Execute and debug a precompiled binary
  • test - Debug tests in current package or specified package
  • core - Examine a core dump file with associated executable
  • dap - Start a Debug Adapter Protocol (DAP) server
  • replay - Replay an rr trace recording
  • trace - Trace program execution with function matching

Control Commands

  • setBreakpoint - Set a breakpoint with optional condition
  • removeBreakpoint - Remove an existing breakpoint
  • continue - Continue program execution
  • next - Step over to next line
  • step - Step into function call
  • stepout - Step out of current function
  • variables - List local variables in current scope
  • evaluate - Evaluate expression in current scope

Configuration Commands

  • version - Get Delve version information
  • setBackend - Configure debug backend (native, lldb, rr)
  • configureLogging - Configure debug logging components

Usage Examples

Starting a Debug Session

// Debug current package
{ name: "debug" }
GitHub에서 전체 README 보기

설치

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

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "delve-mcp": { "command": "/path/to/delve-mcp/build/index.js" } } }