Claude Code setup

  1. Edit ~/.claude/mcp.json (create if absent):
{
  "mcpServers": {
    "security-scanner": {
      "command": "npx",
      "args": ["-y", "@security-scanner/mcp-server"],
      "env": { "SCANNER_API_KEY": "ss_live_…" }
    }
  }
}
  1. Restart Claude Code.
  2. Run /mcp in the Claude Code prompt to verify the server is connected.
  3. Type scan example.com in any conversation. Claude will invoke the MCP tool.

Per-project config

Claude Code also reads .mcp.json from the project root. Use this to scope keys to specific repos.