شعار Debugger MCP Server

Debugger MCP Server

المجتمع
hechtcarmel

A JetBrains IDE plugin that exposes an MCP (Model Context Protocol) server, giving AI coding assistants full programmatic control over the debugger. Set breakpoints, step through code, inspect…

الناشرhechtcarmel
المستودعjetbrains-debugger-mcp-plugin
اللغةKotlin
التفريعات
22
النجوم
107
الأدوات المتاحة
0
نوع نقل البياناتstreamable-http
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

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

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

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

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

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

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

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

Debugger MCP Server

Build codecov Version Downloads

A JetBrains IDE plugin that exposes an MCP (Model Context Protocol) server, giving AI coding assistants full programmatic control over the debugger. Set breakpoints, step through code, inspect variables, and evaluate expressions—all driven autonomously by your AI assistant.

Verified in CI (IntelliJ Plugin Verifier): IntelliJ IDEA, PyCharm, WebStorm, GoLand. Community-tested: RustRover, Android Studio, PhpStorm May work (untested): RubyMine, CLion, DataGrip

"Buy Me A Coffee"

Debugger MCP Server gives AI coding assistants complete control over the IDE's debugger through the Model Context Protocol (MCP). Let your AI assistant debug code autonomously—from setting breakpoints to inspecting variables to stepping through execution.

Features

Debug Session Management

  • Start/Stop Sessions - Launch any run configuration in debug mode
  • Rich Status - Get comprehensive state in a single call (variables, stack, source context)
  • Multi-Session Support - Manage multiple concurrent debug sessions

Breakpoint Management

  • Line Breakpoints - Set breakpoints at any valid location
  • Conditional Breakpoints - Add conditions that must be true to pause
  • Tracepoints - Log messages without pausing execution

Execution Control

  • Step Over/Into/Out - Navigate through code line by line
  • Resume & Pause - Control execution flow
  • Run to Line - Continue execution until a specific line

Variable Inspection

  • View Variables - Inspect local variables, arguments, and object fields
  • Modify Values - Change variable values during debugging

Expression Evaluation

  • Evaluate Expressions - Run arbitrary expressions in the current context
  • Code Fragments - Execute multi-line code snippets
  • Safety Controls - Choose unrestricted evaluation, a default risky-operation blocklist, or conservative read-only checks with optional custom regex block rules

Stack & Thread Navigation

  • Stack Traces - View the complete call stack with source locations
  • Frame Selection - Switch context to any stack frame
  • Thread Listing - See all threads and their states

Companion Skill

  • AI Debugging Guidance - Bundled companion skill teaches AI agents optimal debugger tool usage
  • One-Click Install - Install to .claude/skills/ or export as .skill/.zip

Why Use This Plugin?

Unlike manual debugging, this plugin enables:

  • Autonomous AI Debugging - Your AI assistant can debug code without human intervention
  • Rich Context in Single Calls - Get variables, stack, and source in one request
  • Programmatic Breakpoint Control - Set conditional breakpoints with complex expressions
  • Cross-IDE Compatibility - Works with any JetBrains IDE that supports XDebugger
  • 23 Comprehensive Tools - Full debugging capability through MCP
  • Configurable Server - IDE-specific ports with customizable host binding

Perfect for AI-assisted development workflows where you want your assistant to investigate bugs, validate fixes, or explore code behavior autonomously.

Table of Contents

Installation

Using the IDE built-in plugin system

Settings/Preferences > Plugins > Marketplace > Search for "Debugger MCP Server" > Install

Using JetBrains Marketplace

Go to JetBrains Marketplace and install it by clicking the Install to ... button.

Manual Installation

Download the latest version from the JetBrains Marketplace versions page and install it manually: Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Quick Start

  1. Install the plugin and restart your JetBrains IDE
  2. Open a project - the MCP server starts automatically on an IDE-specific port
  3. Find your IDE port: Settings > Tools > Debugger MCP Server (each IDE has a unique default port, e.g., 29190 for IntelliJ IDEA)
  4. Configure your AI assistant with the server URL: http://127.0.0.1:{PORT}/debugger-mcp/streamable-http
  5. Use the tool window (bottom panel: "Debugger MCP Server") to copy configuration or monitor commands

Using the "Install on Coding Agents" Button

The easiest way to configure your AI assistant:

  1. Open the "Debugger MCP Server" tool window (bottom panel)
  2. Click the prominent "Install on Coding Agents" button on the right side of the toolbar
  3. A popup appears with three sections:
    • Install Now - For Claude Code CLI and Codex CLI: Runs the installation command automatically
    • Copy Configuration - For other clients (Gemini CLI, Cursor, etc.): Copies the JSON config to your clipboard
    • Generic MCP Config - Streamable HTTP or Legacy SSE configuration for any MCP client
  4. For "Copy Configuration" clients, paste the config into the appropriate config file

