{
  "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
  "name": "rdbg-debugger",
  "version": "0.19.34",
  "description": "Drive the rdbg Delphi remote debugger from Claude Code. Set breakpoints, step, inspect VCL objects via RTTI, capture window screenshots, simulate input, and let an autonomous bug-hunter agent reproduce crashes. Now also exposes DelphiLSP-backed code navigation: go-to-definition / declaration / implementation, hover, completion, signature help, document + workspace symbols, diagnostics — with auto-generated .delphilsp.json from any .dproj. Supports Win32 and Win64 targets via parallel daemons; the bridge picks the right one per launch.",
  "author": {
    "name": "Damian Nikodem",
    "email": "damian.nikodem.au@gmail.com"
  },
  "homepage": "https://sundaymorning.app/rdbg/",
  "repository": "https://github.com/p0ssess3d/rdbg",
  "license": "MIT",
  "keywords": ["debugger", "delphi", "rdbg", "vcl", "windows"],
  "mcpServers": "./.mcp.json",
  "lspServers": "./.lsp.json",
  "userConfig": {
    "rdbg_host": {
      "type": "string",
      "default": "127.0.0.1",
      "title": "rdbg daemon host",
      "description": "Host the daemon listens on. Keep at 127.0.0.1 unless you have a reason to expose the daemon over the network — there's no auth on the wire."
    },
    "default_target_bitness": {
      "type": "string",
      "default": "x64",
      "title": "Default target bitness",
      "description": "Which daemon to connect to first ('x64' for rdbgd64 / Win64 targets, 'x86' for rdbgd32 / Win32 targets). The bridge auto-switches per `launch` based on the target's PE machine type, so this only matters for the initial connection."
    },
    "rdbg_port_x64": {
      "type": "number",
      "default": 5902,
      "min": 1,
      "max": 65535,
      "title": "rdbgd64 TCP port",
      "description": "TCP port the Win64 daemon listens on (5902 by convention). Change only if 5902 is occupied; the bridge connects to host:port."
    },
    "rdbg_port_x86": {
      "type": "number",
      "default": 5903,
      "min": 1,
      "max": 65535,
      "title": "rdbgd32 TCP port",
      "description": "TCP port the Win32 daemon listens on (5903 by convention). Change only if 5903 is occupied; the bridge connects to host:port."
    },
    "auto_start_daemon": {
      "type": "boolean",
      "default": true,
      "title": "Auto-start the daemon if not already running",
      "description": "On first MCP call (or when the bridge auto-switches bitness for a launch), if the matching daemon isn't reachable at host:port, spawn it detached so it survives Claude Code restarts."
    },
    "daemon_args": {
      "type": "string",
      "default": "",
      "title": "Daemon command-line args (used only when auto-starting)",
      "description": "Leave blank to get the bridge's smart default: --listen 127.0.0.1:<port> --tray --log-file %LOCALAPPDATA%\\rdbg\\rdbgd<bits>.log --log-level debug. Set explicitly to override; %PORT% is substituted with the bitness-appropriate port at spawn time. Add --enable-spy to let Claude record user demonstrations (input injection is on by default)."
    },
    "delphilsp_path": {
      "type": "string",
      "default": "",
      "title": "DelphiLSP.exe path (override)",
      "description": "Optional absolute path to DelphiLSP.exe. Leave blank to auto-discover via HKCU\\Software\\Embarcadero\\BDS\\<24.0|23.0|22.0>\\RootDir (most-recent-first; preferring bin64 over bin). Set explicitly when you have multiple Delphi installs and want to pin one for LSP."
    },
    "lsp_default_project": {
      "type": "string",
      "default": "",
      "title": "Default LSP project (.delphilsp.json or .dproj)",
      "description": "Optional path that seeds the bridge's 'current default' LSP project at startup. Accepts a .delphilsp.json (used as-is) or a .dproj (autogen if no fresh sibling .delphilsp.json exists). Leave blank to let each lsp_* tool resolve its project per-call from explicit args, file walk-up, or lsp_open_project."
    },
    "lsp_disable_autogen": {
      "type": "string",
      "default": "",
      "title": "Disable .delphilsp.json autogen",
      "description": "Set to '1' to disable autogen and require user-provided IDE-generated .delphilsp.json files for every project. Leave blank (default) to let the bridge autogen from .dproj when no sibling .delphilsp.json exists."
    }
  }
}
