Show HN: Melra – pause ambiguous MCP writes instead of blindly retrying XAGI-Lab released MELRA, an open-source local execution runtime that governs AI agent tool calls routed through it by checking each call against policy, requesting approval when needed, verifying declared evidence, and keeping a redacted receipt of what runs to an outcome. MELRA dispatches mutations at most once per task and parks uncertain outcomes for reconciliation instead of replaying them, though the project states exactly-once external effects still depend on the provider and calls made through other tools remain outside MELRA's control. The alpha software requires Node.js 22.13 or newer, or 23.4 or newer, installs via `npx @melra/cli@alpha setup`, and writes itself into the config of a detected MCP client such as Claude Code, Cursor, or Gemini CLI, with APIs subject to change before version 1.0. M odular E xecution L ayer for R eliable A utonomy Your AI agent decides what to do. MELRA governs how tool calls are authorized, verified, and recovered. An open-source local execution runtime for agent tool calls you route through MELRA. It checks each call against policy, requests approval when needed, verifies declared evidence, and keeps a redacted receipt of what runs to an outcome. For each task, MELRA dispatches mutations at most once; uncertain outcomes are parked for reconciliation instead of replay. Exactly-once external effects still depend on the provider. Calls made through other tools remain outside MELRA's control. 26-second demo 26-second-demo · Quick start quick-start · How it works how-it-works · See what it is doing see-what-it-is-doing · Docs documentation · Contribute contributing · Discussions https://github.com/XAGI-Lab/melra/discussions · Product Hunt launch melra-product-demo.mp4 Warning MELRA is alpha software. The local runtime is tested end to end, but APIs may change before 1.0 . Use an isolated workspace, keep domain and command allowlists narrow, and read every approval before you give it. You need Node.js 22.13 or newer, or 23.4 or newer . From the project the agent should work in, one command sets everything up: cd ~/project npx @melra/cli@alpha setup That directory becomes the agent's workspace, the boundary for its file and command operations. setup shows it, and asks before making your home directory, a directory holding it, or / the workspace; set MELRA WORKSPACE to choose another. In a terminal, setup is a short wizard. It writes a safe local policy, finds the agent apps on your machine, asks which one should use MELRA, and writes MELRA into that app's own config file, keeping everything else in it and saving a .bak first : Which MCP client should use MELRA? 1 Claude Code detected: 'claude' on PATH 2 Cursor detected: config file found 3 Gemini CLI detected: config folder found ... Choose 1-26 1 : 1 Write it into ~/project/.mcp.json? Y/n ✓ Workspace ~/project ✓ Policy ~/.melra/policy.json ✓ Claude Code ~/project/.mcp.json Next: Start claude in this workspace and approve the 'melra' server when it asks; 'claude mcp list' then shows it connected. Then restart your agent app Claude Code asks you to approve a project's server once and ask it to do something, for example "use melra to show me the system info" . That's it. Prefer flags, a container, or building from source? | How | Command | |---|---| | One client, no questions | npx @melra/cli@alpha setup --client cursor --write | | Print the config instead of writing it | npx @melra/cli@alpha setup --client codex | | Install globally | npm install -g @melra/cli@alpha && melra setup | | Container no Node needed | docker run --rm ghcr.io/xagi-lab/melra:alpha doctor | | Prebuilt release | download from releases https://github.com/XAGI-Lab/melra/releases , verify against SHA256SUMS , then node melra/dist/bin.js doctor | | From source | git clone https://github.com/XAGI-Lab/melra.git && cd melra && corepack enable && pnpm install --frozen-lockfile && pnpm build && pnpm melra setup | | One file, no Node needed experimental | from a checkout: pnpm build:sea , then ./dist-sea/melra setup ; see single executable https://github.com/XAGI-Lab/melra/blob/main/docs/INSTALLATION.md single-executable-experimental | | Check what you installed | npm audit signatures verifies registry signatures; npm provenance links each package to its GitHub Actions build see npm packages https://github.com/XAGI-Lab/melra/blob/main/docs/INSTALLATION.md npm | Every command prints readable output in a terminal and plain JSON when piped or with --json , so scripts keep working. MELRA creates