M
MCP Repo Audit
作者 @Innnoa
MCP server by Innnoa
创建于 4/28/2026
更新于 about 5 hours ago
README
Repository documentation and setup instructions
repo-audit
repo-audit is a local pre-submit audit tool for git repositories. It is designed to be called by humans, git hooks, CI, and AI agents before a public commit is prepared.
First-version checks
- Dirty tracked files outside the index
- Untracked files
- Generated or dependency directories such as
build/,dist/,.cache/,node_modules/,__pycache__/,.pytest_cache/ - AI/runtime artifacts such as
CURRENT_TASK.md,AI_GUIDE.md,handoff/, andoutputs/runtime/
Usage
python3 repo_audit.py
python3 repo_audit.py --json
python3 repo_audit.py --repo /path/to/repo
Exit codes:
0: no blocking issues1: blocking issues found2: tool error
MCP server
The MCP wrapper exposes one tool:
audit_repo_before_commit
Input:
{
"repo": "/path/to/repo"
}
Output is structured JSON with ok, status, issue_count, blocking_issue_count, and issues.
Local server entry:
python3 server/mcp_server.py
Example Codex config:
[mcp_servers.repo-audit]
command = "python3"
args = ["/home/zazaki/Projects/repo-audit/server/mcp_server.py"]
There is also a repo-local .mcp.json for hosts that read MCP server manifests from the project directory.
Development
python3 -m unittest discover -s tests -v
快速设置
此服务器的安装指南
安装包 (如果需要)
uvx mcp_repo-audit
Cursor 配置 (mcp.json)
{
"mcpServers": {
"innnoa-mcp-repo-audit": {
"command": "uvx",
"args": [
"mcp_repo-audit"
]
}
}
}
作者服务器
其他服务器由 Innnoa