vscode中github copilot安装ida-pro-mcp教程
<p>首先安装ida-pro-mcp</p><pre><code>pip uninstall ida-pro-mcp
pip install https://github.com/mrexodia/ida-pro-mcp/archive/refs/heads/main.zip
ida-pro-mcp --install
</code></pre>
<p>详细的说明可以看Alex师傅的博客IDAPro--MCP详细配置教程(通杀) - Alexander17 - 博客园<br>
然后确认好两个路径:<br>
<strong>1、安装ida-pro-mcp的Python位置</strong><br>
<strong>2、ida-pro-mcp的server.py位置</strong><br>
然后打开vscode的扩展商店,启用mcp商店<br>
<img src="https://img2024.cnblogs.com/blog/3539156/202512/3539156-20251212135058906-484637823.png" alt="assets/vscode中github copilot安装ida-pro-mcp教程/file-20251212134300265.png" loading="lazy"><br>
然后随便下载一个插件,我这里下载github<br>
<img src="https://img2024.cnblogs.com/blog/3539156/202512/3539156-20251212135058725-1023395343.png" alt="assets/vscode中github copilot安装ida-pro-mcp教程/file-20251212134355856.png" loading="lazy"><br>
随后点击github右下角齿轮选中显示配置(JSON)<br>
<img src="https://img2024.cnblogs.com/blog/3539156/202512/3539156-20251212135058862-1751464889.png" alt="assets/vscode中github copilot安装ida-pro-mcp教程/file-20251212134436123.png" loading="lazy"><br>
随后把里面的东西删掉换成下列内容</p>
<pre><code>{
"servers": {
"idapromcp": {
"isActive": true,
"command": "D:\\Programming\\python311\\python.exe",
"args": [
"D:\\Programming\\python311\\Lib\\site-packages\\ida_pro_mcp\\server.py"
],
"timeout": 1800,
"disabled": false,
"autoApprove": [
"check_connection",
"get_metadata",
"get_function_by_name",
"get_function_by_address",
"get_current_address",
"get_current_function",
"convert_number",
"list_functions",
"list_strings",
"search_strings",
"decompile_function",
"disassemble_function",
"get_xrefs_to",
"get_entry_points",
"set_comment",
"rename_local_variable",
"rename_global_variable",
"set_global_variable_type",
"rename_function",
"set_function_prototype",
"declare_c_type",
"set_local_variable_type"
],
"alwaysAllow": [
"check_connection",
"get_metadata",
"get_function_by_name",
"get_function_by_address",
"get_current_address",
"get_current_function",
"convert_number",
"list_functions",
"list_strings",
"search_strings",
"decompile_function",
"disassemble_function",
"get_xrefs_to",
"get_entry_points",
"set_comment",
"rename_local_variable",
"rename_global_variable",
"set_global_variable_type",
"rename_function",
"set_function_prototype",
"declare_c_type",
"set_local_variable_type"
],
"name": "github.com/mrexodia/ida-pro-mcp",
"baseUrl": "",
"installSource": "unknown"
}
}
}
</code></pre>
<p>Ctrl+s保存后重启vscode<br>
随后打开ida的mcp,询问一下ai能不能连上ida-pro-mcp服务器<br>
<img src="https://img2024.cnblogs.com/blog/3539156/202512/3539156-20251212135058553-306979403.png" alt="assets/vscode中github copilot安装ida-pro-mcp教程/file-20251212134959237.png" loading="lazy"><br>
这样就说明安装成功了</p>
<blockquote>
<p>注:如果想使用其他mcp服务可以让ai帮忙转换一下配置文件加在上面的mcp.json中</p>
</blockquote><br><br>
来源:https://www.cnblogs.com/ljnljn/p/19341150
頁:
[1]