Claude Code setup
- Edit
~/.claude/mcp.json(create if absent):
{
"mcpServers": {
"security-scanner": {
"command": "npx",
"args": ["-y", "@security-scanner/mcp-server"],
"env": { "SCANNER_API_KEY": "ss_live_…" }
}
}
}- Restart Claude Code.
- Run
/mcpin the Claude Code prompt to verify the server is connected. - Type
scan example.comin 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.