mcp-code-sanitizer

v0.1.0
io.github.notasandy/mcp-code-sanitizer Checked 1 day ago Published 7 months ago

Strict AI code reviewer powered by Groq.

Values you need

VariableWhat it is
GROQ_API_KEYrequired secret Groq API key from console.groq.com/keys

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add mcp-code-sanitizer -e 'GROQ_API_KEY=<GROQ_API_KEY>' -- uvx --from mcp-code-sanitizer==0.1.0 code-sanitizer
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-code-sanitizer": {
      "args": [
        "--from",
        "mcp-code-sanitizer==0.1.0",
        "code-sanitizer"
      ],
      "command": "uvx",
      "env": {
        "GROQ_API_KEY": "<GROQ_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-code-sanitizer": {
      "args": [
        "--from",
        "mcp-code-sanitizer==0.1.0",
        "code-sanitizer"
      ],
      "command": "uvx",
      "env": {
        "GROQ_API_KEY": "<GROQ_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GROQ_API_KEY",
      "id": "groq-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-code-sanitizer": {
      "args": [
        "--from",
        "mcp-code-sanitizer==0.1.0",
        "code-sanitizer"
      ],
      "command": "uvx",
      "env": {
        "GROQ_API_KEY": "${input:groq-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-code-sanitizer]
command = "uvx"
args = ["--from", "mcp-code-sanitizer==0.1.0", "code-sanitizer"]
env = { "GROQ_API_KEY" = "<GROQ_API_KEY>" }

For AI agents

  1. Ask the user for: GROQ_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: analyze_code, compare_code, explain_code, generate_tests, analyze_file, cache_info, generate_report.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json