@rigour-labs/mcp 5.3.2 → 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/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,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigour-labs/mcp",
3
- "version": "5.3.2",
3
+ "version": "5.3.3",
4
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
5
  "license": "MIT",
6
6
  "homepage": "https://rigour.run",
@@ -62,7 +62,7 @@
62
62
  "execa": "^8.0.1",
63
63
  "fs-extra": "^11.2.0",
64
64
  "yaml": "^2.8.2",
65
- "@rigour-labs/core": "5.3.2"
65
+ "@rigour-labs/core": "5.3.3"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/node": "^25.0.3",