Skip to main content

ida-codemode

⚠️ Experimental prerelease ⚠️

IDA Code Mode gives agents a compact Python execution surface over the ida-domain API. It will discover and share databases already open in the IDA GUI, and starts managed idalib workers only when no suitable instance exists.

The MCP adapter explicitly runs execute_python as a lease-scoped REPL: imports, variables, and function definitions persist between its calls through the same database handle. The low-level API remains stateless by default and opts in with persist_globals=True; a stateless call discards any namespace previously retained by that handle. Separate handles receive isolated namespaces, and closing a handle releases its namespace and retained IDA objects.

Installation

Requirements

  • Installed in your PATH
  • IDA 9.4 or higher with Python 3.11+

Claude Code

claude plugin marketplace add HexRaysSA/claude-marketplace
claude plugin install ida-mcp@HexRaysSA

Codex CLI

codex plugin marketplace add HexRaysSA/codex-marketplace
codex plugin add ida-mcp@HexRaysSA

Pi

pi install git:github.com/HexRaysSA/ida-codemode

IDA GUI Support

To support IDA GUI instances when using ida-codemode, install the plugin:

uvx ida-hcli plugin install https://github.com/HexRaysSA/ida-codemode

Other agents

Configure a regular stdio MCP server in your mcp.json:

{
  "mcpServers": {
    "ida": {
      "command": "uvx",
      "args": [
        "--with=ida-hcli",
        "--from=ida-codemode",
        "ida-codemode-mcp",
        "--agent=my-agent"
      ]
    }
  }
}

uvx resolves the latest stable ida-codemode release from PyPI, so this configuration does not need to be updated for each release. Pre-release dependency resolution is currently required because ida-domain is published as a development release.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ida_codemode-0.5.2.tar.gz (180.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ida_codemode-0.5.2-py3-none-any.whl (94.7 kB view details)

Uploaded Python 3

File details

Details for the file ida_codemode-0.5.2.tar.gz.

File metadata

  • Download URL: ida_codemode-0.5.2.tar.gz
  • Upload date:
  • Size: 180.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ida_codemode-0.5.2.tar.gz
Algorithm Hash digest
SHA256 4a049992eef7dc89c40f410ced7b60bdec523746302d63503109a7d68686a819
MD5 0bf60cbc14179b173b1cc133e02bfdeb
BLAKE2b-256 b71eb66c3217d091a8a47de28f8158f197ea534b7b4cb85ee2cb3fac2c22fe22

See more details on using hashes here.

File details

Details for the file ida_codemode-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: ida_codemode-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 94.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ida_codemode-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da2e66e7793fbd8a39e8ac803211073592ccc4553e322325c952263b672683f7
MD5 f453d760c228a72ad43f4cca5db536a8
BLAKE2b-256 20b84e6aa4004c2a7114c2ed1a3bb9ff9bdee8f81d528fa6f3d63e5914094113

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.1

2 files

0.6.0

2 files

0.5.3

2 files

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page