使用先决条件:
Python (3.11 or higher)
Use idapyswitch to switch to the newest Python version
IDA Pro (8.3 or higher, 9 recommended)
Supported MCP Client (pick one you like)
Cline
Roo Code
Claude:
3、点小书架,再点 installed,里面应该有 github.com/mrexodia/ida-pro-mcp 这个 mcp server
IDA里点 Edit ---> Plugins ---> MCP,此时在 output 窗口提示 [MCP] Server started at http://localhost:13337
Large Language Models (LLMs) are powerful tools, but they can sometimes struggle with complex mathematical calculations or exhibit "hallucinations" (making up facts). Make sure to tell the LLM to use the conver_number MCP and you might also need math-mcp for certain operations.
Another thing to keep in mind is that LLMs will not perform well on obfuscated code. Before trying to use an LLM to solve the problem, take a look around the binary and spend some time (automatically) removing the following things:
You should also use a tool like Lumina or FLIRT to try and resolve all the open source library code and the C++ STL, this will further improve the accuracy.
难受,折腾了一天没搞定,我python3.11安装好了也已经装了相关库,按照说明,pip install --upgrade git+https://github.com/mrexodia/ida-pro-mcp,ida-pro-mcp --install这两步也可以正常执行,然后在C盘的Roaming\Hex-Rays\IDA Pro\plugins文件加下也看到了mcp-plugin.py文件,但是这样启动IDA看不到插件,我在网上查一下说要把server.py也复制进去,我就将github上面的包下下来,将里面的server.py放到C盘这个目录,这时候启动IDA,确实看到了插件,但是报错说缺少mcp的库,我已经用pip安装了,同时观察到自动生成了一个新文件server_generated.py,请问大佬,我这个是啥问题,没搞明白
C:\Users\XX\AppData\Roaming\Hex-Rays\IDA Pro\plugins\server_generated.py: name 'mcp' is not defined
Traceback (most recent call last):
File "D:\Tool\IDApro9.1\python\ida_idaapi.py", line 501, in IDAPython_ExecScript
exec(code, g)
File "C:/Users/XX/AppData/Roaming/Hex-Rays/IDA Pro/plugins/server_generated.py", line 48, in <module>
@mcp.tool()
^^^
NameError: name 'mcp' is not defined