MCP Catalogs
首页mcp-nodejs-debugger screenshot

mcp-nodejs-debugger

by workbackai·300·综合分 47

一个允许 Cursor 和 Claude Code 对 Node.js 应用进行运行时调试的 MCP 服务器。

developer-tools
17
Forks
1
活跃 Issue
6 个月前
最近提交
2 天前
收录于

概述

MCP Node.js 调试器为 Cursor 和 Claude Code 等 AI 驱动的开发工具提供了与 Node.js 应用程序在运行时交互的接口。它使开发者能够通过设置断点、检查变量并在 Node.js 环境中直接执行代码来调试其代码。此服务器连接到以调试模式运行的 Node.js 应用程序,并通过模型上下文协议 (MCP) 公开调试功能。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:调试生产或预生产环境中的 Node.js 应用程序
:在不重启应用程序的情况下检查变量和运行时状态
:设置断点以分析特定执行点的代码流程
:支持哪些 Node.js 版本?
:我可以调试运行在远程服务器上的应用程序吗?

什么时候选它

当您使用 Node.js 应用程序并希望在 AI 编程助手中直接调试而无需切换上下文时,选择此工具。

什么时候不要选它

不适合在生产环境中调试应用程序或使用非 Node.js 运行时时。

此 server 暴露的工具

从 README 抽取出 3 个工具
  • nodejs_inspect

    Execute JavaScript code in the Node.js runtime environment to inspect variables and objects

  • set_breakpoint

    Set a breakpoint in the Node.js application at a specific file and line number

  • list_breakpoints

    List all currently set breakpoints in the Node.js application

可对比工具

vscode-debug-servernode-inspectndb

安装

安装

Claude Desktop

将以下内容添加到您的 Claude Desktop 配置文件中:

{
  "mcpServers": {
    "nodejs-debugger": {
      "command": "npx",
      "args": ["@hyperdrive-eng/mcp-nodejs-debugger"]
    }
  }
}

Claude Code

claude mcp add nodejs-debugger npx @hyperdrive-eng/mcp-nodejs-debugger

Cursor

添加到您的 Cursor MCP 配置文件 (~/.cursor/mcp.json):

{
  "mcpServers": {
    "nodejs-debugger": {
      "command": "npx",
      "args": ["@hyperdrive-eng/mcp-nodejs-debugger"]
    }
  }
}

FAQ

支持哪些 Node.js 版本?
调试器适用于任何支持调试协议(--inspect 标志)的 Node.js 版本。
我可以调试运行在远程服务器上的应用程序吗?
可以,只要您可以从运行 Claude/Cursor 的位置连接到 Node.js 调试端口(默认为 9229)。

mcp-nodejs-debugger 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。