Skip to main content
Glama

dap

Start a Debug Adapter Protocol server to connect debugging tools with the Delve debugger for analyzing Go programs.

Instructions

Start a DAP (Debug Adapter Protocol) server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientAddrNoOptional address where DAP client is waiting for connection

Implementation Reference

  • The handler logic for the 'dap' tool, which starts a DAP debug session using startDebugSession with optional client address and returns a confirmation message.
    case "dap": { const { clientAddr } = args; const cmdArgs = clientAddr ? ["--client-addr", clientAddr] : []; const session = await startDebugSession("dap", "", cmdArgs); return { content: [{ type: "text", text: `Started DAP server session ${session.id}${clientAddr ? ` connecting to ${clientAddr}` : ''}` }] }; }
  • Input schema definition for the 'dap' tool, including optional 'clientAddr' parameter.
    { name: "dap", description: "Start a DAP (Debug Adapter Protocol) server", inputSchema: { type: "object", properties: { clientAddr: { type: "string", description: "Optional address where DAP client is waiting for connection" } } } },
  • src/server.ts:406-407 (registration)
    Dispatches calls to the 'dap' tool (and other debug tools) to the handleDebugCommands handler.
    if (["debug", "attach", "exec", "test", "core", "dap", "replay", "trace"].includes(name)) { return handleDebugCommands(name, args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dwisiswant0/delve-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server