stableversion/lldb_mcp
If you are the rightful owner of lldb_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
lldb_mcp is a simple and efficient LLDB Model Context Protocol (MCP) server with minimal dependencies, designed to work seamlessly with o4-mini and Gemini 2.5 Pro.
lldb_mcp is a streamlined LLDB MCP server that provides essential debugging functionalities with minimal setup. It features only two primary commands, `lldb_init` and `lldb`, ensuring a clutter-free toolset. The server captures output automatically, eliminating the need for manual copy-pasting. It is designed to work effectively with platforms like o4-mini and Gemini 2.5 Pro, giving users full control over their debugging sessions. The server's architecture is compact, with less than 200 lines of code, leveraging Python's standard libraries for socket communication and JSON handling. Safety measures are in place to prevent the execution of arbitrary commands, and certain commands are blacklisted to enhance security. The server must be started manually within an LLDB session, and it does not allow command chaining, which is particularly beneficial for o4-mini users.
Features
- Synchronous LLDB: Ensures blocking and direct output capture by setting debugger.SetAsync(False).
- Simple Controller: Executes commands via HandleCommand and returns comprehensive output or errors.
- Minimal Dependencies: Utilizes Python's built-in socketserver and JSON libraries.
- Safety Measures: Prevents execution of arbitrary commands and blacklists certain commands.
- Manual Server Start: Requires manual initiation within an LLDB session for enhanced control.
Usages
usage with local integration
{ "mcpServers": { "lldb": { "command": "/path/to/ldb_mcp/venv/bin/python", "args": ["/path/to/ldb_mcp/lldb_mcp.py"] } } }