需要的环境

IDA版本>8.3

python需要3.11,3.12我试过不行

Node.js

git

vscode cline

pip install uv

pip install –upgrade git+https://github.com/mrexodia/ida-pro-mcp

ida-pro-mcp –install

注意:如果使用的是python3.11 在第三步安装前需要修改代码,不然会报错Please use typing.TypedDict` on Python < 3.12.typing_extensions.TypedDict

from typing_extensions import TypedDict
from typing import Any, Callable, get_type_hints, Optional, Annotated, TypeVar, Generic, NotRequired
from typing_extensions import TypedDict
from typing import Annotated, Optional, Generic, TypeVar, NotRequired
from pydantic import Field
{
  "mcpServers": {
    "github.com/mrexodia/ida-pro-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "c:\\MCP\\ida-pro-mcp",//改成你自己下载的ida-pro-mcp的路径 
        "run",
        "server.py",
        "--install-plugin"
      ],
      "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"
      ]
    }
  }
}

Categories:

Tags:

No responses yet

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注