com.codescene/codescene-mcp-server
平台与服务by codescene-oss
一个提供 CodeScene Code Health 分析工具的 MCP server,帮助评估代码健康状况。
什么是 com.codescene/codescene-mcp-server?
一个提供 CodeScene Code Health 分析工具的 MCP server,帮助评估代码健康状况。
README
CodeScene MCP Server
The CodeScene MCP Server exposes CodeScene's Code Health analysis as local AI-friendly tools.
This server is designed to run in your local environment and lets AI assistants (like GitHub Copilot, Cursor, Claude code, etc.) request meaningful Code Health insights directly from your codebase. The Code Health insights augment the AI prompts with rich content around code quality issues, maintainability problems, and technical debt in general.
The repository also includes a downloadable set of public agent skills in skills/ for teams that want to reuse CodeScene MCP workflows in their own agentic pipelines.
Getting Started with CodeScene MCP
Want AI to perform the setup? Start with skills/installing-and-activating-codescene-mcp/SKILL.md.
- Get an Access Token for the MCP Server — see Getting a Personal Access Token.
- Install the MCP Server using one of the installation options below.
- Add the MCP Server to your AI assistant. See the detailed instructions for your environment in the installation guide.
- Copy the agent guidance that matches your license into your repository: AGENTS-full.md for CodeScene Core users, AGENTS-standalone.md for standalone license users, or .amazonq/rules for Amazon Q. Also copy any relevant public skills for reusable workflow prompts.
- Explore the available tools to see what the MCP Server can do and which tools are available for your license.
Installation
Choose the installation method that works best for your platform.
<details> <summary><b>NPM / npx (macOS, Linux, Windows)</b></summary>Run the MCP server directly with npx (no install needed):
npx @codescene/codehealth-mcp
Or install globally:
npm install -g @codescene/codehealth-mcp
The first run automatically downloads the correct platform-specific binary for your system and caches it for future use. Requires Node.js 18 or later.
📖 Full installation & integration guide
</details> <details> <summary><b>Claude Code</b></summary>Add the CodeScene marketplace and install the plugin:
/plugin marketplace add codescene-oss/codescene-mcp-server
/plugin install codescene@codescene
This installs the MCP server and Code Health skills. Requires Node.js 18 or later.
</details> <details> <summary><b>Claude Desktop</b></summary>Download the MCP bundle from the latest release page:
codehealth-mcp-{version}.mcpb
Then open the .mcpb file with Claude Desktop to install the MCP server.
The CodeScene MCP is available as a VS Code extension:
</details> <details> <summary><b>Homebrew (macOS / Linux)</b></summary>brew tap codescene-oss/codescene-mcp-server https://github.com/codescene-oss/codescene-mcp-server
brew trust codescene-oss/codescene-mcp-server
brew install cs-mcp
📖 Full installation & integration guide
</details> <details> <summary><b>Windows</b></summary>Run this in PowerShell:
irm https://raw.githubusercontent.com/codescene-oss/codescene-mcp-server/main/install.ps1 | iex
📖 Full installation & integration guide
</details> <details> <summary><b>Manual Download</b></summary>Download the latest binary for your platform from the GitHub Releases page:
- macOS:
cs-mcp-macos-aarch64.zip(Apple Silicon) orcs-mcp-macos-amd64(Intel) - Linux:
cs-mcp-linux-aarch64.ziporcs-mcp-linux-amd64 - Windows:
cs-mcp-windows-amd64.exe
After downloading, make it executable and optionally add it to your PATH:
chmod +x cs-mcp-*
mv cs-mcp-* /usr/local/bin/cs-mcp
You can also build a static executable from source.
</details> <details> <summary><b>Docker</b></summary>docker pull codescene/codescene-mcp
📖 Full installation & integration guide | Build the Docker image locally
</details>Use Cases
[!TIP] Watch the demo video of the CodeScene MCP.
[!NOTE] CodeScene MCP comes with a set of example prompts, agent guidance files to capture the key use cases, and a downloadable set of public skills. Copy the agent guidance that matches your license — AGENTS-full.md for CodeScene Core users or AGENTS-standalone.md for standalone users — and any relevant skills to your own repository.
With the CodeScene MCP Server in place, your AI tools can:
Safeguard AI-Generated Code
Prevent AI from introducing technical debt by flagging maintainability issues like complexity, deep nesting, low cohesion, etc.
Uplift Unhealthy Code for AI Readiness
AI refactoring quality improves when code is modular and easy to reason about. The MCP server gives your assistant concrete guidance to get there:
- run focused Code Health reviews,
- identify the specific design issues to address,
- refactor in small, measurable steps, and
- verify progress with updated Code Health scores.
This workflow works with MCP alone and is often enough to safely improve legacy code.
Make Targeted Refactoring
AI tools can refactor code, but they lack direction on what to fix and how to measure if it helped.
The Code Health tools solve this by giving AI assistants precise insight into design problems, as well as an objective way to assess the outcome: did the Code Health improve?
Understand Existing Code Before Acting
Use Code Health reviews to inform AI-driven summaries, diagnostics, or code transformations based on real-world cognitive and design challenges, not just syntax.
Frequently Asked Questions
<details> <summary>Do I need a CodeScene account to use the MCP?</summary>The full feature set — including hotspots, technical debt goals, and code ownership — requires a CodeScene subscription. Use your CodeScene instance to create the CS_ACCESS_TOKEN which activates the MCP.
The MCP supports both CodeScene Cloud and CodeScene on-prem.
For local Code Health analysis without a CodeScene subscription, you can use the standalone CodeScene Code Health MCP.
</details> <details> <summary>How does the MCP Server keep my code private and secure?</summary>The CodeScene MCP Server runs fully locally. All analysis — including Code Health scoring, delta reviews, and business-case calculations — is performed on your machine, against your local repository. No source code or analysis data is sent to cloud providers, LLM vendors, or any external service.
Analysis results (e.g. hotspots and technical debt goals) are fetched via REST from your own CodeScene account using a secure token.
For complete details, please see CodeScene's full privacy and security documentation.
</details> <details> <summary>Can I use any LLM as the backbone for CodeScene MCP?</summary>CodeScene MCP can work with any model your AI assistant supports, but we strongly recommend choosing a frontier model when your assistant offers a model selector (as in tools like GitHub Copilot).
Frontier models -- such as Claude Sonnet -- deliver far better rule adherence and refactoring quality, while legacy models like GPT-4.1 often struggle with MCP constraints. For a consistent, high-quality experience, select the newest available model.
</details> <details> <summary>I have multiple repos — how do I configure the MCP?</summary>Since you have to provide a mount path for Docker, you can either have a MCP configuration per project (in VS Code that would be a .vscode/mcp.json file per project, for example) or you can mount a root directory within which all your projects are and then just use that one configuration instead.
In our testing we've seen that IntelliJ's AI Assistant sometimes gives a wrong path to the CodeScene MCP server. From what we can tell, it seems to have nothing to do with the MCP server itself, but rather with IntelliJ's AI Assistant, which seems to hallucinate parts of the path some of the time. We're still investigating this issue and will update this section once we have more information.
</details> <details> <summary>How do I configure custom SSL certificates?</summary>If your organization uses an internal CA (Certificate Authority), set the REQUESTS_CA_BUNDLE environment variable to point to your CA certificate file (PEM format). The MCP server automatically configures SSL — you only need to set it once.
The MCP also supports SSL_CERT_FILE and CURL_CA_BUNDLE as alternatives.
For detailed configuration examples (including Docker certificate mounting), see Configuration Options — SSL/TLS.
</details> <details> <summary>How do I disable the version update check?</summary>The MCP server periodically checks GitHub for newer releases and shows a "VERSION UPDATE AVAILABLE" banner when your version is outdated. This check runs in the background and never blocks tool responses, but in network-restricted environments you may want to disable it entirely.
Set the CS_DISABLE_VERSION_CHECK environment variable to any non-empty value (e.g. 1). For setup details, see Configuration Options — Version Check.
Building from Source
The MCP server is written in Rust. To build from source:
cargo build --release
The binary is produced at target/release/cs-mcp.
For more details, see:
常见问题
com.codescene/codescene-mcp-server 是什么?
一个提供 CodeScene Code Health 分析工具的 MCP server,帮助评估代码健康状况。
相关 Skills
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。