security-mcp 1.0.3 → 1.0.4

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.
@@ -3,13 +3,14 @@
3
3
  *
4
4
  * Auto-detects installed editors and writes MCP server config + Claude Code skill.
5
5
  */
6
- import { readFileSync, writeFileSync, mkdirSync, existsSync, copyFileSync } from "fs";
7
- import { dirname, join, resolve } from "path";
8
- import { homedir, platform } from "os";
9
- import { fileURLToPath } from "url";
6
+ import { readFileSync, writeFileSync, mkdirSync, existsSync, copyFileSync } from "node:fs";
7
+ import { dirname, join, resolve } from "node:path";
8
+ import { homedir, platform } from "node:os";
9
+ import { fileURLToPath } from "node:url";
10
10
  const __dirname = dirname(fileURLToPath(import.meta.url));
11
11
  const PKG_ROOT = resolve(__dirname, "../..");
12
12
  const MCP_ENTRY = {
13
+ type: "stdio",
13
14
  command: "npx",
14
15
  args: ["-y", "security-mcp", "serve"]
15
16
  };
@@ -27,7 +28,7 @@ function getVsCodeSettingsPath() {
27
28
  return join(homedir(), ".config", "Code", "User", "settings.json");
28
29
  }
29
30
  function getEditorTargets(opts) {
30
- const claudeCodePath = resolveHome("~/.claude/settings.json");
31
+ const claudeCodePath = resolveHome("~/.claude.json");
31
32
  const cursorGlobalPath = resolveHome("~/.cursor/mcp.json");
32
33
  const cursorLocalPath = ".cursor/mcp.json";
33
34
  const vscodePath = getVsCodeSettingsPath();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "security-mcp",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "AI security MCP server and enforcement gate for Claude Code, Cursor, GitHub Copilot, Codex, Replit, and any MCP-compatible editor. Applies OWASP, MITRE ATT&CK, NIST, Zero Trust, PCI DSS, SOC 2, and ISO 27001.",
5
5
  "type": "module",
6
6
  "license": "MIT",