AI-Powered Codebase Health Agent for Slack — dead code, circular deps, coupling, architectural drift
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add codesentinel -- npx -y @cubiczan/codesentinel-mcp{
"mcpServers": {
"codesentinel": {
"command": "npx",
"args": ["-y", "@cubiczan/codesentinel-mcp"]
}
}
}MCP Servers overview
<div align="center">
# CodeHealth MCP
**Codebase health analysis that works everywhere.** Dead code, circular dependencies, coupling issues, and architectural drift — exposed as MCP tools for Claude Desktop, Cursor, Windsurf, and Slack.
[](https://www.npmjs.com/package/@cubiczan/codesentinel-mcp)
[](https://registry.modelcontextprotocol.io)
[](https://modelcontextprotocol.io)
[](https://nodejs.org)
[](LICENSE)
[](https://github.com/punkpeye/awesome-mcp-servers)
</div>
---
## The Problem
Dead code, circular dependencies, excessive coupling, and architectural drift are invisible in day-to-day work. Static analysis tools produce noise in CI dashboards nobody checks. CodeHealth MCP brings these insights into the tools developers actually use — via the Model Context Protocol.
---
## What CodeHealth MCP Does
6 analysis tools, available in any MCP-compatible client:
| Tool | What It Finds |
|------|--------------|
| `analyze_dead_code` | Unused functions, classes, modules with file:line + fix suggestions |
| `detect_circular_deps` | Module import cycles via DFS with impact assessment |
| `analyze_coupling` | Fan-out per module, tight cluster detection, refactoring suggestions |
| `detect_architectural_drift` | Layer boundary violations (UI→Data, Business→UI, etc.) |
| `full_health_scan` | All four analyses + 0–100 health score + prioritized action items |
| `explain_finding` | AI-powered detailed explanation of any finding |
---
## Where It Works
| Client | How to Add |
|--------|-----------|
| **Claude Desktop** | Add to `claude_desktop_config.json` |
| **Cursor / Windsurf** | Add to MCP settings |
| **Slack** | Built-in Agent Builder integration with Block Kit UI |
| **Any MCP client** | Standard MCP server (stdio) |
---
## Install
```bash
npm install -g @cubiczan/codesentinel-mcp
npx -y @cubiczan/codesentinel-mcp
```
**MCP Registry:** `io.github.icohangar-ops/codesentinel-mcp`
**npm:** [@cubiczan/codesentinel-mcp](https://www.npmjs.com/package/@cubiczan/codesentinel-mcp) **1.0.1**
### Claude Desktop / Cursor
```json
{
"mcpServers": {
"codesentinel": {
"command": "npx",
"args": ["-y", "@cubiczan/codesentinel-mcp"]
}
}
}
```
## Quick Start (from source)
```bash
git clone https://github.com/icohangar-ops/codesentinel.git
cd codesentinel
npm install
cp .env.sample .env
npm start
```
### Use in Claude Desktop
```
Run a full health scan on /path/to/my/repo
```
```
Find circular dependencies in the frontend
```
```
Check coupling metrics in src/services
```
### Daytona sandbox scans (optional)
Set `DAYTONA_API_KEY` (and optionally `GITHUB_TOKEN` for private repos). MCP tools and Slack analysis will shallow-clone GitHub URLs in a Daytona VM and return live import-graph findings instead of demo data.
```
full_health_scan repo_path=https://github.com/org/repo
```
### Use in Slack
Add the Slack app manifest, enable Agent Builder, and @CodeHealth in any channel.
---
## Architecture
```
┌──────────────────────────────────────────┐
│ MCP CLIENT (any) │
│ Claude Desktop, Cursor, Slack, etc. │
└──────────────────┬───────────────────────┘
│ MCP Protocol (stdio)
┌──────────────────▼───────────────────────┐
│ CODEHEALTH MCP SERVER │
│ │
│ 🔧 analyze_dead_code │
│ 🔧 detect_circular_deps │
│ 🔧 analyze_coupling │
│ 🔧 detect_architectural_drift │
│ 🔧 full_health_scan │
│ 🔧 explain_finding │
│ │
│ ┌──────────────────────────────────┐ │
│ │ Analysis Engine │ │
│ │ dead-code | circular-deps │ │
│ │ coupling | drift │ │
│ └──────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────┐ │
│ │ LLM Provider │ │
│ │ Deepseek / OpenAI / Anthropic │ │
│ └──────────────────────────────────┘ │
└──────────────────────────────────────────┘
```
---
## Slack Integration
CodeHealth MCP ships with a full Slack Agent Builder app featuring:
- **Block Kit UI** — Severity-coded findings, health scores, actionable suggestions
- **Thread-based conversations** — Follow-up analysis in threads
- **Suggested prompts** — One-click analysis triggers
- **MCP server** — Same tools, available everywhere
### Demo Sandbox (Devpost judges)
The live demo workspace is **[codehealthdemo.slack.com](https://codehealthdemo.slack.com/)** — the **CodeSentinel** agent (App ID `A0BEHRDN5TQ`) is installed and authorized there. Mention it in any channel:
```
@CodeSentinel run a full health scan on https://github.com/icohangar-ops/codesentinel
```
Sandbox configuration:
**Live agent response in the sandbox** — a real `@CodeSentinel` mention in `#general` triggering a Daytona-sandboxed repo scan:

| App credentials & App ID | Agent capability enabled | Socket Mode enabled |
|---|---|---|
|  |  |  |
---
## Adding Custom Analyzers
Each analyzer follows a simple interface:
```javascript
function analyze(repoInfo) {
return {
type: "your_analysis_type",
findings: [
{
type: "finding_type",
severity: "critical" | "warning" | "info",
file: "path/to/file.ts",
line: 42,
name: "symbol_name",
reason: "Why this is a problem",
suggestion: "How to fix it",
},
],
stats: { /* summary metrics */ },
};
}
```
Add a new analyzer in `lib/analyzers/`, register it in `analysis-engine.js`, and it's automatically available in Slack and via MCP.
---
## Roadmap
- [ ] Real AST analysis — ts-morph for TypeScript, tree-sitter for multi-language
- [ ] GitHub App — Automatic analysis on PRs with inline comments
- [ ] Historical trends — Track health score over time per repo
- [ ] Custom architecture rules — Define layer boundaries via config
- [ ] Team dashboards — Aggregate health in Slack Canvas
---
## Project Structure
```
codesentinel/
├── app.js # Bolt app entry (Slack)
├── manifest.json # Slack app manifest
├── lib/
│ ├── analysis-engine.js # Analysis orchestrator + health score
│ ├── intent-parser.js # NLP intent classification
│ ├── block-kit-builder.js # Rich Slack UI
│ ├── llm-provider.js # Multi-provider LLM
│ └── analyzers/ # dead-code, circular-deps, coupling, drift
├── mcp-server/
│ ├── index.js # MCP server with 6 tools
│ └── package.json
└── functions/ # Slack function definitions
```
---
## Community & Registry
- **npm** — [@cubiczan/codesentinel-mcp](https://www.npmjs.com/package/@cubiczan/codesentinel-mcp)
- **MCP Registry** — [io.github.icohangar-ops/codesentinel-mcp](https://registry.modelcontextprotocol.io)
- **[awesome-mcp-servers](https://github.com/punkpeye/awesome-mcp-servers)**
---
## License
MIT. See [`LICENSE`](./LICENSE).
What people ask about codesentinel
What is icohangar-ops/codesentinel?
+
icohangar-ops/codesentinel is mcp servers for the Claude AI ecosystem. AI-Powered Codebase Health Agent for Slack — dead code, circular deps, coupling, architectural drift It has 0 GitHub stars and its last recorded update is dated 2026-08-22.
How do I install codesentinel?
+
You can install codesentinel by cloning the repository (https://github.com/icohangar-ops/codesentinel) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is icohangar-ops/codesentinel safe to use?
+
Our security agent has analyzed icohangar-ops/codesentinel and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains icohangar-ops/codesentinel?
+
icohangar-ops/codesentinel is maintained by icohangar-ops. The last recorded GitHub activity is dated 2026-08-22, with 0 open issues.
Are there alternatives to codesentinel?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy codesentinel to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/icohangar-ops-codesentinel)<a href="https://claudewave.com/repo/icohangar-ops-codesentinel"><img src="https://claudewave.com/api/badge/icohangar-ops-codesentinel" alt="Featured on ClaudeWave: icohangar-ops/codesentinel" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!