@rigour-labs/mcp 5.3.1 → 5.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ashutosh (https://github.com/erashu212), Rigour Labs.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -125,7 +125,7 @@ Add the following to your MCP settings:
125
125
  "mcpServers": {
126
126
  "rigour": {
127
127
  "command": "npx",
128
- "args": ["-y", "@rigour-labs/mcp"],
128
+ "args": ["-y", "@rigour-labs/mcp@5.3.2"],
129
129
  "env": {
130
130
  "RIGOUR_CWD": "/path/to/your/project"
131
131
  }
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ import { GateRunner } from "@rigour-labs/core";
15
15
  // Utils
16
16
  import { loadConfig, loadMcpSettings, logStudioEvent } from './utils/config.js';
17
17
  import { bindServer } from './utils/notifications.js';
18
+ import { getMcpVersion } from './utils/package-version.js';
18
19
  // Dashboard (MCP App)
19
20
  import { DASHBOARD_URI, getDashboardHtml, pushTimelineEntry, updateScore } from './dashboard/index.js';
20
21
  // Tool definitions
@@ -33,7 +34,7 @@ import { handleContextStats, handleTaskCost, handleCacheStats, handleContextExpl
33
34
  import { handleIndex } from './tools/index-handlers.js';
34
35
  import { recordContextEvent, estimateTokenCount } from '@rigour-labs/core';
35
36
  // ─── Server Setup ─────────────────────────────────────────────────
36
- const server = new Server({ name: "rigour-mcp", version: "3.0.1" }, { capabilities: { tools: {}, prompts: {}, logging: {}, resources: {} } });
37
+ const server = new Server({ name: "rigour-mcp", version: getMcpVersion('5.3.2') }, { capabilities: { tools: {}, prompts: {}, logging: {}, resources: {} } });
37
38
  // Bind server for logging notifications from handlers
38
39
  bindServer(server);
39
40
  // ─── Tool Listing ─────────────────────────────────────────────────
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Resolve MCP package version from local package.json at runtime.
3
+ * Works for source and built dist paths.
4
+ */
5
+ export declare function getMcpVersion(fallback?: string): string;
@@ -0,0 +1,23 @@
1
+ import { existsSync, readFileSync } from "fs";
2
+ import { dirname, resolve } from "path";
3
+ import { fileURLToPath } from "url";
4
+ /**
5
+ * Resolve MCP package version from local package.json at runtime.
6
+ * Works for source and built dist paths.
7
+ */
8
+ export function getMcpVersion(fallback = "0.0.0") {
9
+ try {
10
+ const modulePath = fileURLToPath(import.meta.url);
11
+ const pkgPath = resolve(dirname(modulePath), "../../package.json");
12
+ if (existsSync(pkgPath)) {
13
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
14
+ if (pkg.version && pkg.version.trim().length > 0) {
15
+ return pkg.version;
16
+ }
17
+ }
18
+ }
19
+ catch {
20
+ // Fall through to fallback.
21
+ }
22
+ return fallback;
23
+ }
package/package.json CHANGED
@@ -1,76 +1,76 @@
1
1
  {
2
- "name": "@rigour-labs/mcp",
3
- "version": "5.3.1",
4
- "description": "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, Windsurf. Industry presets for HIPAA, SOC2, FedRAMP.",
5
- "license": "MIT",
6
- "homepage": "https://rigour.run",
7
- "icon": "https://raw.githubusercontent.com/rigour-labs/rigour/main/docs/assets/icon.svg",
8
- "keywords": [
9
- "ai",
10
- "llm",
11
- "mcp",
12
- "mcp-app",
13
- "mcp-server",
14
- "model-context-protocol",
15
- "ai-agent",
16
- "ai-code-governance",
17
- "owasp-llm-top-10",
18
- "bayesian-learning",
19
- "real-time-hooks",
20
- "security-patterns",
21
- "hallucinated-imports",
22
- "vibe-coding",
23
- "claude",
24
- "cursor",
25
- "cline",
26
- "windsurf",
27
- "copilot",
28
- "gemini",
29
- "codex",
30
- "chatgpt",
31
- "goose",
32
- "multi-agent-governance",
33
- "quality-gates",
34
- "fix-packets",
35
- "agent-governance",
36
- "drift-detection",
37
- "live-dashboard",
38
- "code-quality",
39
- "ai-safety",
40
- "deep-learning",
41
- "rlaif"
42
- ],
43
- "type": "module",
44
- "mcpName": "io.github.rigour-labs/rigour",
45
- "files": [
46
- "dist",
47
- "README.md"
48
- ],
49
- "bin": {
50
- "rigour-mcp": "dist/index.js"
51
- },
52
- "repository": {
53
- "type": "git",
54
- "url": "https://github.com/rigour-labs/rigour"
55
- },
56
- "publishConfig": {
57
- "access": "public",
58
- "provenance": true
59
- },
60
- "scripts": {
61
- "build": "tsc",
62
- "start": "node dist/index.js",
63
- "test": "vitest run"
64
- },
65
- "dependencies": {
66
- "@modelcontextprotocol/sdk": "^1.25.2",
67
- "@rigour-labs/core": "workspace:*",
68
- "execa": "^8.0.1",
69
- "fs-extra": "^11.2.0",
70
- "yaml": "^2.8.2"
71
- },
72
- "devDependencies": {
73
- "@types/node": "^25.0.3",
74
- "vitest": "^1.0.0"
75
- }
76
- }
2
+ "name": "@rigour-labs/mcp",
3
+ "version": "5.3.3",
4
+ "description": "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, Windsurf. Industry presets for HIPAA, SOC2, FedRAMP.",
5
+ "license": "MIT",
6
+ "homepage": "https://rigour.run",
7
+ "icon": "https://raw.githubusercontent.com/rigour-labs/rigour/main/docs/assets/icon.svg",
8
+ "keywords": [
9
+ "ai",
10
+ "llm",
11
+ "mcp",
12
+ "mcp-app",
13
+ "mcp-server",
14
+ "model-context-protocol",
15
+ "ai-agent",
16
+ "ai-code-governance",
17
+ "owasp-llm-top-10",
18
+ "bayesian-learning",
19
+ "real-time-hooks",
20
+ "security-patterns",
21
+ "hallucinated-imports",
22
+ "vibe-coding",
23
+ "claude",
24
+ "cursor",
25
+ "cline",
26
+ "windsurf",
27
+ "copilot",
28
+ "gemini",
29
+ "codex",
30
+ "chatgpt",
31
+ "goose",
32
+ "multi-agent-governance",
33
+ "quality-gates",
34
+ "fix-packets",
35
+ "agent-governance",
36
+ "drift-detection",
37
+ "live-dashboard",
38
+ "code-quality",
39
+ "ai-safety",
40
+ "deep-learning",
41
+ "rlaif"
42
+ ],
43
+ "type": "module",
44
+ "mcpName": "io.github.rigour-labs/rigour",
45
+ "files": [
46
+ "dist",
47
+ "README.md"
48
+ ],
49
+ "bin": {
50
+ "rigour-mcp": "dist/index.js"
51
+ },
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "https://github.com/rigour-labs/rigour"
55
+ },
56
+ "publishConfig": {
57
+ "access": "public",
58
+ "provenance": true
59
+ },
60
+ "dependencies": {
61
+ "@modelcontextprotocol/sdk": "^1.25.2",
62
+ "execa": "^8.0.1",
63
+ "fs-extra": "^11.2.0",
64
+ "yaml": "^2.8.2",
65
+ "@rigour-labs/core": "5.3.3"
66
+ },
67
+ "devDependencies": {
68
+ "@types/node": "^25.0.3",
69
+ "vitest": "^1.0.0"
70
+ },
71
+ "scripts": {
72
+ "build": "tsc",
73
+ "start": "node dist/index.js",
74
+ "test": "vitest run"
75
+ }
76
+ }