شعار DevTools Debugger MCP

DevTools Debugger MCP

المجتمع
ScriptedAlchemy

An MCP server exposing full Chrome DevTools Protocol debugging: breakpoints, step/run, call stacks, eval, and source maps.

الناشرScriptedAlchemy
المستودعdevtools-debugger-mcp
اللغةJavaScript
التفريعات
25
النجوم
348
الأدوات المتاحة
0
نوع نقل البياناتstdio
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح DevTools Debugger MCP إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 348، والنسخ المتفرعة: 25 في المستودع المرتبط.

Node.js Debugger MCP

An MCP server that provides comprehensive Node.js debugging capabilities using the Chrome DevTools Protocol. This server enables AI assistants to debug Node.js applications with full access to breakpoints, stepping, variable inspection, call stacks, expression evaluation, and source maps.

Why use this MCP server?

This MCP server is useful when you need AI assistance with debugging Node.js applications. It provides programmatic access to all the debugging features you'd find in Chrome DevTools or VS Code, allowing AI assistants to help you set breakpoints, inspect variables, step through code, and analyze runtime behavior.

Features

  • Full Node.js debugger: Set breakpoints, conditional breakpoints, logpoints, and pause-on-exceptions
  • Stepping controls: Step over/into/out, continue to location, restart frame
  • Variable inspection: Explore locals/closure scopes, this preview, and drill down into object properties
  • Expression evaluation: Evaluate JavaScript expressions in the current call frame with console output capture
  • Call stack analysis: Inspect call stacks and pause-state information
  • Source map support: Debug TypeScript and other transpiled code with full source map support
  • Console monitoring: Capture and review console output during debugging sessions

Installation

bash
npm install devtools-debugger-mcp

Configuration

Add the server to your MCP settings configuration:

json
{
  "devtools-debugger-mcp": {
    "command": "node",
    "args": ["path/to/devtools-debugger-mcp/dist/index.js"]
  }
}

Alternatively, if installed globally, you can use the CLI binary:

json
{
  "devtools-debugger-mcp": {
    "command": "devtools-debugger-mcp"
  }
}

Node.js Debugging

This MCP server can debug Node.js programs by launching your script with the built‑in inspector (--inspect-brk=0) and speaking the Chrome DevTools Protocol (CDP).

How it works

  • start_node_debug spawns node --inspect-brk=0 your-script.js, waits for the inspector WebSocket, attaches, and returns the initial pause (first line) with a pauseId and top call frame.
  • You can then set breakpoints (by file path or URL regex), choose pause-on-exceptions, and resume/step. At each pause, tools can inspect scopes, evaluate expressions, and read console output captured since the last step/resume.
  • When the process exits, the server cleans up the CDP session and resets its state.

Quickstart (from an MCP-enabled client)

  1. Start a debug session
json
{ "tool": "start_node_debug", "params": { "scriptPath": "/absolute/path/to/app.js" } }
  1. Set a breakpoint (file path + 1-based line)
json
{ "tool": "set_breakpoint", "params": { "filePath": "/absolute/path/to/app.js", "line": 42 } }
  1. Run to next pause (optionally include console/stack)
json
{ "tool": "resume_execution", "params": { "includeConsole": true, "includeStack": true } }
  1. Inspect at a pause
json
{ "tool": "inspect_scopes", "params": { "maxProps": 15 } }
{ "tool": "evaluate_expression", "params": { "expr": "user.name" } }
  1. Step
json
{ "tool": "step_over" }
{ "tool": "step_into" }
{ "tool": "step_out" }
  1. Finish
json
{ "tool": "stop_debug_session" }

