Skip to main content
Glama

setBackend

Configure the debugging backend for Go programs within the Delve MCP server. Choose from default, native, lldb, or rr to tailor the debugging environment.

Instructions

Set the backend for debugging

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backendYesBackend to use (default, native, lldb, or rr)

Implementation Reference

  • The main handler logic for the 'setBackend' tool. It validates the backend parameter against allowed values (default, native, lldb, rr), sets the DELVE_BACKEND environment variable, and returns a confirmation message.
    case "setBackend": { const { backend } = args; if (!["default", "native", "lldb", "rr"].includes(backend)) { throw new Error("Invalid backend specified"); } process.env.DELVE_BACKEND = backend; return { content: [{ type: "text", text: `Set Delve backend to ${backend}` }] }; }
  • Input schema definition for the 'setBackend' tool, specifying the required 'backend' parameter with enumerated allowed values.
    { name: "setBackend", description: "Set the backend for debugging", inputSchema: { type: "object", properties: { backend: { type: "string", description: "Backend to use (default, native, lldb, or rr)", enum: ["default", "native", "lldb", "rr"] } }, required: ["backend"] } },
  • src/server.ts:415-418 (registration)
    Registration/dispatch logic in the main tool call handler that routes 'setBackend' calls to the handleConfigCommands function.
    // Configuration commands if (["setBackend", "configureLogging", "version"].includes(name)) { return handleConfigCommands(name, args); }

Other Tools

Related Tools

  • @dwisiswant0/delve-mcp
  • @dwisiswant0/delve-mcp
  • @dwisiswant0/delve-mcp
  • @dwisiswant0/delve-mcp
  • @dwisiswant0/delve-mcp
  • @dwisiswant0/delve-mcp

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