Skip to main content
Glama

configureLogging

Set up debug logging for specific components in Delve MCP to monitor and troubleshoot Go program debugging sessions.

Instructions

Configure debug logging

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentsYesComponents to enable logging for
destinationNoLog destination (file path or file descriptor)

Implementation Reference

  • Handler logic for the 'configureLogging' tool within handleConfigCommands function. Validates components, sets DELVE_LOG environment variables, and returns confirmation message.
    case "configureLogging": { const { components, destination } = args; const validComponents = ["debugger", "gdbwire", "lldbout", "debuglineerr", "rpc", "dap", "fncall", "minidump", "stack"]; for (const component of components) { if (!validComponents.includes(component)) { throw new Error(`Invalid log component: ${component}`); } } process.env.DELVE_LOG = "1"; process.env.DELVE_LOG_OUTPUT = components.join(","); if (destination) { process.env.DELVE_LOG_DEST = destination; } return { content: [{ type: "text", text: `Configured logging for components: ${components.join(", ")}` }] }; }
  • Input schema for 'configureLogging' tool, defining required 'components' array with valid enums and optional 'destination' string.
    name: "configureLogging", description: "Configure debug logging", inputSchema: { type: "object", properties: { components: { type: "array", items: { type: "string", enum: ["debugger", "gdbwire", "lldbout", "debuglineerr", "rpc", "dap", "fncall", "minidump", "stack"] }, description: "Components to enable logging for" }, destination: { type: "string", description: "Log destination (file path or file descriptor)" } }, required: ["components"] } }
  • src/server.ts:416-418 (registration)
    Registration/dispatch in CallToolRequestSchema handler that routes 'configureLogging' tool calls to the handleConfigCommands function.
    if (["setBackend", "configureLogging", "version"].includes(name)) { return handleConfigCommands(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