Rigour

Created By
rigour-labs4 months ago
Deterministic quality gates for AI coding agents. Rigour runs 23 automated checks on every file AI writes — structural analysis, security scanning, AI-drift detection, and agent governance. Works as an MCP server for Claude Desktop, Cursor, and Cline. Supports TypeScript, JavaScript, Python, Go, Ruby, and C#. Forces AI agents to write production-grade code with PASS/FAIL enforcement.
Overview

Paste this in the Content field:

# Rigour — Deterministic Quality Gates for AI Coding Agents

Rigour is an MCP server that forces AI agents to write production-grade code. It runs 23 automated quality checks on every file the agent writes, returning PASS/FAIL results that the agent must address before proceeding.

## Why Rigour?

AI coding agents (Claude, GPT, Copilot) generate code fast — but without quality enforcement. Rigour acts as a leash, not a suggestion. Every file gets scanned for:

- **Structural issues**: file size, cyclomatic complexity, deep nesting, long functions
- **Security vulnerabilities**: SQL injection, XSS, hardcoded secrets, command injection, path traversal
- **AI-drift patterns**: duplicated functions across files, hallucinated imports, context window quality degradation, inconsistent error handling
- **Agent governance**: retry loop breaking, checkpoint enforcement, environment alignment

## Two-Score System

Every scan produces:
- **AI Health Score** — measures AI-specific code quality (drift, hallucinations, async safety)
- **Structural Score** — measures traditional code quality (complexity, size, patterns)

Both scores use severity-weighted deductions: critical issues cost 20 points, high costs 10, medium costs 5.

## Quick Start

Add to your Claude Desktop or Cursor config:

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

Supported Languages

TypeScript, JavaScript, Python, Go, Ruby, C#

Server Config

{
  "mcpServers": {
    "rigour": {
      "command": "npx",
      "args": [
        "-y",
        "@rigour-labs/mcp"
      ]
    }
  }
}
Project Info
Created At
4 months ago
Updated At
4 months ago
Author Name
rigour-labs
Star
-
Language
-
License
-
Category

Recommend Servers

View All
AI Work Market — USDC settlement rails for AI labor on Base Mainnet)
@Dario (DME)

AI Work Market is a USDC escrow protocol on Base Mainnet, designed for autonomous AI agents to find work, post jobs, and settle payments without humans in the loop. This MCP server exposes 10 tools: **Escrow lifecycle** - `create_intent_quote` — get calldata + gas estimate for funding a new escrow intent - `submit_proof_quote` — get calldata for the seller to submit a proof URI - `release_funds_quote` — get calldata for the buyer to release payment (or claim/refund) **x402 single-call binding** - `x402_consume` — replaces the 5-step x402 flow with one HMAC-signed POST that returns a delivery URL **Onboarding & discovery** - `agent_onboard` — generate a signed agent card with marketplace attestation - `agent_search` — tf-idf search over the live agent catalog - `agent_reputation` — server-side reputation from on-chain Released/Refunded/Disputed events **Live state** - `system_status` — live on-chain state (nextIntentId, accumulatedFees, contract balance, owner) - `escrow_rules` — contract semantics, lifecycle, call guides, failure modes - `events_subscribe` — SSE stream of new on-chain intent events All endpoints are serverless (Vercel) and return their schema on GET. No browser, no wallet UI required for an agent to integrate. The protocol takes a 1% commission on every settlement; the rest goes to the seller. The full AgentCard is at `/.well-known/agent-card.json` (A2A-compatible). The OpenAPI 3.0.3 spec is at `/.well-known/openapi.json` with `components.securitySchemes` (none, hmacX402). `robots.txt` allows GPTBot, ClaudeBot, anthropic-ai, PerplexityBot, Google-Extended, Applebot-Extended, CCBot, Amazonbot.

8 hours ago