Node.js tool reference (summary)

  • start_node_debug({ scriptPath, format? }) — Launches Node with inspector and returns initial pause.
  • set_breakpoint({ filePath, line }) — Breakpoint by file path (1-based line).
  • set_breakpoint_condition({ filePath?, urlRegex?, line, column?, condition, format? }) — Conditional breakpoint or by URL regex.
  • add_logpoint({ filePath?, urlRegex?, line, column?, message, format? }) — Logpoint via conditional breakpoint that logs and returns false.
  • set_exception_breakpoints({ state }) — none | uncaught | all.
  • blackbox_scripts({ patterns }) — Ignore frames from matching script URLs.
  • list_scripts() / get_script_source({ scriptId? | url? }) — Discover and fetch script sources.
  • continue_to_location({ filePath, line, column? }) — Run until a specific source location.
  • restart_frame({ frameIndex, pauseId?, format? }) — Re-run the selected frame.
  • resume_execution({ includeScopes?, includeStack?, includeConsole?, format? }) — Continue to next pause or exit.
  • step_over|step_into|step_out({ includeScopes?, includeStack?, includeConsole?, format? }) — Stepping with optional context in the result.
  • evaluate_expression({ expr, pauseId?, frameIndex?, returnByValue?, format? }) — Evaluate in a paused frame; defaults to top frame.
  • inspect_scopes({ maxProps?, pauseId?, frameIndex?, includeThisPreview?, format? }) — Locals/closures and this summary.
  • get_object_properties({ objectId, maxProps?, format? }) — Drill into object previews.
  • list_call_stack({ depth?, pauseId?, includeThis?, format? }) — Top N frames summary.
  • get_pause_info({ pauseId?, format? }) — Pause reason/location summary.
  • read_console({ format? }) — Console messages since the last step/resume.
  • stop_debug_session() — Kill process and detach.

Notes

  • File paths are converted to file:// URLs internally for CDP compatibility.
  • line is 1-based; CDP is 0-based internally.
  • The server buffers console output between pauses; fetch via includeConsole on step/resume or with read_console.
  • Use set_output_format({ format: 'text' | 'json' | 'both' }) to set default response formatting.

Available Tools

This MCP server provides the following Node.js debugging tools. All tools support optional format parameter ('text' or 'json') to control response formatting.

Session Management

  • start_node_debug - Launch a Node.js script with debugging enabled
  • stop_debug_session - Terminate the debugging session and clean up

Breakpoint Management

  • set_breakpoint - Set a breakpoint at a specific file and line
  • set_breakpoint_condition - Set a conditional breakpoint or breakpoint by URL regex
  • add_logpoint - Add a logpoint that logs messages when hit
  • set_exception_breakpoints - Configure pause-on-exception behavior

Execution Control

  • resume_execution - Continue execution to the next breakpoint or completion
  • step_over - Step over the current line
  • step_into - Step into function calls
  • step_out - Step out of the current function
  • continue_to_location - Run until reaching a specific location
  • restart_frame - Restart execution from a specific call frame

Inspection and Analysis

  • inspect_scopes - Examine local variables, closures, and this context
  • evaluate_expression - Evaluate JavaScript expressions in the current context
  • get_object_properties - Drill down into object properties
  • list_call_stack - View the current call stack
  • get_pause_info - Get information about the current pause state

Utilities

  • list_scripts - List all loaded scripts
  • get_script_source - Retrieve source code for scripts
  • blackbox_scripts - Configure scripts to skip during debugging
  • read_console - Read console output captured during debugging

For detailed usage examples and parameter descriptions, see the "Node.js Debugging" section above.

License

MIT

استخدم MCP الخاص بـ DevTools Debugger MCP مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل DevTools Debugger MCP، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف DevTools Debugger MCP كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ DevTools Debugger MCP.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "devtools-debugger-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ DevTools Debugger MCP، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ DevTools Debugger MCP.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام DevTools Debugger MCP لمساعدتي في هذه المهمة؟
DevTools Debugger MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام DevTools Debugger MCP.

الأسئلة الشائعة

ما استخدامات خادم MCP DevTools Debugger MCP؟

DevTools Debugger MCP هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP DevTools Debugger MCP مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام DevTools Debugger MCP مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP DevTools Debugger MCP مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل DevTools Debugger MCP، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP DevTools Debugger MCP بـ TypingMind؟

يعمل DevTools Debugger MCP عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP DevTools Debugger MCP في TypingMind؟

يتيح DevTools Debugger MCP إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP DevTools Debugger MCP؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان DevTools Debugger MCP يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