CodeHealth MCP Server

The CodeHealth 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 CodeHealth MCP workflows in their own agentic pipelines.
Getting Started with CodeHealth MCP
Want AI to perform the setup? Start with skills/installing-and-activating-codehealth-mcp/SKILL.md.
- Setting up Authentication to the MCP Server — see Authentication.
- 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.
NPM / npx (macOS, Linux, Windows)
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
Claude Code
Add the CodeScene marketplace and install the plugin:
/plugin marketplace add codescene-oss/codehealth-mcp
/plugin install codescene@codescene
This installs the MCP server and Code Health skills. Requires Node.js 18 or later.
Claude Desktop
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.
VS Code
The CodeHealth MCP is available as a VS Code extension:
Kiro (IDE / CLI)
Recommended — install the Kiro power: The CodeScene Code Health power bundles the MCP server and the public skills, and Kiro manages the server for you. In the IDE, open the Powers panel, choose Add Custom Power → Import power from GitHub, and enter https://github.com/codescene-oss/codehealth-mcp/tree/main/kiro-power. To install from a local clone instead, choose Import power from a folder and select the kiro-power directory. Node.js 18 or later is required. Then ask Kiro to "Log me in to CodeScene".
Manual MCP configuration: Kiro can also launch CodeHealth MCP locally over stdio using either npx or an installed binary. No remote MCP URL or Kiro oauth configuration is needed.
Choose a configuration scope:
- Workspace:
.kiro/settings/mcp.json in your project, for project-specific or shared team configuration.
- User:
~/.kiro/settings/mcp.json, for all your workspaces.
Both the IDE and CLI use these files. If the same server name appears in both, the workspace entry takes precedence. Merge the codescene entry into any existing mcpServers object rather than replacing your other servers.
Option 1 — npx (requires Node.js 18 or later):