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": [
        "--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.5.1.tar.gz (197.5 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.1-py3-none-any.whl (95.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ida_codemode-0.5.1.tar.gz
  • Upload date:
  • Size: 197.5 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.1.tar.gz
Algorithm Hash digest
SHA256 13d43ee247aff48dd55614668fa31f599bca9ae2a9d99f99ccc44d587dca6ce9
MD5 216f099ef5754a4f2df66beace2e749d
BLAKE2b-256 b87e7d2fc242d9e927665b8bffd370f33e1180194d6b73b248a65797e62d4c32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ida_codemode-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 95.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bce096d4b750712e3b36da4e9fcc2d161126b83c85c9720f25191483a6fd82e
MD5 8cbdcd6bd06708809a1d859e1580eb1f
BLAKE2b-256 fc975086a8d0babf0ec29fadcfb202e6fe720248bea205e19ec57e4fb52b5164

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

This release

0.5.1 This release

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