@rigour-labs/mcp 6.5.0 → 6.5.1
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/dist/index.js +4 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
|
11
11
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
12
12
|
import { CallToolRequestSchema, ListToolsRequestSchema, ListPromptsRequestSchema, GetPromptRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
13
13
|
import { randomUUID } from "crypto";
|
|
14
|
-
import { GateRunner } from "@rigour-labs/core";
|
|
14
|
+
import { GateRunner, countUsage, flushDailyUsage } 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';
|
|
@@ -337,9 +337,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
337
337
|
catch {
|
|
338
338
|
// Client doesn't support resource notifications — fine
|
|
339
339
|
}
|
|
340
|
+
countUsage(`mcp:${name}`);
|
|
340
341
|
return result;
|
|
341
342
|
}
|
|
342
343
|
catch (error) {
|
|
344
|
+
countUsage(`mcp_error:${name}`);
|
|
343
345
|
const errorResponse = {
|
|
344
346
|
content: [{ type: "text", text: `RIGOUR ERROR: ${error.message}` }],
|
|
345
347
|
isError: true,
|
|
@@ -479,6 +481,7 @@ async function main() {
|
|
|
479
481
|
}
|
|
480
482
|
const transport = new StdioServerTransport();
|
|
481
483
|
await server.connect(transport);
|
|
484
|
+
void flushDailyUsage(); // a day's agent activity, if a day has passed; never awaited by the agent
|
|
482
485
|
console.error("Rigour MCP server v4.0.0 running on stdio");
|
|
483
486
|
}
|
|
484
487
|
main().catch((error) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/mcp",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.1",
|
|
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
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"execa": "^8.0.1",
|
|
66
66
|
"fs-extra": "^11.4.0",
|
|
67
67
|
"yaml": "^2.8.2",
|
|
68
|
-
"@rigour-labs/core": "6.5.
|
|
68
|
+
"@rigour-labs/core": "6.5.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/node": "^25.0.3",
|