agentic-debugger logo

agentic-debugger

Community
iarmankhan

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

Publisheriarmankhan
Repositoryagentic-debugger
LanguageTypeScript
Forks
1
Stars
1
Available tools
7
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    agentic-debugger exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 7 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    1 stars and 1 forks from the linked repository.

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:

json
{
  "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

bash
npm install -g agentic-debugger

Then configure:

json
{
  "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

javascript
// #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

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

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Available Tools

  • start_debug_session

    Start a debug session. This starts a local HTTP server to receive logs from instrumented code.

  • stop_debug_session

    Stop the current debug session and shut down the log server.

  • add_instrument

    Add a debug instrument at a specific line in a file. The instrument will log variable values when executed.

  • remove_instruments

    Remove debug instruments from files.

  • list_instruments

    List all active debug instruments.

  • read_debug_logs

    Read the collected debug logs from the current session.

  • clear_debug_logs

    Clear all collected debug logs.

Use agentic-debugger MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once agentic-debugger is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add agentic-debugger as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the agentic-debugger MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "agentic-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "agentic-debugger"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the agentic-debugger MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the agentic-debugger MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use agentic-debugger to help me with this task?
agentic-debugger
Sure. I read it.
Here is what I found using agentic-debugger.

Frequently asked questions

What is the agentic-debugger MCP server used for?

agentic-debugger is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use agentic-debugger MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use agentic-debugger with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use agentic-debugger MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With agentic-debugger connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect agentic-debugger MCP to TypingMind?

agentic-debugger runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does agentic-debugger MCP provide in TypingMind?

agentic-debugger exposes 7 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use agentic-debugger MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If agentic-debugger requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