Altanix Engineering Notes Open Live Scanner
Local DevTools & Privacy - Nov 2026

Wiring Deterministic Rust Static Checks into Claude Code and Cursor via stdio MCP

Instead of letting an LLM eyeball its own diff, give it six deterministic static checks over stdin/stdout JSON-RPC 2.0.

Asking an LLM to review code it just generated has an obvious failure mode: it tends to approve its own mistakes, miss subtle concurrency hazards, and hallucinate confidence. Rather than replacing the coding agent, we wanted to give it a fast local toolbelt that returns concrete line numbers and structured findings before a commit is staged.

1. One Rust quirk when writing a stdio MCP server

In MCP stdio transport (protocol version 2024-11-05), every line written to stdout must be a valid JSON-RPC 2.0 frame. A single diagnostic print or tracing::info! log going to stdout breaks the client parser in Cursor or Claude Code immediately. When adding altanix mcp to our existing binary, we had to route the global tracing_subscriber::FmtSubscriber explicitly via .with_writer(std::io::stderr) so startup logs never pollute the protocol pipe.

2. Setup in Claude Code or Cursor

Install the binary (macOS Homebrew or Linux/macOS shell script) and register altanix mcp:

brew install mysma-9403/tap/altanix
claude mcp add altanix -- altanix mcp

For Cursor (~/.cursor/mcp.json) or Windsurf:

{
  "mcpServers": {
    "altanix": {
      "command": "altanix",
      "args": ["mcp"]
    }
  }
}

3. Six tools exposed over JSON-RPC

Once connected, the agent can call any of six deterministic tools on either a unified diff or your local git working tree: altanix_ai_slop_guard (slopsquatting and vacuous tests), altanix_taint_check (source-to-sink data flow), altanix_deadlock_check (std::sync::Mutex held across .await and lock-order inversion), altanix_semver_check, altanix_cve_reachability (OSV.dev plus AST import checks), and altanix_compliance_report (EU CRA, NIS2, and DORA mapping).

4. Pairing with local Ollama or vLLM for full PR reviews

If you also run full multi-stage PR reviews on air-gapped repositories, altanix scan accepts any OpenAI-compatible /chat/completions endpoint via LLM_BASE_URL and LLM_MODEL (for example http://localhost:11434/v1 with qwen2.5-coder:14b). That way diffs never leave your laptop or private CI runner.

Source, binaries, and browser demo

Install instructions and MCP docs live at github.com/mysma-9403/altanix-cli. For a quick browser check without installing anything, test any public PR at altanix.dev/try.