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.6.1.tar.gz (114.9 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.6.1-py3-none-any.whl (98.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: archrails_mcp-0.6.1.tar.gz
  • Upload date:
  • Size: 114.9 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.6.1.tar.gz
Algorithm Hash digest
SHA256 7a2bbaec3d9463a5958ef18c959781d4bf5b5a27169cc1aee2cb13d2f21894c7
MD5 dd3198d9d54f801cdad6a3d40e382728
BLAKE2b-256 7b5f10d92192af217013df4a7a1d569571508dcd8e1618825f579f74f40e5426

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archrails_mcp-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 98.3 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.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e7e627d1713eaa07e464f33ae3195e3a76db369278c913e4ed3be8af7d61c72
MD5 73d5d47166b412f5fac280938bb9b013
BLAKE2b-256 108e9ce3565e2afaa52f28a47fe0338326b1b990ae1e15a240e2666d665ef115

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