developer-tools

agentic-debugger

by iarmankhan

Agentic Debugger: MCP server for interactive debugging with code instrumentation, empowering AI coding assistants to ins

An MCP (Model Context Protocol) server that enables interactive debugging with code instrumentation for AI coding assistants. Inspired by Cursor's debug mode.

github stars

1

Works with 7+ AI coding toolsLive code instrumentationBrowser debugging support with CORS

best for

  • / AI coding assistants debugging runtime issues
  • / Developers using Claude, Cursor, or similar tools
  • / Troubleshooting variable state in running code
  • / Interactive debugging without traditional debugger setup

capabilities

  • / Insert debug logging at specific code lines
  • / Capture variable values during code execution
  • / Start HTTP server for collecting debug logs
  • / Remove debug instruments cleanly from code
  • / Read and analyze captured runtime data
  • / Support JavaScript, TypeScript, and Python debugging

what it does

Enables AI coding assistants to debug code by inserting temporary logging instruments that capture variable values at runtime. Works with JavaScript, TypeScript, and Python across multiple AI coding tools.

about

agentic-debugger is a community-built MCP server published by iarmankhan that provides AI assistants with tools and capabilities via the Model Context Protocol. Agentic Debugger: MCP server for interactive debugging with code instrumentation, empowering AI coding assistants to ins It is categorized under developer tools. This server exposes 7 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install agentic-debugger in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

agentic-debugger is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

agentic-debugger

An MCP (Model Context Protocol) server that enables interactive debugging with code instrumentation for AI coding assistants. Inspired by Cursor's debug mode.

Works with any MCP-compatible AI coding tool:

  • Claude Code
  • Cursor
  • Windsurf
  • Cline
  • GitHub Copilot
  • Kiro
  • Zed
  • And more...

Features

  • Live code instrumentation - Inject debug logging at specific lines
  • Variable capture - Log variable values at runtime
  • Multi-language support - JavaScript, TypeScript, and Python
  • Browser support - CORS-enabled for browser JS debugging
  • Clean removal - Region markers ensure instruments are fully removed

Installation

Using npx (recommended)

Add to your MCP configuration:

{
  "mcpServers": {
    "debug": {
      "command": "npx",
      "args": ["-y", "agentic-debugger"]
    }
  }
}

Configuration file locations:

  • Claude Code: ~/.mcp.json
  • Cursor: .cursor/mcp.json in your project or ~/.cursor/mcp.json
  • Other tools: Check your tool's MCP documentation

Global install

npm install -g agentic-debugger

Then configure:

{
  "mcpServers": {
    "debug": {
      "command": "agentic-debugger"
    }
  }
}

Available Tools

ToolDescription
start_debug_sessionStart HTTP server for log collection
stop_debug_sessionStop server and cleanup
add_instrumentInsert logging code at file:line
remove_instrumentsRemove debug code from file(s)
list_instrumentsShow all active instruments
read_debug_logsRead captured log data
clear_debug_logsClear the log file

How It Works

  1. Start session - Spawns a local HTTP server (default port 9876)
  2. Add instruments - Injects fetch() calls that POST to the server
  3. Reproduce bug - Run your code, instruments capture variable values
  4. Analyze logs - Read the captured data to identify issues
  5. Cleanup - Remove all instruments and stop the server

Debug Workflow Example

You: "Help me debug why the total is NaN"

AI Assistant:
1. Starts debug session
2. Reads your code to understand the logic
3. Adds instruments at suspicious locations
4. "Please run your code to reproduce the issue"

You: *runs code* "Done"

AI Assistant:
5. Reads debug logs
6. "I see `discount` is undefined at line 15..."
7. Removes instruments
8. Fixes the bug
9. Stops debug session

Instrument Examples

JavaScript/TypeScript

// #region agentic-debug-abc123
fetch('http://localhost:9876/log', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    id: 'abc123',
    location: 'cart.js:15',
    timestamp: Date.now(),
    data: { total, discount, items }
  })
}).catch(() => {});
// #endregion agentic-debug-abc123

Python

# region agentic-debug-abc123
try:
    import urllib.request as __req, json as __json
    __req.urlopen(__req.Request(
        'http://localhost:9876/log',
        data=__json.dumps({
            'id': 'abc123',
            'location': 'cart.py:15',
            'timestamp': __import__('time').time(),
            'data': {'total': total, 'discount': discount}
        }).encode(),
        headers={'Content-Type': 'application/json'}
    ))
except: pass
# endregion agentic-debug-abc123

Supported Languages

LanguageExtensions
JavaScript.js, .mjs, .cjs
TypeScript.ts, .tsx
Python.py

Requirements

  • Node.js >= 18.0.0
  • An MCP-compatible AI coding assistant

License

MIT

FAQ

What is the agentic-debugger MCP server?
agentic-debugger is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for agentic-debugger?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    agentic-debugger is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated agentic-debugger against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: agentic-debugger is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    agentic-debugger reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend agentic-debugger for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: agentic-debugger surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    agentic-debugger has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, agentic-debugger benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired agentic-debugger into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    agentic-debugger is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.