← MCP GDB Server

MCP GDB Server 0.1.3

npm · mcp-gdb · current release

17
Tools
0
Resources
0
Templates
0
Prompts

Observation

Observed 2026-08-15T20:56:24.477Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.

Server capabilities
{
  "tools": {}
}

Tools 17

ToolCategoryAnnotationsRisk
gdb_attachAttach to a running process
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "pid": {
      "type": "number",
      "description": "Process ID to attach to"
    }
  },
  "required": [
    "sessionId",
    "pid"
  ]
}
— · —
gdb_backtraceShow call stack
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "full": {
      "type": "boolean",
      "description": "Show variables in each frame (optional)"
    },
    "limit": {
      "type": "number",
      "description": "Maximum number of frames to show (optional)"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —
gdb_commandExecute a GDB command
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "command": {
      "type": "string",
      "description": "GDB command to execute"
    }
  },
  "required": [
    "sessionId",
    "command"
  ]
}
— · —
gdb_continueContinue program execution
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —
gdb_examineExamine memory
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "expression": {
      "type": "string",
      "description": "Memory address or expression"
    },
    "format": {
      "type": "string",
      "description": "Display format (e.g., \"x\" for hex, \"i\" for instruction)"
    },
    "count": {
      "type": "number",
      "description": "Number of units to display"
    }
  },
  "required": [
    "sessionId",
    "expression"
  ]
}
— · —
gdb_finishExecute until the current function returns
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —
gdb_info_registersDisplay registers
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "register": {
      "type": "string",
      "description": "Specific register to display (optional)"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —
gdb_list_sessionsList all active GDB sessions
Input schema
{
  "type": "object",
  "properties": {}
}
— · —
gdb_list_sourceList source code at current location or specified location, with VS Code integration
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "location": {
      "type": "string",
      "description": "Source location (e.g., function name, file:line, optional)"
    },
    "lineCount": {
      "type": "number",
      "description": "Number of lines to show (optional, default is 10)"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —
gdb_loadLoad a program into GDB
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "program": {
      "type": "string",
      "description": "Path to the program to debug"
    },
    "arguments": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Command-line arguments for the program (optional)"
    }
  },
  "required": [
    "sessionId",
    "program"
  ]
}
— · —
gdb_load_coreLoad a core dump file
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "program": {
      "type": "string",
      "description": "Path to the program executable"
    },
    "corePath": {
      "type": "string",
      "description": "Path to the core dump file"
    }
  },
  "required": [
    "sessionId",
    "program",
    "corePath"
  ]
}
— · —
gdb_nextStep over function calls
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "instructions": {
      "type": "boolean",
      "description": "Step by instructions instead of source lines (optional)"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —
gdb_printPrint value of expression
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "expression": {
      "type": "string",
      "description": "Expression to evaluate"
    }
  },
  "required": [
    "sessionId",
    "expression"
  ]
}
— · —
gdb_set_breakpointSet a breakpoint
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "location": {
      "type": "string",
      "description": "Breakpoint location (e.g., function name, file:line)"
    },
    "condition": {
      "type": "string",
      "description": "Breakpoint condition (optional)"
    }
  },
  "required": [
    "sessionId",
    "location"
  ]
}
— · —
gdb_startStart a new GDB session
Input schema
{
  "type": "object",
  "properties": {
    "gdbPath": {
      "type": "string",
      "description": "Path to the GDB executable (optional, defaults to \"gdb\")"
    },
    "workingDir": {
      "type": "string",
      "description": "Working directory for GDB (optional)"
    }
  }
}
— · —
gdb_stepStep program execution
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    },
    "instructions": {
      "type": "boolean",
      "description": "Step by instructions instead of source lines (optional)"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —
gdb_terminateTerminate a GDB session
Input schema
{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "GDB session ID"
    }
  },
  "required": [
    "sessionId"
  ]
}
— · —

Resources 0

Resource templates 0

Prompts 0

Let’s talk about MCP security.

Share your details and our security team will contact you.