sourcery
v0.2.1Sourcery security findings: MCP server, CLI, and fix-prompt builder over the Sourcery API.
Values you need
| Variable | What it is | |
|---|---|---|
SOURCERY_API_KEY | required secret | Sourcery Team-plan API key with security scanning enabled |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add sourcery -e 'SOURCERY_API_KEY=<SOURCERY_API_KEY>' -- npx -y @abyssbugg/sourcery@0.2.1Add to
claude_desktop_config.json{
"mcpServers": {
"sourcery": {
"args": [
"-y",
"@abyssbugg/sourcery@0.2.1"
],
"command": "npx",
"env": {
"SOURCERY_API_KEY": "<SOURCERY_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"sourcery": {
"args": [
"-y",
"@abyssbugg/sourcery@0.2.1"
],
"command": "npx",
"env": {
"SOURCERY_API_KEY": "<SOURCERY_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SOURCERY_API_KEY",
"id": "sourcery-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"sourcery": {
"args": [
"-y",
"@abyssbugg/sourcery@0.2.1"
],
"command": "npx",
"env": {
"SOURCERY_API_KEY": "${input:sourcery-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.sourcery]
command = "npx"
args = ["-y", "@abyssbugg/sourcery@0.2.1"]
env = { "SOURCERY_API_KEY" = "<SOURCERY_API_KEY>" }For AI agents
- Ask the user for: SOURCERY_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: sourcery_capabilities, sourcery_security_snapshot, sourcery_list_findings, sourcery_get_finding, sourcery_get_security_counts, sourcery_bulk_update_findings, sourcery_list_groups, sourcery_get_group, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json