Skip to main content

ArchRails MCP — thin local CLI that proxies the cloud handler. The cloud runs the validators; the CLI ships only transport, auth, git-diff capture, and architect-mode YAML editing.

Project description

archrails-mcp

The local CLI for ArchRails. Proxies your IDE's MCP-tool calls to the ArchRails cloud and captures the real git diff that drives the architecture review verdict — so the verdict is grounded in what's actually on disk, not what your agent narrates.

Install

pip install archrails-mcp

Requires Python 3.10+ and git on PATH.

Quick start

  1. Authenticate. Get an API key from your ArchRails admin, then:

    archrails login
    
  2. Configure your IDE's MCP server to launch archrails mcp start. For Cursor, add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-repo):

    {
      "mcpServers": {
        "archrails": {
          "command": "archrails",
          "args": ["mcp", "start", "--repo", "."]
        }
      }
    }
    

    Per-repo config is recommended — --repo "." resolves correctly because the IDE launches the server in the project root.

  3. Check from the shell at any time:

    archrails check
    

    Captures your real git diff (including untracked files), sends it to the ArchRails cloud, and prints the verdict.

The v2 BEFORE / CODE / AFTER protocol

The agent gets two tools:

  • get_change_context — call before editing. Returns the owning node for the path(s) you're about to change plus its customer-authored connects, controls, and patterns. Advisory only.
  • verify_local_change — call after editing. Returns the authoritative pass/fail verdict. The CLI captures your real git diff automatically; the agent does not construct it.

A violation verdict carries a structured remediation verb (delete / revert / replace) and is non-terminal: the agent must remediate, push, and re-attest until the verdict is satisfied. PR-time + branch protection is the un-bypassable backstop.

What the wheel ships

  • The stdio MCP server (archrails mcp start) — talks JSON-RPC over stdin/stdout to your IDE, forwards tool calls to the ArchRails cloud, and special-cases verify_local_change to capture the real workspace diff.
  • archrails check — the same architecture review, run directly from a terminal.
  • archrails attest verify — offline signature verification for ArchRails attestation manifests.

The wheel is pure transport, auth, and git capture — every validator and every architectural decision lives in the ArchRails cloud.

Docs

  • API surface and protocol details: see the docs/api/mcp.md spec your admin can point you at.
  • Issues / feedback: contact your ArchRails admin.

License

See your ArchRails contract.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

archrails_mcp-0.5.1.tar.gz (99.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

archrails_mcp-0.5.1-py3-none-any.whl (79.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: archrails_mcp-0.5.1.tar.gz
  • Upload date:
  • Size: 99.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for archrails_mcp-0.5.1.tar.gz
Algorithm Hash digest
SHA256 e628f0488bc84cdc6a7889b5069aa8109ea44bdc8a8a964eab4332b3e83e6602
MD5 fe6de3c8529e5b7cb074f8c17d777a99
BLAKE2b-256 3825bfb4d9c5d72e1ffd8d716731a04d38d8f81da64603f7fc3d2dba09a1d590

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archrails_mcp-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 79.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for archrails_mcp-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07d5e887ec400e9864415bea348cff08572e132008e5875f7909deb94c46411f
MD5 9943160b46cbbb50956d18a99d952440
BLAKE2b-256 22c5d152b0a1eda118d28528c3c212e78d53a3e15696c7f2475d3ed1d1a73cea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page