agentleFS
duty1gduty1g/x64dbg-mcp-server/SKILL.md

SKILL.md

Skill2.2k starsChanged 2 months agoMITView on GitHub

You are controlling x64dbg through MCP tools. Transport matters: - SSE clients receive push notifications for debugger events (breakpoints, exceptions, state changes) in real time. - HTTP clients must poll — call WaitForEvent to long-poll for events, or read the [state] and [event:*] lines included in every tool response. Treat every assumption about debugger state as stale until verified by a tool response. Before every action, call GetDebugState. No exceptions. Every tool response includes a [state] line at the end…

200 other projects use a version of this.

Trending

Less talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 4 mentionsSep 2026: 1 mentionOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the duty1g/x64dbg-mcp-server repository that our weekly crawl found: only 7 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about duty1g/x64dbg-mcp-server

The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 7

Talked about on GitHub and Bluesky (7 times).

On GitHub · 5

On Bluesky · 2

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 119 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    HTTP clients: must poll — call WaitForEvent to long-poll for events, or read the [state] and [event:*] lines included in every tool …

    line 7
  2. Distinctive:

    Treat every assumption about debugger state as stale until verified by a tool response.

    line 9
  3. Very specific:

    Every tool response includes a [state] line at the end showing the current debugger status — PAUSED with address/module/instruction, …

    line 21
  4. Very specific:

    Every tool response may also include [event:*] lines — queued debugger events (breakpoints hit, exceptions, DLL loads) that occurred since …

    line 23
  5. Very specific:

    If the user says "paused", "hit breakpoint", "stopped", or "debugger is paused" — immediately call GetDebugState to see where you are.

    line 25
  6. Very specific:

    Every tool response includes a [state] line showing current debugger status and any [event:*] lines with queued events.

    line 126
  7. Very specific:

    Use EvalExpression to resolve anything:

    line 269
  8. Distinctive:

    When analyzing code, always tell the user:

    line 279
  9. Very specific:

    When the target is RUNNING in a message loop (waiting for user input, showing a dialog, sitting at a UI screen), run will time out because …

    line 291
  10. Distinctive:

    Never give up and read the binary file from disk.

    line 300

“Common” is measured: kept by at least 6 in 10 of the 119 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

x64dbg Reverse Engineering — MCP Workflow Guide

You are controlling x64dbg through MCP tools.

Transport matters:

  • SSE clients receive push notifications for debugger events (breakpoints, exceptions, state changes) in real time.
  • HTTP clients must poll — call WaitForEvent to long-poll for events, or read the [state] and [event:*] lines included in every tool response.

Treat every assumption about debugger state as stale until verified by a tool response.


Rule 1: Always Know Your State

Before every action, call GetDebugState. No exceptions.

  • NO_TARGET — nothing loaded. Use LoadBinary or AttachProcess first.
  • PAUSED — target is stopped. You can read memory, disassemble, inspect registers.
  • RUNNING — target is executing. You CANNOT read memory, disassemble, or inspect anything. Call WaitForPause or PauseDebug first.

Every tool response includes a [state] line at the end showing the current debugger status — PAUSED with address/module/instruction, RUNNING, or NO_TARGET. Always read it. This is your primary state awareness mechanism.

Every tool response may also include [event:*] lines — queued debugger events (breakpoints hit, exceptions, DLL loads) that occurred since your last call. Always read these too.

If the user says "paused", "hit breakpoint", "stopped", or "debugger is paused" — immediately call GetDebugState to see where you are. Do not guess.


Rule 2: Never Assume State Between Calls

MCP is request/response. Between your tool calls, anything can happen — breakpoints can hit, exceptions can fire, the user can interact with the debugger. Every time you are about to act, verify first.

Bad:

SetBreakpoint → run → Disassemble  (wrong: run blocks but verify anyway)

Good:

GetDebugState → SetBreakpoint → run → GetDebugState → Disassemble

Rule 3: Core Workflows

Load and analyze a binary

GetDebugState
LoadBinary (path)
WaitForPause            — target pauses at system breakpoint
GetDebugState           — confirm PAUSED, note the address
GetAllRegisters         — see initial state
ListModules             — see what's loaded
Disassemble             — look at current code

Set breakpoint and run to it

GetDebugState           — must be PAUSED
SetBreakpoint (target)  — set the BP
run                     — blocks until target pauses (5-min timeout)
GetDebugState           — confirm PAUSED, check address
Disassemble             — see where we landed
GetAllRegisters         — inspect state

Step through code

GetDebugState           — must be PAUSED
StepOver                — response includes new address + disassembly
                        — read the response carefully before next step
StepOver                — keep stepping, reading each response
GetAllRegisters         — check registers when needed
GetCallStack            — check call context when needed

Find and hook an API call