Example Workflow

Just tell your AI assistant:

"Debug the calculateTotal function—set a breakpoint at line 42, run the tests in debug mode, and show me the variable values when it pauses."

Or for more complex debugging:

"There's a bug in UserService. Set a breakpoint at line 42, run the tests in debug mode, and when it breaks, show me the stack trace and all local variables."

Client Configuration

Claude Code (CLI)

The easiest way is to use the "Install on Coding Agents" button in the IDE's tool window—it generates the correct command with your IDE-specific server name and port.

Or run this command manually in your terminal (replace <ide>-debugger and port with your IDE's values):

bash
claude mcp add --transport http intellij-debugger http://127.0.0.1:29190/debugger-mcp/streamable-http --scope user

IDE-specific server names and default ports:

IDEServer NameDefault Port
IntelliJ IDEAintellij-debugger29190
Android Studioandroid-studio-debugger29191
PyCharmpycharm-debugger29192
WebStormwebstorm-debugger29193
GoLandgoland-debugger29194
PhpStormphpstorm-debugger29195
RubyMinerubymine-debugger29196
CLionclion-debugger29197
RustRoverrustrover-debugger29198
DataGripdatagrip-debugger29199
Aquaaqua-debugger29200
DataSpelldataspell-debugger29201
Riderrider-debugger29202

Options:

  • --scope user - Adds globally for all projects
  • --scope project - Adds to current project only

To remove: claude mcp remove intellij-debugger (use your IDE's name)

Codex CLI

The easiest way is to use the "Install on Coding Agents" button in the IDE's tool window—it generates the correct command with your IDE-specific server name and port.

Or run this command manually in your terminal (replace <ide>-debugger and port with your IDE's values):

bash
codex mcp add intellij-debugger --url http://127.0.0.1:29190/debugger-mcp/streamable-http

To remove: codex mcp remove intellij-debugger (use your IDE's name)

Gemini CLI

Add to ~/.gemini/settings.json:

json
{
  "mcpServers": {
    "intellij-debugger": {
      "httpUrl": "http://127.0.0.1:29190/debugger-mcp/streamable-http"
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root or ~/.cursor/mcp.json globally:

json
{
  "mcpServers": {
    "intellij-debugger": {
      "url": "http://127.0.0.1:29190/debugger-mcp/streamable-http"
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "intellij-debugger": {
      "serverUrl": "http://127.0.0.1:29190/debugger-mcp/streamable-http"
    }
  }
}

VS Code (Generic MCP)

json
{
  "mcp.servers": {
    "intellij-debugger": {
      "url": "http://127.0.0.1:29190/debugger-mcp/streamable-http"
    }
  }
}

Note: Replace intellij-debugger and the port with your IDE's server name and default port (see table above).

Note: The port can be changed in Settings > Tools > Debugger MCP Server.

Available Tools

The plugin provides 23 MCP tools organized by category:

Run Configuration Tools

ToolDescription
list_run_configurationsList all available run configurations in the project
execute_run_configurationExecute a run configuration in debug or run mode

Debug Session Tools

ToolDescription
list_debug_sessionsList all active debug sessions with state and metadata
start_debug_sessionStart a new debug session for a run configuration
stop_debug_sessionStop/terminate a debug session
get_debug_session_statusGet comprehensive status (variables, stack, source) in one call

Breakpoint Tools

ToolDescription
list_breakpointsList all breakpoints with optional filtering
set_breakpointSet a line breakpoint with condition, log message, suspend policy
remove_breakpointRemove a breakpoint by ID or location

Execution Control Tools

ToolDescription
resume_executionResume paused execution
pause_executionPause running execution
step_overStep over to next line (without entering methods)
step_intoStep into method calls
step_outStep out of current method
run_to_lineContinue execution until a specific line
wait_for_pauseBlock until the session pauses (breakpoint, step, manual) and return full status

Stack & Thread Tools

ToolDescription
get_stack_traceGet current call stack with file/line/method info
select_stack_frameChange debugger context to a different stack frame
list_threadsList all threads with state information

Variable Tools

ToolDescription
get_variablesGet all variables visible in current stack frame
set_variableModify a variable's value during debugging

Navigation Tools

ToolDescription
get_source_contextGet source code around current execution point

Evaluation Tools

ToolDescription
evaluate_expressionEvaluate an expression or code fragment in debug context

Note: For detailed tool documentation with parameters, examples, and response formats, see USAGE.md.

Multi-Project Support

When multiple projects are open in a single IDE window, you must specify which project to use with the project_path parameter:

json
{
  "name": "set_breakpoint",
  "arguments": {
    "project_path": "/Users/dev/myproject",
    "file_path": "/Users/dev/myproject/src/Main.java",
    "line": 42
  }
}

If project_path is omitted:

  • Single project open: That project is used automatically
  • Multiple projects open: An error is returned with the list of available projects

Tool Window

The plugin adds a "Debugger MCP Server" tool window (bottom panel) that shows:

  • Server Status: Running indicator with server URL and port
  • Agent Rule Tip: Copy a rule for your AI agent's config to prefer debugger MCP tools
  • Project Name: Currently active project
  • Command History: Log of all MCP tool calls with:
    • Timestamp
    • Tool name
    • Status (Success/Error/Pending)
    • Parameters and results (expandable)
    • Execution duration
  • Filters: Filter history by tool name, status, or search text

Tool Window Actions

ActionDescription
RefreshRefresh server status and command history
Copy URLCopy the MCP server URL to clipboard
Clear HistoryClear the command history
Export HistoryExport history to JSON file
SettingsOpen settings
Star/Report IssuesLink to GitHub repository
Try IDE Index MCP ServerLink to companion plugin
Buy Me a CoffeeSupport the developer
Get Companion SkillInstall or export the companion AI skill for enhanced debugging guidance
Install on Coding AgentsInstall MCP server on AI assistants (prominent button on right)

Error Codes

JSON-RPC Standard Errors

CodeNameDescription
-32700Parse ErrorFailed to parse JSON-RPC request
-32600Invalid RequestInvalid JSON-RPC request format
-32601Method Not FoundUnknown method name
-32602Invalid ParamsInvalid or missing parameters
-32603Internal ErrorUnexpected internal error

Tool Failures

Tool failures are not JSON-RPC errors. A tool that fails returns a successful result whose payload carries isError: true and a human-readable message in content[0].text, so the model can read what went wrong and retry:

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [{ "type": "text", "text": "Session must be paused to get variables" }],
    "isError": true
  }
}

The JSON-RPC error channel is reserved for protocol-level problems — malformed JSON, an unparseable message, an unknown method (not an unknown tool).

Project resolution is the one failure that returns structured JSON in content[0].text, because an agent that picked the wrong project needs the list of real ones to retry with:

json
{ "error": "multiple_projects_open", "message": "...", "available_projects": [ ... ] }

error is one of no_project_open, project_not_found or multiple_projects_open.

Settings

Configure the plugin at Settings > Tools > Debugger MCP Server:

SettingDefaultDescription
Server Host127.0.0.1Bind address for the MCP server. Use 127.0.0.1 for localhost only, 0.0.0.0 for all interfaces, or a custom IP
Server PortIDE-specificEach IDE has a unique default port (e.g., 29190 for IntelliJ, 29192 for PyCharm). Range: 1024-65535
Max History Size1000Maximum number of commands to keep in history
Evaluate Expression Safety ModeUnrestrictedControls plugin-side filtering before evaluate_expression reaches the debugger evaluator. Unrestricted preserves previous behavior. Default blocklist blocks built-in risky categories. Read-only also rejects mutation syntax and method calls that cannot be proven read-only
Additional blocked regex patternsNoneOptional custom deny rules for evaluate_expression. They apply in Default blocklist and Read-only, never in Unrestricted, and match expression text after comments and string literals are removed

Evaluate Expression Safety

evaluate_expression is powerful because IDE debuggers can call methods and run code in the debugged process. The safety setting is a best-effort guardrail, not a sandbox.

  • Unrestricted - No plugin-side filtering. Expressions may call methods, mutate state, access files/network, or run any operation accepted by the debugger.
  • Default blocklist - Blocks common high-risk categories: process execution, JVM termination, filesystem access, network access, reflection/access bypass, native code loading, and environment/system property access. Custom regex rules also apply.
  • Read-only - Includes the default blocklist and custom regex rules, then rejects assignments, increment/decrement operations, code fragments, constructors, and method calls that cannot be proven read-only.

Custom regex rules are additional blocked patterns. They do not replace the built-in restrictions.

Requirements

  • JetBrains IDE 2025.2 or later (any IDE based on IntelliJ Platform)
  • JVM 21 or later
  • MCP Protocol negotiated per client, from 2024-11-05 up to 2025-11-25, over the official MCP Kotlin SDK

Supported IDEs

Verified in CI (IntelliJ Plugin Verifier): IntelliJ IDEA, PyCharm, WebStorm, GoLand. Community-tested: RustRover, Android Studio, PhpStorm May work (untested): RubyMine, CLion, DataGrip, Aqua, DataSpell, Rider

Architecture

The plugin runs an embedded Ktor CIO server on an IDE-specific port and supports three MCP transports. The protocol itself — JSON-RPC framing, the initialize handshake, version negotiation, session lifecycle and batching — is handled by the official MCP Kotlin SDK; the plugin owns only the routes, the loopback-Origin guard, and the debugger tools themselves.

Streamable HTTP Transport (Primary)

AI Assistant ──────► POST /debugger-mcp/streamable-http   (JSON-RPC with Mcp-Session-Id header)
                     ◄── JSON-RPC response                (immediate HTTP response)
             ──────► GET /debugger-mcp/streamable-http    (server → client event stream)
                     ◄── event: message                   (notifications, progress)
             ──────► DELETE /debugger-mcp/streamable-http  (session termination)

Legacy HTTP+SSE Transport

AI Assistant ──────► GET /debugger-mcp/sse           (establish SSE stream)
                     ◄── event: endpoint             (receive POST URL with sessionId)
             ──────► POST /debugger-mcp?sessionId=x  (JSON-RPC requests)
                     ◄── HTTP 202 Accepted
                     ◄── event: message              (JSON-RPC response via SSE)

Stateless HTTP (Convenience)

AI Assistant ──────► POST /debugger-mcp              (JSON-RPC requests, no session)
                     ◄── JSON-RPC response           (immediate HTTP response)

This approach:

  • Modern clients - Streamable HTTP with session management and a server → client event stream
  • Legacy clients - Full HTTP+SSE transport for pre-2025 clients
  • Protocol version is negotiated per client, from 2024-11-05 up to 2025-11-25
  • Simple clients - Stateless HTTP for quick request/response without sessions
  • Each IDE gets a unique default port to avoid conflicts when multiple IDEs run simultaneously
  • Works with any MCP-compatible client
  • Supports CORS for browser-based clients

Contributing

Contributions are welcome! See CONTRIBUTING.md for the build/test quickstart and the project-specific tripwires (JDK 21, pumpingEdt, golden-contract regeneration). For security concerns, see SECURITY.md. In short:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: ./gradlew test
  5. Submit a pull request

Development Setup

bash
# Build the plugin
./gradlew build

# Run IDE with plugin installed
./gradlew runIde

# Run tests
./gradlew test

# Run plugin verification
./gradlew runPluginVerifier

License

This project is licensed under the MIT License - see the LICENSE file for details.


Plugin based on the IntelliJ Platform Plugin Template.

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

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

أضف عنوان URL لخادم MCP

استخدم هذا الخيار عندما يكون Debugger MCP Server مستضافًا بالفعل عن بُعد أو عندما يريد فريقك موصلًا مشتركًا واحدًا يمكن لعدة مستخدمين الوصول إليه.

1

فتح موصلات MCP

في TypingMind، انتقل إلى «الإضافات»، وافتح «موصلات MCP»، ثم اختر «إضافة رابط».

  1. افتح TypingMind في متصفحك.
  2. انتقل إلى الإضافات.
  3. افتح موصلات MCP.
  4. انقر على «إضافة عنوان URL».
نموذج إضافة عنوان URL لخادم MCP مخصص في TypingMind
2

لصق عنوان URL للخادم

أدخل عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم». أضف اسمًا للاتصال أو وصفًا أو أيقونة أو ترويسات HTTP مخصصة أو إعدادات عميل OAuth إذا كان الخادم يتطلب ذلك.

  1. ألصق عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم».
  2. أدخل اسمًا لاتصال Debugger MCP Server.
  3. أضف وصفًا وأيقونة لتسهيل التعرّف على الاتصال إن أردت.
  4. أضف ترويسات HTTP مخصصة أو تفاصيل عميل OAuth إذا كان الخادم يتطلب المصادقة.
3

إنشاء الاتصال

انقر على «إنشاء اتصال»، ثم عُد إلى قائمة الإضافات وتأكد من أن اتصال MCP الجديد نشط.

  1. انقر على «إنشاء اتصال».
  2. عُد إلى قائمة موصلات MCP.
  3. تأكد من ظهور اتصال Debugger MCP Server بحالة «نشط».
  4. حدّث قائمة الإضافات إذا لم يظهر الاتصال فورًا.
4

تبديل النماذج دون إعادة الاتصال

ابدأ محادثة مع نموذجك المفضل، وفعّل أدوات Debugger MCP Server من «الإضافات»، وانتقل إلى نموذج آخر عند الحاجة. يظل اتصال MCP متاحًا في مساحة عمل TypingMind.

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

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

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

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

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

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

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

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

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

يمكن توصيل Debugger MCP Server بـ TypingMind بإضافة عنوان URL لخادم MCP المستضاف الخاص به. يفيد ذلك عندما تريد اتصال MCP بعيدًا متاحًا من مساحة عملك في TypingMind.

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

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

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

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

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

عرض الكل

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

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