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

Other agents

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

{
  "mcpServers": {
    "ida": {
      "command": "uvx",
      "args": [
        "--prerelease=allow",
        "--from",
        "ida-codemode@latest",
        "ida-codemode-mcp",
        "--agent",
        "my-agent",
        "--install-plugin"
      ]
    }
  }
}

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.4.0.tar.gz (181.1 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.4.0-py3-none-any.whl (85.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ida_codemode-0.4.0.tar.gz
  • Upload date:
  • Size: 181.1 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.4.0.tar.gz
Algorithm Hash digest
SHA256 f43b177a30f759388a83d7cc00ab434e078e2e1fe35f89610572025deedd5866
MD5 a9e091331ed6794cba6574a7c4e786d7
BLAKE2b-256 6a7fdc44f4376d7820f399a5af49f72f57c3332ad546993e5174a8ea122d8271

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ida_codemode-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 85.3 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2d52a3cbca098e457e3d14d4ecb9bd0b0c33a45a2ac35f5add592f04f2c7fa2
MD5 1fa4467054e7ad866c8356979c36325f
BLAKE2b-256 152beb7725e71f903adeb404546b1c49331e84dd9c97b892754c50e1062fdd6e

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

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

This release

0.4.0 This release

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