Momus is a local-first, deterministic, read-only MCP server and CLI designed to ruthlessly scrutinize test suites for common pitfalls. It actively hunts down false-green tests that pass due to issues like tautological assertions, mock-contract drift, or other mock-hygiene problems, rather than genuinely proving code functionality. This tool performs static analysis by reading source code, building a symbol graph of production code, and meticulously checking every mock, spy, and assertion against its real production contract, all without executing code or interacting with external networks.
主要功能
01Deterministic, read-only operation with byte-identical output for identical workspaces.
02Supports TypeScript, PHP, Python, and Rust test suites (e.g., Vitest, PHPUnit, pytest, mockall).
03Generates strict, typed mock templates from real classes or interfaces.
04Statically detects tautological assertions, mock-contract drift, and mock hygiene issues.
05Provides a pre-commit hook to detect mock-contract drift on uncommitted changes.
060 GitHub stars
使用案例
01Guard coding agents from committing tests that pass due to invalid or tautological assertions.
02Enforce test suite quality in CI/CD pipelines or as a pre-commit gate to prevent mock-contract drift.
03Automate the generation of strict, typed mock contracts for complex classes or interfaces.