Examples
Ready-to-copy configuration lives in the repo's examples/ folder. Most of it is generated for you by npx fixlock init and npx fixlock setup; the files are there to read, review or adapt by hand.
AI assistants
| Assistant | Example | Goes to |
|---|---|---|
| Claude Code | .mcp.json, settings.json | .mcp.json, .claude/settings.json |
| Cursor | mcp.json | .cursor/mcp.json |
| GitHub Copilot | mcp.json | .vscode/mcp.json |
| OpenAI Codex | config.toml | ~/.codex/config.toml |
| Gemini CLI | settings.json | .gemini/settings.json |
The MCP entry is the same everywhere:
json
{ "mcpServers": { "fixlock": { "command": "npx", "args": ["--no-install", "fixlock", "mcp"] } } }CI
| GitHub Actions | Blocks the PR, reads approvals, posts a comment, re-runs when someone approves |
| Jenkins | Multibranch pipeline stage |
| GitLab | Merge request job |
Git hook managers
| Husky | pre-commit warning and post-commit auto-lock |
| Lefthook | Same, for lefthook.yml |
A complete working setup
npx @abinandhmj/fixlock demo --keep builds a small repo with fixlock fully set up (team, locks, rules files, Claude Code hook, MCP config) and keeps it, so you can inspect every file.