
codacy/codacy-mcp-server 是从 https://github.com/codacy/codacy-mcp-server. 导入的 MCP 服务器候选。
概览
codacy/codacy-mcp-server 是从 https://github.com/codacy/codacy-mcp-server. 导入的 MCP 服务器候选。
概述(AI 翻译)
Codacy API 的 MCP 服务器,支持访问仓库、文件、质量、覆盖范围、安全性等。
目录
- 功能 / 工具
- 仓库的建立与管理
- 组织与存储库管理
- 代码质量与分析
- 文件管理与分析
- 证券分析
- 拉取请求分析
- 工具与模式管理
- CLI 分析
- 设置
- 要求
- 个人API访问令牌
- 安装
- Cursor、风帆冲浪等
- 带有副驾驶的VS代码
- 故障排除
- 贡献
- Codacy-CLI 支持
- 许可证
功能 / 工具
以下工具可通过Codacy MCP服务器获得:
仓库设置与管理
codacy_setup_repository:如果没有的话,添加或跟踪 Codacy 中的仓库。该工具确保仓库已向 Codacy 注册,便于进一步分析和管理。
组织与仓库管理
codacy_list_organizations:列出支持分页的组织。codacy_list_organization_repositories:列出组织中的存储库,支持分页。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Codacy MCP Server
MCP Server for the Codacy API, enabling access to repositories, files, quality, coverage, security and more.
Table of Contents
Features / Tools
The following tools are available through the Codacy MCP Server:
Repository Setup and Management
codacy_setup_repository: Add or follow a repository in Codacy if not already present. This tool ensures the repository is registered with Codacy, allowing further analysis and management.
Organization and Repository Management
codacy_list_organizations: List organizations with pagination support.codacy_list_organization_repositories: List repositories in an organization with pagination support.codacy_get_repository_with_analysis: Get repository with analysis information, including metrics for Grade, Issues, Duplication, Complexity, and Coverage.
Code Quality and Analysis
-
codacy_list_repository_issues: Lists and filters code quality issues in a repository. This is the primary tool for investigating general code quality concerns (e.g. best practices, performance, complexity, style) but NOT security issues. For security-related issues, use the SRM items tool instead. Features include:- Pagination support for handling large result sets
- Filtering by multiple criteria including severity, category, and language
- Author-based filtering for accountability
- Branch-specific analysis
- Pattern-based searching
Common use cases:
- Code quality audits
- Technical debt assessment
- Style guide compliance checks
- Performance issue investigation
- Complexity analysis
File Management and Analysis
codacy_list_files: List files in a repository with pagination support.codacy_get_file_issues: Get the issue list for a file in a repository.
安装
npx -y @codacy/codacy-mcp配置
{
"mcpServers": {
"codacy": {
"command": "npx",
"args": ["-y", "@codacy/codacy-mcp"],
"env": {
"CODACY_ACCOUNT_TOKEN": "<YOUR_TOKEN>"
}
}
}
}