
Mcp Server Analyzer
io.github.Anselmoo由 GitHub 帳號 Anselmoo 發布v0.4.1更新於 Oct 24, 2026
MCP server for Python, JavaScript, and TypeScript code analysis with Ruff, ty, Vulture, and Biome
概覽
一個本機 MCP 伺服器,讓助理用 Ruff、ty、Vulture 和 Biome 對 Python 及 JavaScript/TypeScript 程式碼做檢查、格式化、型別檢查與死碼掃描。
- 可以做什麼
- 用 Ruff 對 Python 程式碼做 lint 與格式化,並可輸出適合 GitHub Actions、GitLab CI 等流程的 CI 格式結果。用 ty 做 Python 型別檢查,用 Vulture 找出未使用的匯入、函式與變數。用 Biome 對 JavaScript 和 TypeScript 程式碼做 lint 與格式化。執行 Ruff、ty、Vulture 的組合分析,回傳 0 到 100 的加權品質評分。
- 適用情境
- 適合需要助理審查或整理專案中 Python 或 JS/TS 程式碼的情況:找出風格問題與潛在缺陷、檢查型別安全、清除死碼,或在提交與程式碼審查前快速給出品質評估。
- 執行需求
- 以本機 stdio 程序執行,通常透過 uvx(PyPI 套件)或 Docker 啟動。需要 Python 3.13+ 以及 uv 或 pip;Biome 的 JS/TS 分析需要 Node.js 22+。未宣告需要帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Server Analyzer,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
MCP Server Analyzer for Python 🐍🔍
[CI/CD Pipeline] [PyPI version] [Python 3.13+] [Docker] [License: MIT] [Code Coverage] [AgentSeal MCP] [Docs]
A powerful Model Context Protocol (MCP) server that provides comprehensive Python code analysis using Ruff for linting, ty for type checking, and Vulture for dead code detection. Perfect for AI assistants, IDEs, and automated code review workflows.
🚀 Quick Start
VS Code Integration (One-Click Install)
For quick installation, use one of the one-click install buttons below...
[Install with UV in VS Code] [Install with UV in VS Code Insiders]
[Install with Docker in VS Code] [Install with Docker in VS Code Insiders]
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).
Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.
Note that the
mcpkey is needed when using themcp.jsonfile.
Using uvx (recommended):
Using Docker:
Universal Installation
📋 Features
- 🔍 RUFF Analysis: Comprehensive Python linting with auto-fixes
- 🧠 ty Type Checking: Fast Python type analysis with rule-based diagnostics
- 🧹 Dead Code Detection: Find unused imports, functions, and variables with VULTURE
- ⚡ Biome JS/TS Analysis: Fast linting and formatting for JavaScript and TypeScript
- 📊 Quality Scoring: Combined analysis with quality metrics
- 🚀 FastMCP Framework: High-performance MCP server implementation
- 🐳 Docker Ready: Multi-architecture containers with security signing
- 🔒 Secure: All releases signed with Sigstore for supply chain security
📈 Analysis Examples
RUFF Linting Preview
See comprehensive linting analysis examples: 📋 RUFF Analysis Preview
VULTURE Dead Code Detection Preview
Explore dead code detection capabilities: 🧹 VULTURE Analysis Preview
🛠️ Available Tools
🔧 Configuration
Claude Desktop
Add to your claude_desktop_config.json:
Zed
Add to your Zed settings.json:
Claude Code (project-level)
Place .mcp.json at your project root:
🧪 Development
Prerequisites
Setup
Testing
📊 Quality Metrics
The server provides quality scoring based on:
- Ruff Issues: Style violations, potential bugs, complexity metrics
- ty Diagnostics: Static typing errors and warnings
- Dead Code Detection: Unused imports, functions, variables
- Combined Score: Weighted quality assessment (0-100)
🔒 Security
- Signed Releases: All releases signed with Sigstore
- Container Signing: Docker images signed with Cosign
- Trusted Publishing: PyPI releases use GitHub OIDC trusted publishing
- Vulnerability Scanning: Automated security scanning in CI/CD
- Supply Chain Security: SLSA Build Level 3 compliance
- Security Policy: See SECURITY.md for vulnerability reporting
🔍 Data Handling & Transparency
- In-memory only: Code passed to tools is written to a temporary file, analyzed, and the file is deleted immediately — nothing is persisted between calls.
- No network calls: The server makes no outbound network connections during analysis.
- No telemetry: No usage data, analytics, or crash reports are collected.
- Subprocess isolation: ruff, ty, and vulture are invoked with fixed argument lists — no shell expansion or arbitrary command execution.
📚 Documentation
- Full Documentation - GitHub Pages docs
- Tools Reference - Detailed tool parameters and return types
- MCP Specification - Learn about Model Context Protocol
- FastMCP Framework - High-performance MCP implementation
- Ruff Documentation - Python linter and formatter
- ty Documentation - Python type checker and language server
- Vulture Documentation - Dead code finder
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes using Conventional Commits
- Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Astral for RUFF and uv
- Jendrik Seipp for VULTURE
- Model Context Protocol team
- FastMCP framework
Made with ❤️ for better Python code quality
來源:README.md,提交 ba675ff
工具
0版本歷史
1- v0.4.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分