x64dbg-MCP Server is a native MCP (Model Context Protocol) plugin for x64dbg that exposes the debugger's full functionality over HTTP. Connect any MCP-compatible AI assistant and control x64dbg programmatically: set breakpoints, step through code, read memory, dump registers, and more. Built with Zig — zero dependencies, single-binary output, cros
Zig ai-agentsai-debuggingbinary-analysisclaudeclaude-codemalware-analysismalware-researchmalware-scannermcpmcp-servermcp-serversx64dbgx64dbg-mcpx64dbg-pluginx64dbg-toolsxdbgzigzig-langziglang
fix(bookmark): the command is "bookmarkset", not "bookmarkadd"
Dan Alec9d7a93e4221d
diff --git a/src/mcp/tools.zig b/src/mcp/tools.zigindex f538306..132837f 100644--- a/src/mcp/tools.zig+++ b/src/mcp/tools.zig@@ -3244,7 +3244,10 @@ fn setBookmark(params: ?std.json.Value, out: []u8) ToolResult {const addr = getParamAddr(params, "address", &addr_buf) orelsereturn errResult(out, "Error: address is required.");var cmd_buf: [128]u8 = undefined;- const cmd = std.fmt.bufPrint(&cmd_buf, "bookmarkadd {s}\x00", .{addr}) catch+ // x64dbg's command is "bookmarkset" (alias "bookmark"). "bookmarkadd" does+ // not exist: the debugger answers "Unknown command" and the tool still+ // reports success, because the command call itself succeeds.+ const cmd = std.fmt.bufPrint(&cmd_buf, "bookmarkset {s}\x00", .{addr}) catchreturn errResult(out, "Error: input too long.");const ok = bridge.cmdExec(@ptrCast(cmd.ptr));return fmtResult(out, "{s}", .{if (ok) "Bookmark set." else "Error: Failed to set bookmark."});