
Mcp Code Sanitizer
io.github.notasandy由 GitHub 帳號 notasandy 發布v0.1.0更新於 Oct 24, 2026
Strict AI code reviewer powered by Groq. Finds bugs and vulnerabilities.
概覽
一個使用 Groq 託管大型模型審查程式碼缺陷、安全性問題並產生測試的 MCP 伺服器。
- 可以做什麼
- 它提供多種工具:分析程式碼片段、比較兩個版本以找出回歸、依不同經驗程度解釋程式碼、為 pytest、jest 或 go test 產生測試、對磁碟上的整個檔案進行平行分塊分析,以及產生 HTML 報告。結果包含 0–100 的分數、依嚴重程度排序的問題與修正建議,以及警告。內建含 TTL 的記憶體 LRU 快取會保存先前的分析。
- 適用情境
- 當你希望助理進行嚴格程式碼審查、找出 SQL 注入等漏洞、比較重構前後的版本,或起草單元測試時使用。適合個人開發者,也適合為提取要求新增自動審查的團隊。
- 執行需求
- 以本機 Python 程序執行,通常透過 uvx 或 python server.py 啟動。需要 Groq API 金鑰,透過 GROQ_API_KEY 環境變數提供,並需要連線至 Groq API 的網路。選用設定包括 GROQ_MODEL、CACHE_TTL 與 CACHE_MAX。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Code Sanitizer,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-code-sanitizer
Strict AI-powered code reviewer for Claude Desktop, Cursor, VS Code, and Claude Code CLI. Finds bugs, vulnerabilities, and security issues — powered by Groq (free API).
[Python] [PyPI] [FastMCP] [Groq] [License]
Features
Example output
Installation
Prerequisite: Get a free Groq API key at console.groq.com/keys — no credit card required.
Claude Code CLI
Claude Desktop
Cursor
Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):
VS Code
Requires VS Code 1.99+ with GitHub Copilot. Create .vscode/mcp.json in your project:
Or add globally via Ctrl+Shift+P → "MCP: Add Server".
Don't have
uvx? Install it withpip install uv, then use the commands above.
Manual install (alternative)
If you prefer cloning the repo:
Then point the client config to:
GitHub Action — automatic PR review
Add AI code review to any repository in 5 lines. The action posts a structured comment on every PR with score, issues, and fix suggestions.
Add GROQ_API_KEY to your repository secrets → Settings → Secrets → Actions.
The action automatically:
- Reviews only changed files (up to 10 per PR)
- Posts a score and structured issue list as a PR comment
- Fails the check if critical issues are found
Usage in chat
After connecting, just write naturally:
Or call tools explicitly:
Architecture
Configuration
All settings via .env or environment variables:
Available Groq models
Contributing
PRs and Issues are welcome. Most wanted:
- Support for other LLM providers (OpenAI, Anthropic)
- New tools: dependency audit, complexity score, docstring generator
- Prompt improvements and new language support
License
MIT — do whatever you want. A star would be appreciated.
Links
來源:README.md,提交 9fa6a25
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分