Skip to main content
Glama

stepout

Exit the current function during Go program debugging using Delve MCP, enabling developers to trace and analyze code execution more effectively. Requires a valid debug session ID.

Instructions

Step out of current function

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesID of the debug session

Implementation Reference

  • Handler implementation for the 'stepout' tool, which sends a 'stepout' command to the Delve debug session and returns a confirmation message.
    case "stepout": { await sendDelveCommand(session, "Command", { name: "stepout" }); return { content: [{ type: "text", text: "Stepped out of function" }] }; }
  • src/server.ts:223-236 (registration)
    Registration of the 'stepout' tool in the MCP server's ListToolsRequestHandler, including its description and input schema.
    { name: "stepout", description: "Step out of current function", inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "ID of the debug session" } }, required: ["sessionId"] } },
  • src/server.ts:411-413 (registration)
    Dispatch logic in the CallToolRequestHandler that routes the 'stepout' tool call to the handleControlCommands function.
    if (["setBreakpoint", "removeBreakpoint", "continue", "next", "step", "stepout", "variables", "evaluate"].includes(name)) { return handleControlCommands(name, args); }

Other Tools

Related Tools

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