Codescene MCP server
{
"mcpServers": {
"codescene": {
"command": "npx",
"args": [
"-y",
"@codescene/codehealth-mcp@latest"
],
"env": {
"CS_ACCESS_TOKEN": "<cs_access_token>"
}
}
}
}{
"mcpServers": {
"codescene": {
"command": "npx",
"args": [
"-y",
"@codescene/codehealth-mcp@latest"
],
"env": {
"CS_ACCESS_TOKEN": "<cs_access_token>"
}
}
}
}{
"mcpServers": {
"codescene": {
"command": "npx",
"args": [
"-y",
"@codescene/codehealth-mcp@latest"
],
"env": {
"CS_ACCESS_TOKEN": "<cs_access_token>"
}
}
}
}{
"servers": {
"codescene": {
"command": "npx",
"args": [
"-y",
"@codescene/codehealth-mcp@latest"
],
"env": {
"CS_ACCESS_TOKEN": "${input:cs_access_token}"
}
}
},
"inputs": [
{
"id": "cs_access_token",
"type": "promptString",
"description": "Cs access token",
"password": true
}
]
}{
"mcpServers": {
"codescene": {
"command": "npx",
"args": [
"-y",
"@codescene/codehealth-mcp@latest"
],
"env": {
"CS_ACCESS_TOKEN": "<cs_access_token>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @codescene/codehealth-mcpversion 0.3.1
What it does
An MCP server that exposes CodeScene's Code Health analysis to AI assistants, enabling them to access code quality insights, maintainability issues, and technical debt information from your codebase. It runs locally and integrates with GitHub Copilot, Cursor, Claude, and other AI tools.
- Get AI assistants to flag code quality issues like complexity and low cohesion before they generate refactoring suggestions.
- Retrieve Code Health metrics for specific files or functions to provide AI with context about technical debt areas.
- Integrate code quality insights into AI-driven development workflows to improve the quality of generated or refactored code.
Tools this server exposes
| Tool | Does |
|---|---|
| get_code_health | Retrieve Code Health analysis and metrics for a file or function |
| analyze_maintainability | Get detailed maintainability issues including complexity, nesting depth, and cohesion problems |
| check_technical_debt | Identify technical debt areas in the codebase |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.