feat: Implement headless MCP Server and UI integration#14
Merged
Conversation
mylovereturns
commented
Jun 7, 2026
Collaborator
- Added nlohmann-json dependency to vcpkg.json and CMakeLists.txt.
- Created standalone McpServer class supporting the Model Context Protocol over stdio (--mcp flag).
- Exposed key analysis functions through MCP tools (open_binary, get_status, get_functions, get_strings, get_xrefs_to, get_imports, get_exports, get_segments, get_bytes, set_comment, set_name, disassemble_at, decompile_function).
- Modified App and main.cpp to correctly handle headless execution without invoking GLFW/ImGui.
- Ensured stdout cleanliness when running in MCP mode by redirecting spdlog to a dedicated hyperion_mcp.log file.
- Fixed undefined identifier errors (Sar, Rol, Ror) and excessive exception loops in the lifter and PE loader.
- Added an 'MCP Server' UI dialog under the 'View' menu for easy 1-click installation to Cursor (.cursor/mcp.json) and Claude Desktop (claude_desktop_config.json).
- Documented MCP usage in README.md.
- Added nlohmann-json dependency to vcpkg.json and CMakeLists.txt. - Created standalone McpServer class supporting the Model Context Protocol over stdio (--mcp flag). - Exposed key analysis functions through MCP tools (open_binary, get_status, get_functions, get_strings, get_xrefs_to, get_imports, get_exports, get_segments, get_bytes, set_comment, set_name, disassemble_at, decompile_function). - Modified App and main.cpp to correctly handle headless execution without invoking GLFW/ImGui. - Ensured stdout cleanliness when running in MCP mode by redirecting spdlog to a dedicated hyperion_mcp.log file. - Fixed undefined identifier errors (Sar, Rol, Ror) and excessive exception loops in the lifter and PE loader. - Added an 'MCP Server' UI dialog under the 'View' menu for easy 1-click installation to Cursor (.cursor/mcp.json) and Claude Desktop (claude_desktop_config.json). - Documented MCP usage in README.md.
- Addressed unused variable warnings (RSP_ID, RBP_ID, kPattern, field_idx, PT_DYNAMIC, SHT_STRTAB, SHT_DYNAMIC, DT_NEEDED, DT_PLTGOT, DT_STRTAB, DT_JMPREL, DT_PLTRELSZ, REG_RAX...REG_R15, REG_ARM64_SP, REG_ARM64_NZCV, kMaxExceptions). - Fixed unused function warnings (va_to_ptr, safe_add32) by marking them with [[maybe_unused]]. - Corrected windows.h missing file error on non-Windows platforms by wrapping the include in #ifdef _WIN32 in instrumentation_cb.h. - Fixed missing field initializer warnings for DecompType structs by providing explicit initializers in make_void(), make_bool(), make_char(), make_int(), make_sizet(), and inline member initializers. - Updated TypeInfer to use the fully explicit initializers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.