@nerdsystem/mcp 0.0.5 → 0.0.7

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 -2
  2. package/package.json +2 -2
package/dist/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { z } from "zod";
3
- import { RULES, ruleFor } from "nerdsystem/gates";
3
+ import { gateSummary, RULES, ruleFor, skippedGates } from "nerdsystem/gates";
4
4
  import { runVerify } from "nerdsystem/commands/verify";
5
5
  import { findProjectRoot } from "nerdsystem/project";
6
6
  /**
@@ -28,7 +28,8 @@ export function createServer(cwd = process.cwd()) {
28
28
  stop: out.stop,
29
29
  failures: out.failures,
30
30
  summary: out.results.map((r) => ({ gate: r.name, status: r.status, summary: r.summary })),
31
- next: out.ok ? "All gates pass. Deploy with `nerd deploy` or push." : out.stop.length ? "Stop: these rules have failed too many times in a row. Tell the person and wait." : out.failures.some((f) => f.audience === "human" && f.severity === "block") ? "Some findings need a person (audience \"human\"). Fix the agent ones, then tell the person about the rest." : "Fix each failure, then call run_gates again (it re-runs every gate).",
31
+ skipped: skippedGates(out.results),
32
+ next: out.ok ? `${gateSummary(out.results)}. Deploy with \`nerd deploy\` or push.` : out.stop.length ? "Stop: these rules have failed too many times in a row. Tell the person and wait." : out.failures.some((f) => f.audience === "human" && f.severity === "block") ? "Some findings need a person (audience \"human\"). Fix the agent ones, then tell the person about the rest." : "Fix each failure, then call run_gates again (it re-runs every gate).",
32
33
  };
33
34
  return { content: [{ type: "text", text: JSON.stringify(payload, null, 2) }], isError: !out.ok };
34
35
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nerdsystem/mcp",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
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.5"
26
+ "nerdsystem": "0.0.7"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.0.0",