Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@rigour-labs/mcp

Package Overview
Dependencies
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rigour-labs/mcp

MCP server + live dashboard for AI code governance — OWASP LLM Top 10 (10/10), real-time MCP App UI, 25+ security patterns, Bayesian learning Brain, hallucinated import detection, multi-agent governance. Works with Claude, Cursor, VS Code, ChatGPT, Goose,

latest
Source
npmnpm
Version
5.2.9
Version published
Weekly downloads
316
58.79%
Maintainers
4
Weekly downloads
 
Created
Source

🛡️ Rigour MCP Server

AI Agent Governance via Model Context Protocol — quality gates, DLP, drift detection, and deep analysis.

Rigour is a local-first MCP server that governs AI agents (Claude, Cursor, Cline, Windsurf) with deterministic quality gates, credential interception, and memory governance.

Registry npm version

🚀 Overview

Rigour moves code quality enforcement from "Post-Commit" to "In-Progress." By running as an MCP server inside your editor, it provides the AI with a deterministic PASS/FAIL loop, preventing "Vibe Coding" and broken builds.

Key Features:

  • 27+ Quality Gates: Deterministic checks for file size, complexity, hygiene, security, and AI-native drift detection.
  • 8-Language Hallucination Detection: JS/TS, Python, Go, Ruby, C#/.NET, Rust, Java, and Kotlin — with stdlib whitelists, dependency manifest parsing, and project-relative import resolution.
  • AI Agent DLP: 29 credential patterns intercepted before agents see them (<50ms). Anti-evasion: unicode normalization, entropy detection, bidi stripping.
  • Memory & Skills Governance: Blocks agent writes to native memory files (CLAUDE.md, .clinerules, .windsurf/memories/); forces DLP-scanned rigour_remember instead.
  • Real-Time Hooks: Sub-200ms file-write hooks for Claude Code, Cursor, Cline, and Windsurf — catches issues as the AI writes, not after CI.
  • Two-Score System: Separate AI Health Score and Structural Score with provenance tracking (ai-drift, traditional, security, governance).
  • Deep Analysis: Five-signal LLM pipeline (AST facts, embeddings, style fingerprints, logic baselines, dependency graphs) with deterministic verification.
  • Multi-Agent Governance: Agent registration, scope isolation, checkpoint supervision, and verified handoffs.
  • Industry Presets: SOC2, HIPAA, FedRAMP-ready gate configurations.
  • Local-First: Deterministic gates run locally. Cloud deep analysis is opt-in BYOK.

🛠️ Available Tools (25)

Core Quality Tools

ToolDescription
rigour_checkRuns all configured quality gates on the current workspace.
rigour_explainExplains why a specific gate failed with actionable fix instructions.
rigour_statusQuick PASS/FAIL check with JSON-friendly output for polling.
rigour_get_fix_packetRetrieves prioritized Fix Packet (v2) with severity and provenance.
rigour_list_gatesLists all configured quality gates and their thresholds.
rigour_get_configReturns the current rigour.yml configuration.
rigour_check_patternChecks if a proposed code pattern already exists in the codebase.
rigour_security_auditRuns a live CVE check on project dependencies.
rigour_reviewHigh-fidelity code review on a PR diff against all quality gates.

Memory & Context Tools

ToolDescription
rigour_rememberDLP-gated persistent memory — scans values before storing.
rigour_recallDLP-gated recall — blocks tainted memories on read.
rigour_forgetRemoves a stored memory by key.

Real-Time Hooks & DLP

ToolDescription
rigour_hooks_checkFast hook checker on specific files (<200ms). Also accepts text param for DLP mode — scans user input for credentials (AWS keys, API tokens, database URLs, private keys, JWTs) before agent processing.
rigour_hooks_initGenerate hook configs for Claude, Cursor, Cline, or Windsurf. Installs quality hooks + DLP pre-input hooks by default. Pass dlp: false to skip DLP.

Deep Analysis

ToolDescription
rigour_check_deepLLM-powered code review with five-signal extraction → verification pipeline. Local-first or cloud BYOK.
rigour_deep_statsScore history, trend analysis, and top issues from SQLite storage.

Supervisor & Execution

ToolDescription
rigour_runExecutes a command under Rigour supervision with human arbitration.
rigour_run_supervisedFull supervisor mode — iterative command + gate check loop.

Settings

ToolDescription
rigour_mcp_get_settingsGet MCP runtime settings (.rigour/mcp-settings.json).
rigour_mcp_set_settingsSet MCP runtime settings (e.g., deep_default_mode).

Multi-Agent Governance

ToolDescription
rigour_agent_registerRegister agent in session with scope conflict detection.
rigour_agent_deregisterRemove agent from session when work is complete.
rigour_checkpointRecord quality checkpoint with drift detection.
rigour_handoffInitiate task handoff to another agent.
rigour_handoff_acceptAccept a pending handoff from another agent.

🌐 Language Support

Hallucinated import detection with full stdlib whitelists and dependency manifest parsing:

LanguageStdlibDependency ManifestImport Patterns
JavaScript/TypeScriptNode.js 22.x builtinspackage.jsonimport, require(), export from
Python160+ stdlib modules (3.12+)Local module resolutionimport, from ... import
Go150+ stdlib packages (1.22+)go.mod module pathimport "...", aliased imports
Ruby80+ stdlib gems (3.3+ MRI)Gemfile, .gemspecrequire, require_relative
C# / .NET.NET 8 framework namespaces.csproj (NuGet PackageReference)using, using static
Ruststd/core/alloc/proc_macroCargo.toml (with -_)use, extern crate, pub use
Javajava.*/javax.*/jakarta.*build.gradle, pom.xmlimport, import static
Kotlinkotlin.*/kotlinx.* + Java interopbuild.gradle.ktsimport

📦 Installation

1. Install via npm

npm install -g @rigour-labs/mcp

2. Configure your IDE

Cursor / Claude Desktop

Add the following to your MCP settings:

{
  "mcpServers": {
    "rigour": {
      "command": "npx",
      "args": ["-y", "@rigour-labs/mcp"],
      "env": {
        "RIGOUR_CWD": "/path/to/your/project"
      }
    }
  }
}

📖 Documentation

For full configuration and advanced usage, visit docs.rigour.run.

📜 License

MIT © Rigour Labs

Keywords

ai

FAQs

Package last updated on 18 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts