Skip to main content

MCP Server

Connect Rigour directly to your AI agents (Cursor, Claude Code, etc.) to enforce quality standards in real-time.


⚡ Quick Start

npx -y @rigour-labs/mcp

🔌 Integration Recipes

🤖 Claude Code (CLI)

claude mcp add rigour -- npx -y @rigour-labs/mcp

🖱️ Cursor

  1. Go to Settings > Features > MCP.
  2. + Add New MCP Server:
    • Name: Rigour
    • Type: command
    • Command: npx -y @rigour-labs/mcp

🛠️ Cline / Roo Code

Add this to your cline_mcp_settings.json:

{
"mcpServers": {
"rigour": {
"command": "npx",
"args": ["-y", "@rigour-labs/mcp"]
}
}
}

🛠️ Essential Tools

Once connected, your AI agent will automatically use these tools:

ToolPurpose
rigour_checkRuns all quality gates on your code.
rigour_runInterceptable command execution (e.g., tests, deploys).
rigour_find_patternsSemantic search for codebase patterns.
rigour_rememberPersist architectural decisions in memory.
rigour_recallRetrieve stored engineering context.
rigour_get_fix_packetGet precise refactoring instructions on failure.

🏗️ How it Works: The Local Bridge

Even if your AI agent (like Cursor or Claude Code) is communicating with a model in the cloud, the Governance Interception happens entirely on your local machine.

The Handshake Architecture

graph TD
subgraph "Your Machine (Local)"
A["AI Agent (Cursor/Claude)"] -- runs --> B["Rigour MCP Server<br/>(local process)"]
B -- writes events --> C[".rigour/events.jsonl<br/>(Shared File System)"]
D["Rigour Studio<br/>(Local Dashboard)"] -- watches --> C
D -- writes decision --> C
B -- reads decision --> C
end

subgraph "Cloud"
E["AI Model (Claude/GPT-4)"] -- instructs --> A
end

The Synchronization Flow:

  1. Local Spawn: When you add the Rigour MCP to your IDE, the IDE launches the server as a local process on your machine.
  2. Shared State: Both the MCP server and the Studio UI point to the same .rigour folder in your project root.
  3. Air-Gapped Arbitration:
    • The MCP server writes an "interception requested" log.
    • The Studio UI (via EventStream) detects this change instantly and pauses the agent.
    • Your local decision (Approve/Reject) is written back to the log.
    • The local MCP server sees your decision and returns the result to the AI agent.

🛡️ Zero-Telemetry & Local Trust

Rigour is intentionally local-first. Unlike other governance tools that require cloud connectivity, Rigour's interception layer is built on a "Local Bridge" architecture:

  • Local Storage: All interception logs and human decisions are stored only in your .rigour/ folder.
  • Air-Gapped Sync: The synchronization between your AI agent and the Governance Studio happens entirely on your machine via the local filesystem.
  • Zero Push: We never push your source code, your command history, or your arbitration decisions to any external server.

This ensures that your project's engineering standards and command executions remain 100% private and under your total control.

🌐 Web vs. Desktop: The Governance Moat

FeatureDesktop (Cursor / Claude Desktop)Web (Claude.ai / ChatGPT)
File Access✅ Native (direct disk read/write)❌ Sandboxed (no local disk access)
Trust Model🛡️ Local Honest (100% Private)☁️ Cloud-Mediated (requires tunnel)
Setupnpx @rigour-labs/mcpHosted Connector + Tunnel

Why doesn't the Web App see my local files?

For security, your browser cannot run shell commands or read your hard drive. To bridge Rigour to a web app, you would need to use a Secure Tunnel (like ngrok) to expose a local SSE server.

[!IMPORTANT] To maintain the Local Honest moat, we recommend using Rigour with Desktop AI Agents. If you must use the web version, look into our Remote MCP Server for the E2E-encrypted connectivity.


💡 Pro Tip

Always keep the Rigour Studio open on a second monitor while working with MCP agents. It provides a visual audit trail of everything the agent is doing.