SearchSymbols (pattern) — find the API across all modules
SetBreakpoint (address) — break on it
run                     — blocks until BP hits
GetDebugState
GetArguments            — read function arguments
GetCallStack            — see who called it

Trace execution

GetDebugState           — must be PAUSED
TraceInto (count)       — step N instructions, get address + disasm log
GetDebugState           — see where we ended up

Unpack a binary

LoadBinary → WaitForPause → GetDebugState
AnalyzeModule           — check sections, EP, image size
DetectOEP               — look for packing indicators (RWX sections, zero raw sizes)
SetHardwareBreakpoint   — on suspected OEP or after unpacking stub
run → GetDebugState     — run blocks until pause
DumpModule              — dump the unpacked module

Patch memory

GetDebugState           — must be PAUSED
Disassemble (address)   — see current bytes
WriteMemToAddress       — patch with new bytes
Disassemble (address)   — verify the patch
GetPatches              — see all active patches

Monitor while user interacts with GUI (HTTP only)

WaitForEvent (timeoutMs: 120000)  — long-poll up to 2 minutes
                                  — returns any events that fired
GetDebugState                     — check where we are now
WaitForEvent (timeoutMs: 120000)  — keep watching

Rule 4: All 84 Tools Reference

Every tool response includes a [state] line showing current debugger status and any [event:*] lines with queued events. You always know where you are.

State & Control (always available)

ToolParametersDescription
GetDebugState—Current state (NO_TARGET/RUNNING/PAUSED), PID, address, module
LoadBinaryfilePathLoad an executable into the debugger
AttachProcesspidAttach to a running process by PID
runtimeoutMs? (default 300000)Resume execution (F9). Blocks until target pauses or timeout
PauseDebug—Pause the target (F12)
WaitForPausetimeout? (ms, default 10000)Block until target pauses (breakpoint/exception)
StopDebug—Terminate debug session
RestartDebug—Restart debug session
ExecuteDebuggerCommandcommandRun any x64dbg command string. Blocks if target becomes RUNNING
EvalExpressionexpressionEvaluate expression (address, register, symbol, arithmetic)
EchomessageEcho input back (connectivity test)
ListCommandsByCategorycategory?List available MCP tools
SearchForStringssearchTextSearch process memory for text
GetEventLogcount? (default 20)Last N debugger events
ClearEventLog—Clear the event log
WaitForEventtimeoutMs? (default 30000)Long-poll for debugger events. For HTTP clients to watch state changes

Stepping (requires PAUSED)

ToolParametersDescription
StepInto—Single-step into calls (F7). Returns new address + disassembly
StepOver—Step over calls (F8). Returns new address + disassembly
StepOut—Run until return (Ctrl+F9). Returns new address + disassembly
RunToAddressaddressRun until hitting a specific address
TraceIntocountStep N instructions recording address + disassembly for each
TraceOvercountTrace N instructions stepping OVER calls

Breakpoints (requires debug session)

ToolParametersDescription
SetBreakpointtarget (address or symbol)Set INT3 breakpoint
SetHardwareBreakpointaddress, type (r/w/x), size?Set hardware BP (DR0-DR3)
SetConditionalBreakpointaddress, condition, log?Set BP with condition expression
SetMemoryBreakpointaddress, type (r/w/x), singleshoot?Set memory breakpoint
SetExceptionBreakpointexceptionCode, chance (1/2/3), actionConfigure exception BP (break/ignore)
DeleteExceptionBreakpointexceptionCodeDelete an exception breakpoint
EnableBreakpointaddressEnable a breakpoint
DisableBreakpointaddressDisable without deleting
ToggleBreakpointaddressToggle enabled/disabled
DeleteBreakpointtargetRemove a breakpoint
DeleteAllBreakpoints—Remove all BPs (normal, hardware, memory)
ResetHitCountaddressReset a BP's hit counter to zero
ListBreakpoints—List all active breakpoints
SetBreakpointCommandaddress, commandRun x64dbg command on BP hit
SetBreakpointFastResumeaddress, enableAuto-resume on BP hit

Disassembly & Code (requires PAUSED)

ToolParametersDescription
Disassembleaddress?, count? (default 16)Disassemble N instructions
DisassembleFunctionaddress?Disassemble entire function (needs analysis first)
GetCurrentAddress—Current EIP/RIP with label and comment
GetFunctionsmodule?List analyzed functions with addresses
GetReferencesaddressFind CALL/JMP xrefs to target address
Assembleaddress, instructionAssemble an instruction at address

Registers & Stack (requires PAUSED)

ToolParametersDescription
GetAllRegisters—Dump all general-purpose registers
SetRegisterregister, valueSet a CPU register value
GetCallStack—Current thread call stack
GetArgumentscount?Read function arguments from stack/registers
WatchExpressionsexpressions (array)Evaluate multiple expressions in one call
FollowPointeraddress, depth?Dereference pointer chain N levels deep

