TraceTool

June 8, 2026 · View on GitHub

Send structured traces to the TraceTool viewer directly from Claude Code.

Prerequisites

  • TraceTool viewer installed and running on Windows (default port 81 for HTTP)
  • Node.js installed

Installation

in claude cli:

/plugin marketplace add capslock66/tracetool-claude-plugin
/plugin install tracetool@tracetool-plugins
/reload-plugins

Then check if the Mcp server is running

/mcp

Of course you need to install tracetool itself, see https://github.com/capslock66/tracetool

Configuration

The viewer host defaults to 127.0.0.1:81. Override it via the plugin config or at runtime:

{
  "pluginConfigs": {
    "tracetool@<marketplace>": {
      "mcpServers": {
        "tracetool": {
          "env": { "TRACETOOL_HOST": "127.0.0.1:815" }
        }
      }
    }
  }
}

Or call the tool directly:

"set tracetool host to 127.0.0.1:81"

Available tools

Send new traces

ToolDescription
tracetool_sendSend a debug / warning / error message
tracetool_send_valueExpandable object tree
tracetool_send_xmlXML with syntax highlighting
tracetool_send_tableMulti-column table
tracetool_send_objectObject with class info, fields and methods
tracetool_send_stackCurrent call stack
tracetool_send_dumpHex dump of a buffer

Modify existing nodes (require node JSON string)

ToolDescription
tracetool_resendOverride left and/or right message
tracetool_resend_leftOverride the left column message
tracetool_resend_rightOverride the right column message
tracetool_resend_icon_indexChange the icon index
tracetool_set_background_colorChange background color of a node
tracetool_appendAppend text to left and/or right column
tracetool_append_leftAppend text to the left column
tracetool_append_rightAppend text to the right column
tracetool_showScroll a node into view
tracetool_set_selectedSelect a node in the viewer
tracetool_delete_itDelete a node
tracetool_delete_childrenDelete all children of a node
tracetool_set_bookmarkSet or clear the bookmark flag
tracetool_set_font_detailChange font details for a column or whole line

Viewer management

ToolDescription
tracetool_show_viewerShow or hide the viewer window
tracetool_clear_allClear the viewer
tracetool_set_hostChange viewer host at runtime
tracetool_get_configCurrent host + environment flags

Usage examples

Just ask Claude naturally:

  • "Send a debug trace: processing started"
  • "Log this object to TraceTool" (and paste a JSON)
  • "Clear the viewer and trace the login flow"
  • "Send the call stack to TraceTool"
  • "Update that last trace to show the elapsed time on the right"
  • "Bookmark that node"
  • "highlight that node in yellow"