Skip to content
VS Code

GhostFree for VS Code

io.github.shane-js/ghostfree

MCP server that scans your repo's dependencies for security vulnerabilities based on published CVEs.

client:VS Code transport:stdio runtime:npm

Install GhostFree in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ghostfree-dir",
      "description": "GHOSTFREE_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ghostfree-min-severity",
      "description": "GHOSTFREE_MIN_SEVERITY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nvd-api-key",
      "description": "NVD_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "ghostfree": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ghostfree"
      ],
      "env": {
        "GHOSTFREE_DIR": "${input:ghostfree-dir}",
        "GHOSTFREE_MIN_SEVERITY": "${input:ghostfree-min-severity}",
        "NVD_API_KEY": "${input:nvd-api-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

GhostFree in other clients