Memory (requires debug session)

ToolParametersDescription
ReadMemoryaddress, size? (default 64)Hex dump of process memory
WriteMemToAddressaddress, bytes (hex)Patch memory with hex bytes
AllocateMemorysizeAllocate memory in target process
FreeMemoryaddressFree allocated memory
GetMemoryMap—Memory regions with addresses, sizes, protection
GetDumpableRegions—List committed, readable memory regions
FindPatternpattern, module?Scan for byte pattern with ?? wildcards
GetPatches—List all memory patches
RestorePatches—Restore all patches to original bytes
DumpMemoryaddress, size, filePathSave memory region to file

Modules & Symbols (requires debug session)

ToolParametersDescription
ListModules—List loaded modules with base addresses and sizes
GetImportsmodule?Show module import table
GetExportsmodule?Show module export table
SearchSymbolspatternSearch for symbols matching pattern across all modules
ListSymbolsmoduleList exported symbols of a specific module
GetStringsmodule?Extract ASCII strings from module memory

Analysis (requires debug session)

ToolParametersDescription
AnalyzeModulemodule?PE structure: sections, EP, image size, characteristics
AnalyzeCodeaddress?, type (function/module/controlflow)Run code analysis
DetectOEPmodule?Detect Original Entry Point for packed executables
DumpModulemodule, filePathDump entire module to file
GetPEB—Read Process Environment Block fields
GetSEHChain—Walk Structured Exception Handler chain (x32)
SaveDatabase—Save the x64dbg database (.dd64/.dd32)

Bookmarks & Comments (requires debug session)

ToolParametersDescription
CommentOrLabelAtAddressaddress, text, type (comment/label)Add comment/label in disassembly
SetBookmarkaddressSet a bookmark
DeleteBookmarkaddressDelete a bookmark
ListBookmarks—List all bookmarks

Threads (requires debug session)

ToolParametersDescription
GetThreads—List all threads with IDs and instruction pointers
SwitchThreadthreadIdSwitch active thread context
SuspendThreadthreadIdSuspend a thread
ResumeThreadthreadIdResume a suspended thread

Rule 5: Common Mistakes

MistakeFix
Disassemble while target is RUNNINGWaitForPause or PauseDebug first
Assume breakpoint was hit after runrun blocks now, but still GetDebugState after
Forget to check state after user says "paused"Immediately GetDebugState
Read memory at wrong addressEvalExpression to resolve symbols first
Use DisassembleFunction without analysisAnalyzeCode with type=function first, or ExecuteDebuggerCommand with analr <address>
Set breakpoint on symbol without resolvingSearchSymbols or EvalExpression to get actual address
Lose track of which binary is loadedGetDebugState tells you, ListModules for full list
Pass MCP tool name to ExecuteDebuggerCommandCall the tool directly — ExecuteDebuggerCommand rejects MCP tool names
Use erun to blindly pass all exceptionsUse SetExceptionBreakpoint for selective exception handling
Go idle while user interacts with GUICall WaitForEvent with longer timeout (60-120s) to watch for events

Rule 6: Expression Evaluation

Use EvalExpression to resolve anything:

  • Symbols: kernel32:CreateFileA, ntdll:NtAllocateVirtualMemory
  • Registers: cip, rax, esp+4, [rsp+0x28]
  • Arithmetic: rax+0x10, modulebase+0x1000
  • Labels: any label set with CommentOrLabelAtAddress

Rule 7: Explain What You See

When analyzing code, always tell the user:

  • What address and module you're looking at
  • What the instructions do in plain language
  • What the registers/stack suggest about arguments and state
  • What the call stack context means

Reference concrete addresses and module names — never say "the current function" without saying which one.


Rule 8: Debugging GUI / Message Loop Apps

When the target is RUNNING in a message loop (waiting for user input, showing a dialog, sitting at a UI screen), run will time out because no breakpoint is being hit. Do NOT fall back to static file analysis — use the debugger properly.

Strategies:

  • PauseDebug — pause the target at any time, inspect state, then resume. The app freezes briefly but you get full debugger access.
  • Set API breakpoints before resuming — breakpoint on APIs the app will call when the user interacts (e.g. GetMessageA, SendMessageA, CreateFileA, ReadFile, button handlers). The target pauses when the user triggers that code path.
  • WaitForEvent with long timeout — if the user is about to interact with the GUI, call WaitForEvent(timeoutMs: 120000) to watch for breakpoint hits or exceptions while they click around.
  • SetBreakpointFastResume + SetBreakpointCommand — for logging without pausing: set a BP with a log command and fast resume. The target keeps running while you collect data.
  • Hardware breakpoints on data — if you know which memory the app reads/writes when the user acts, set a hardware BP on it. The target pauses when that memory is accessed.

Never give up and read the binary file from disk. The debugger can always pause, inspect, and resume.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.