sourcery

v0.2.1
io.github.abyssbugg/sourcery Checked 3 days ago Published 2 months ago

Sourcery security findings: MCP server, CLI, and fix-prompt builder over the Sourcery API.

Values you need

VariableWhat it is
SOURCERY_API_KEYrequired 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.1
Add 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

  1. Ask the user for: SOURCERY_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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