Skip to main content
Glama

Reviewer MCP

by jaggederest
COVERAGE.md1.66 kB
# Test Coverage Report ## Current Coverage Status | Metric | Coverage | Threshold | Status | |------------|----------|-----------|--------| | Lines | 18.93% | 20% | ❌ | | Functions | 35.29% | 35% | ✅ | | Branches | 64% | 60% | ✅ | | Statements | 18.93% | 20% | ❌ | ## Coverage by Module ### ✅ Well Tested - `src/tools/generateSpec.ts` - 100% line coverage - `src/utils/config.ts` - 95.12% line coverage ### ⚠️ Partially Tested - `src/utils/ai.ts` - 13.63% line coverage - `src/providers/factory.ts` - 14.28% line coverage ### ❌ Not Tested - `src/tools/reviewCode.ts` - 0% coverage - `src/tools/reviewSpec.ts` - 0% coverage - `src/tools/runLinter.ts` - 0% coverage - `src/tools/runTests.ts` - 0% coverage - `src/providers/ollama.ts` - 2.85% coverage - `src/providers/openai.ts` - 7.4% coverage ## Recommendations 1. **Priority 1**: Add tests for the command execution tools (runTests, runLinter) 2. **Priority 2**: Add tests for the AI review tools (reviewCode, reviewSpec) 3. **Priority 3**: Add tests for the provider implementations 4. **Priority 4**: Increase coverage for the AI utility module ## Running Coverage ```bash # Run unit tests with coverage npm run test:coverage # Run all tests (including integration) with coverage npm run test:coverage:all # View HTML report open coverage/index.html ``` ## Coverage Goals Short term (current): - Lines: 20% - Functions: 35% - Branches: 60% - Statements: 20% Medium term: - Lines: 50% - Functions: 60% - Branches: 70% - Statements: 50% Long term: - Lines: 80% - Functions: 80% - Branches: 80% - Statements: 80%

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jaggederest/mcp_reviewer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server