Bentrix Docs
HomePricingDashboard

The stdio launcher

bentrix --mcp-stdio — the running Bentrix as an MCP server over standard input and output, for a client configured with a command line.

Some clients start an MCP server as a command and talk to it over standard input and output. For them, Bentrix's own binary has a launcher:

bentrix --mcp-stdio

It holds no state and runs no tool: it reads endpoint.json and local.secret from the agents folder, pairs once under the client's own name — initialize's clientInfo.name, or a 2026-07-28 request's _meta clientInfo.name, else the BENTRIX_AGENT_NAME environment variable, else an agent — and forwards newline-delimited JSON-RPC from its input to the running Bentrix and every answer, progress message and stream back to its output, one message to a line.

01In a client's configuration

Settings › Agents › Connect an agent copies a ready block. Its shape:

{
  "mcpServers": {
    "bentrix": {
      "command": "C:\\Program Files\\BENTRIX\\bentrix.exe",
      "args": ["--mcp-stdio"]
    }
  }
}

Settings › Agents also saves a connection bundle (BENTRIX.mcpb) that clients which open MCP bundles install in one step.

02How it ends

  • the client closes its input: exit code 0;
  • Bentrix stops answering (or was not running at the start): exit code 1;
  • Bentrix refuses to pair: exit code 2, after answering the message that needed it with an error.

A 401 — the pairing was revoked or replaced — makes the launcher pair once more and retry; a second failure is the client's error.

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed