Back to Home
codescene-oss icon

codescene-mcp-server

Verified Safe

by codescene-oss

Overview

The server exposes CodeScene's Code Health analysis as local tools to augment AI prompts with code quality insights, facilitate refactoring, and safeguard against technical debt.

Installation

Run Command
docker run -i --rm -e CS_ACCESS_TOKEN=<YOUR_CS_ACCESS_TOKEN> -e CS_MOUNT_PATH=<HOST_CODE_PATH> --mount type=bind,src=<HOST_CODE_PATH>,dst=/mount/,ro codescene/codescene-mcp

Environment Variables

  • CS_ACCESS_TOKEN
  • CS_MOUNT_PATH

Security Notes

The server runs locally in a Docker container, using a read-only bind mount for the codebase, which significantly limits local file interaction risks. Secrets like `CS_ACCESS_TOKEN` are read from environment variables. Outbound network calls are restricted to CodeScene APIs for analysis results and refactoring services. The execution of local CLI tools (`cs` and `git`) via `subprocess.run` is present, but arguments are constructed with validated paths, mitigating injection risks. No 'eval' or obvious obfuscation is found.

Similar Servers

Stats

Interest Score42
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars13
Forks0
Last Update2025-12-12

Tags

Code AnalysisAI ToolsTechnical DebtRefactoringSoftware Quality