@nerdsystem/mcp 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/server.js +3 -1
  2. package/package.json +2 -2
package/dist/server.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createRequire } from "node:module";
1
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
3
  import { z } from "zod";
3
4
  import { gateSummary, RULES, ruleFor, skippedGates } from "nerdsystem/gates";
@@ -9,7 +10,8 @@ import { findProjectRoot } from "nerdsystem/project";
9
10
  * dashboard and GitHub check runs show.
10
11
  */
11
12
  export function createServer(cwd = process.cwd()) {
12
- const server = new McpServer({ name: "nerdsystem", version: "0.0.1" });
13
+ const { version } = createRequire(import.meta.url)("../package.json");
14
+ const server = new McpServer({ name: "nerdsystem", version });
13
15
  server.registerTool("run_gates", {
14
16
  title: "Run nerdsystem security gates",
15
17
  description: "Runs the gates a deploy runs (secrets, dependencies, platform rules, acceptable use, personal data, typecheck, suppressions; and the built bundle if dist/ exists) against the working tree. Returns failures with rule_id, file, line, risk, fix, verify, attempt, and audience. Fix every failure with audience \"agent\", then run again; stop and tell the person about anything with audience \"human\" or when `stop` is non-empty.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nerdsystem/mcp",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "MCP server that lets coding agents run nerdsystem's security gates and read fix instructions.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@modelcontextprotocol/sdk": "^1.32.2",
25
25
  "zod": "^4.6.7",
26
- "nerdsystem": "0.0.9"
26
+ "nerdsystem": "0.0.10"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.0.0",