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.0.tar.gz (114.8 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.0-py3-none-any.whl (98.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: archrails_mcp-0.6.0.tar.gz
  • Upload date:
  • Size: 114.8 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.0.tar.gz
Algorithm Hash digest
SHA256 758ba4e7932d1194ba49c9a272b16d94f9210cfa58b2e8855ae65726bce6eff4
MD5 d6745ac1314192702362e43d8b4b0570
BLAKE2b-256 6d6ef136a6a7f347252b78553628b8e4935d808a32df536fae0a41da8a56859f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archrails_mcp-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 98.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6326bd46f6827f92db9f8e2fed0234d609f5ba3a124c1297e7a5e48c1d23e562
MD5 d0423e9cb8d9ff78fe3dd163ad45eb40
BLAKE2b-256 903d1201fe265f879d7b44c775053feb737fff9ab6363a608524a4edc5e3729f

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