configureLogging
Set up debug logging for specific components in Delve MCP, allowing detailed tracing of activities like debugging, RPC, and stack analysis by specifying log destinations and desired components.
Instructions
Configure debug logging
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | Yes | Components to enable logging for | |
| destination | No | Log destination (file path or file descriptor) |
Implementation Reference
- src/handlers/config.ts:26-48 (handler)Executes the configureLogging tool: validates input components against allowed list, sets Delve logging environment variables (DELVE_LOG, DELVE_LOG_OUTPUT, DELVE_LOG_DEST), and returns confirmation.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(", ")}` }] }; }
- src/server.ts:373-394 (registration)Registers the configureLogging tool in the MCP server's tool list, including description and input schema definition.{ 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:415-418 (registration)Dispatches calls to configureLogging (and other config tools) to the handleConfigCommands function for execution.// Configuration commands if (["setBackend", "configureLogging", "version"].includes(name)) { return handleConfigCommands(name, args); }