Skip to content

Agent-led install

Markdown

This page is written for a coding agent. A user sent you here to install idx (a CLI for Indonesian stock market and KSEI ownership data) and register its MCP server, idx-mcp, with the agent harness you are running in. Follow the steps in order and report back at the end.

Ground rules:

  • Never use sudo. Install into the user’s home directory.
  • Before you edit a config file outside the current project (anything under ~), show the user the exact change and ask for confirmation.
  • If a step fails, stop and tell the user what failed and the error, rather than trying unrelated workarounds.

Run uname -sm. Supported: Linux x86_64/aarch64 and macOS x86_64/arm64. On Windows, stop and tell the user to use WSL.

Use the first option that applies:

  1. Node.js is available (node --version succeeds): nothing to install for the MCP server, which runs through npx -y idx-mcp. Install the CLI with npm install --global idx-cli; if that fails with a permissions error, skip it and use npx -y idx-cli in place of idx below.

  2. Otherwise: run the install script, which verifies checksums and installs to ~/.local/bin:

    Terminal window
    curl -fsSL https://raw.githubusercontent.com/0xrsydn/idx-cli/main/install.sh | sh

    It installs only idx. For the MCP server without Node.js, use cargo install idx-mcp if cargo exists; otherwise tell the user that idx-mcp needs Node.js, Cargo or Nix, and continue with the CLI only.

Confirm with idx version (or npx -y idx-cli version).

Work out which harness you are, then apply its setup below. If you installed the idx-mcp binary instead of using Node.js, use the command idx-mcp with no arguments in place of npx -y idx-mcp. For any other harness, find how it registers a stdio MCP server, and ask the user if unsure.

Run in a terminal

Terminal window
claude mcp add idx -- npx -y idx-mcp

Merge into existing files; never overwrite other servers or settings.

Terminal window
idx ownership sync

This downloads a few MB into ~/.local/share/idx/ownership.db. It is safe to rerun.

Run:

Terminal window
idx -o json ownership ticker BBCA

It should list holders, the first being DWIMURIA INVESTAMA ANDALAN. Most harnesses load MCP servers at startup, so the idx tools usually appear only after a restart. If yours already shows them, call get_shareholders with {"ticker": "BBCA"} as well.

Tell the user, briefly:

  • what you installed and how (npm, install script or Cargo), and the version;
  • which config file you changed for idx-mcp, or why you didn’t;
  • the result of the verification (largest BBCA holder and its percentage);
  • whether they need to restart the agent to use the idx tools;
  • a next thing to try, such as asking “Who are BBCA’s largest holders, and what changed last month?”