dap-mcp

dap-mcp

dap_mcp•bykashuncheng

dap-mcp is an MCP implementation for managing Debug Adapter Protocol sessions and exposing debugging tools to MCP clients.

License: AGPL-3.0 License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Implements the Model Context Protocol for managing Debug Adapter Protocol sessions.
  • •Exposes debugging tools that MCP clients can invoke.
  • •Provides breakpoint management, execution control, expression evaluation, stack frame changes, and source viewing.
  • •Configures debugger settings, source directories, and other parameters with a JSON configuration file.

BEST FOR

  • •Debugging Python programs through the debugpy adapter.
  • •Debugging LLDB-based programs with lldb-dap.
  • •Interactive debugging sessions that manage breakpoints, control execution with stepping, evaluate expressions, and view source code.

ABOUT DAP_MCP

dap-mcp is cataloged as an MCP server attributed to kashuncheng. dap-mcp is an MCP implementation for managing Debug Adapter Protocol sessions and exposing debugging tools to MCP clients. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: AGPL-3.0 License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for dap-mcp are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What debugging actions does dap-mcp provide?

It provides breakpoint management, execution control, expression evaluation, stack frame changes, and source viewing.

How is dap-mcp configured?

It uses a JSON configuration file to specify debugger settings, source directories, and other parameters.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d429da77055a · 采集于 2026-11-13 06:27:52 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

dap-mcp

dap-mcp is an implementation of the Model Context Protocol (MCP) tailored for managing Debug Adapter Protocol (DAP) sessions. MCP provides a standardized framework to optimize and extend the context window of large language models, and in this project, it is used to enhance and streamline debugging workflows.

Features

  • Debug Adapter Protocol Integration: Interact with debuggers using a standardized protocol.
  • MCP Framework: Leverage MCP to optimize context and enhance debugging workflows.
  • Rich Debugging Tools: Set, list, and remove breakpoints; control execution (continue, step in/out/next); evaluate expressions; change stack frames; and view source code.
  • Flexible Configuration: Customize debugger settings, source directories, and other parameters via a JSON configuration file.

Installation

Prerequisites

  • Python 3.10 or higher
  • uv (optional, for running the server)

Installing and Running the Server

Install dap-mcp and its dependencies:

pip install dap-mcp
python -m dap_mcp --config config.json

# Or, if you have uv installed
uvx dap-mcp@latest --config config.json

Configuration

The project uses a JSON configuration file (e.g., .config.json) to specify debugger settings and source directories. An example configuration:

{
  "type": "debugpy",
  "debuggerPath": "/path/to/python/with/debugpy",
  "debuggerArgs": [
    "-m",
    "debugpy.adapter"
  ],
  // source directories for resolving file paths
  // if you always use absolute paths, you can omit this
  "sourceDirs": [
    "/path/to/source/code"
  ],
  // debugger-specific settings start here
  // configurations for debugpy can be found at
  // https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings
  
  // you can use "program" instead of "module" to specify the program to debug
  "module": "pytest",
  // the python executable to use to run the debuggee
  "python": ["/path/to/python"],
  "cwd": "/path/to/working/directory"
}

This configuration informs the debugger about:

  • The path to the debugger executable and its arguments.
  • The source directories for resolving file paths during breakpoint operations.
  • Other settings (such as module, working directory, and interpreter path) necessary for launching the debuggee.

Available Debugger Types

TypeExample PathExample Args
debugpy/usr/bin/python3["-m", "debugpy.adapter"]
lldb/usr/bin/lldb-dap[]

Available Tools

The project exposes several tools that can be invoked via the MCP framework:

  • launch: Launch the debuggee program.
  • set_breakpoint: Set a breakpoint at a specified file and line (with an optional condition).
  • remove_breakpoint: Remove a breakpoint from a specified file and line.
  • list_all_breakpoints: List all breakpoints currently set in the debugger.
  • continue_execution: Continue program execution after hitting a breakpoint.
  • step_in: Step into a function call.
  • step_out: Step out of the current function.
  • next: Step over to the next line of code.
  • evaluate: Evaluate an expression in the current debugging context.
  • change_frame: Switch to a different stack frame.
  • view_file_around_line: View source code around a specified line (using the last provided file if none is specified).
  • terminate: Terminate the debugging session.

These tools provide XML-rendered output for integration with MCP clients.

Extending with Other DAP Servers

To support additional DAP servers, you can simply add a new DAP-specific configuration class in the dap_mcp/config.py file. All DAP configurations extend from the base DAPConfig class. Each new subclass should:

  • Define a unique type value (using a Literal) to act as a discriminator.
  • Include any additional fields or settings specific to that debugger.

For example, to add support for a hypothetical DAP server called "mydap", you might add:

class MyDAP(DAPConfig):
    type: Literal["mydap"]
    # Add any additional settings for MyDAP here
    customSetting: Optional[str] = Field(
        None, description="A custom setting for MyDAP."
    )

After creating your new configuration class, update the union type used for debugger-specific configurations by including your new class. For example:

DebuggerSpecificConfig = Annotated[Union[DebugPy, MyDAP], Field(..., discriminator="type")]

Now, when you supply a configuration JSON with "type": "mydap", it will be parsed and validated using your new MyDAP class, and your DAP server extension will be fully integrated.

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Write tests and ensure all checks pass.
  4. Submit a pull request.

Please follow the coding guidelines and include appropriate tests with your changes.

License

This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for dap-mcp from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/dap_mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools