Configuration for AI agents working with the mgrep codebase.
For full project documentation, see README.md For development patterns, see CLAUDE.md
npm run build # Build TypeScript
npm run test # Run all tests
npm run test:unit # Vitest unit tests
npm run start -- mcp # Start MCP serverThis project uses bd (beads) for issue tracking.
bd prime # Get workflow context
bd ready # Find unblocked work
bd create "Title" --type task -p 2 # Create issue
bd close <id> # Complete workFor full workflow details: bd prime
When modifying MCP tools:
-
Add/update tests in:
src/commands/watch_mcp.test.ts- Unit testssrc/commands/watch_mcp.helper.test.ts- Helper functionssrc/commands/watch_mcp.integration.test.ts- Integration tests
-
Run tests before committing:
npm run test:unit -- watch_mcp
-
Key files:
src/commands/watch_mcp.ts- MCP serversrc/lib/test-mcp-client.ts- TestMCPClientsrc/lib/store.ts- TestStore
When ending a work session, complete ALL steps:
- File issues for remaining work:
bd create - Run quality gates:
npm run lint && npm run test - Close finished work:
bd close <id> - Push to remote:
git pull --rebase bd sync git push git status # MUST show "up to date with origin" - Verify: All changes committed AND pushed
Critical Rules:
- Work is NOT complete until
git pushsucceeds - NEVER stop before pushing - that leaves work stranded locally
- If push fails, resolve and retry until it succeeds