mcp-repo-health
mcp-repo-health
MCP server that scores a local git repository the way a recruiter or ghfind-style scanner would: README substance, license, package description, TypeScript config, tests, and GitHub Actions.
It is meant to run inside Cursor / Claude / any MCP host over stdio. Scoring is deterministic and has no GitHub API dependency.
Why this exists
Public GitHub scores overweight empty demos and underweight complete local projects. This server lets an agent inspect a checkout and return a numbered hygiene report before you push.
Tools
Tool | Input | Output |
|
| Human report + JSON ( |
|
| Failing checks only |
Weights (100 points):
README ≥ 400 characters — 20
LICENSE file or
package.jsonlicense — 10package.jsondescription — 10.gitignore— 8tsconfig.json— 10Tests (
*.test.ts,*.spec.tsx,tests/) — 16.github/workflows/*.yml— 16src/,app/, orlib/— 10
Install
git clone https://github.com/ashwinmridul/mcp-repo-health.git
cd mcp-repo-health
npm install
npm test
npm run buildCursor MCP config
Add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"repo-health": {
"command": "node",
"args": ["/ABS/PATH/mcp-repo-health/dist/index.js"]
}
}
}Then ask the agent: “Score /Users/you/personal/mcp-workbench for repo hygiene.”
Development
npm run typecheck
npm test
npm run devnpm run dev speaks MCP on stdin/stdout, so run it from an MCP host, not a TTY.
License
MIT