Code review MCP server for Claude. Not affiliated with Atlassian.
Project description
Crucible
Your team's standards, applied by Claude, every time.
Claude without context applies generic best practices. Crucible loads your patterns—so Claude reviews code the way your team would, not the way the internet would.
├── Enforcement: Pattern + LLM assertions that block bad code
├── Personas: Domain-specific thinking (how to approach problems)
├── Knowledge: Coding patterns and principles (what to apply)
├── Cascade: Project → User → Bundled (customizable at every level)
└── Context-aware: Loads relevant skills based on what you're working on
Why Crucible?
- Enforcement — Not suggestions, constraints. Assertions block code that violates your patterns
- Consistency — Same checklist every time, for every engineer, every session
- Automation — Runs in CI, pre-commit hooks, and Claude Code hooks
- Institutional knowledge — Your senior engineer's mental checklist, in the repo
- Your context — Security fundamentals plus your auth patterns, your conventions
- Cost efficiency — Filter with free tools first, LLM only on what needs judgment
Not affiliated with Atlassian's Crucible.
Quick Start
pip install crucible-mcp
# Initialize your project
crucible init --with-claudemd
# Install enforcement hooks
crucible hooks install # Git pre-commit
crucible hooks claudecode init # Claude Code hooks
That's it. Crucible will now:
- Run on every commit (pre-commit hook)
- Review files Claude edits (Claude Code hook)
- Block code that violates bundled assertions (security, error handling, smart contracts)
How Enforcement Works
Claude writes code
↓
PostToolUse hook triggers
↓
Crucible runs pattern assertions
↓
Finding detected → Exit 2 (block) + feedback to Claude
↓
Claude fixes the issue
30 bundled assertions covering:
- Security: eval, exec, shell injection, pickle, hardcoded secrets, SQL injection
- Error handling: bare except, silent catch, empty catch blocks
- Smart contracts: reentrancy, CEI violations, access control, tx.origin auth
Customize with your own assertions in .crucible/assertions/:
# .crucible/assertions/my-rules.yaml
version: "1.0"
name: my-rules
assertions:
- id: no-console-log
type: pattern
pattern: "console\\.log\\("
message: "Remove console.log before committing"
severity: warning
priority: medium
languages: [javascript, typescript]
MCP Tools
Add to Claude Code (.mcp.json):
{
"mcpServers": {
"crucible": {
"command": "crucible-mcp"
}
}
}
| Tool | Purpose |
|---|---|
review(path) |
Full review: analysis + skills + knowledge + assertions |
review(mode='staged') |
Review git changes with enforcement |
load_knowledge(files) |
Load specific knowledge files |
get_principles(topic) |
Load engineering knowledge by topic |
delegate_* |
Direct tool access (semgrep, ruff, slither, bandit) |
check_tools() |
Show installed analysis tools |
CLI
# Review
crucible review # Review staged changes
crucible review --mode branch # Review current branch vs main
crucible review src/file.py --no-git # Review without git
# Assertions
crucible assertions list # List all assertion files
crucible assertions test file.py # Test assertions against a file
# Hooks
crucible hooks install # Install pre-commit hook
crucible hooks claudecode init # Initialize Claude Code hooks
# Customize
crucible skills init <skill> # Copy skill for customization
crucible knowledge init <file> # Copy knowledge for customization
# CI
crucible ci generate # Generate GitHub Actions workflow
Customization
Everything follows cascade resolution (first found wins):
.crucible/— Project overrides (checked into repo)~/.claude/crucible/— User preferences- Bundled — Package defaults
Override a skill:
crucible skills init security-engineer
# Edit .crucible/skills/security-engineer/SKILL.md
Add project knowledge:
crucible knowledge init SECURITY
# Edit .crucible/knowledge/SECURITY.md
Add custom assertions:
mkdir -p .crucible/assertions
# Create .crucible/assertions/my-rules.yaml
See CUSTOMIZATION.md for the full guide.
What's Included
30 Bundled Assertions — Pattern rules for security, error handling, and smart contracts.
18 Personas — Domain-specific thinking: security, performance, accessibility, web3, backend, and more.
14 Knowledge Files — Coding patterns and principles for security, testing, APIs, databases, smart contracts, etc.
See SKILLS.md and KNOWLEDGE.md for details.
Documentation
| Doc | What's In It |
|---|---|
| QUICKSTART.md | 5-minute setup guide |
| FEATURES.md | Complete feature reference |
| ARCHITECTURE.md | How MCP, tools, skills, and knowledge fit together |
| CUSTOMIZATION.md | Override skills and knowledge for your project |
| SKILLS.md | All 18 personas with triggers and focus areas |
| KNOWLEDGE.md | All 14 knowledge files with topics covered |
| CONTRIBUTING.md | Adding tools, skills, and knowledge |
Development
pip install -e ".[dev]"
pytest # Run tests (580+ tests)
ruff check src/ --fix # Lint
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crucible_mcp-1.0.0.tar.gz.
File metadata
- Download URL: crucible_mcp-1.0.0.tar.gz
- Upload date:
- Size: 130.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
435b82f032aca073ed1beb0dd3f46a7b2b21ad5d77ccf4015a281a0e0bc8986e
|
|
| MD5 |
b817b317f80fac46f1b76d9ccfc07af2
|
|
| BLAKE2b-256 |
576eea7548199b6f7a45a1f9f84a009e564402ea93c1a69e28f0031869f8f0d4
|
Provenance
The following attestation bundles were made for crucible_mcp-1.0.0.tar.gz:
Publisher:
publish.yml on b17z/crucible
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crucible_mcp-1.0.0.tar.gz -
Subject digest:
435b82f032aca073ed1beb0dd3f46a7b2b21ad5d77ccf4015a281a0e0bc8986e - Sigstore transparency entry: 887426072
- Sigstore integration time:
-
Permalink:
b17z/crucible@c096c413a0f112ad4f016cd5e0ecfbd0d9c8adbc -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/b17z
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c096c413a0f112ad4f016cd5e0ecfbd0d9c8adbc -
Trigger Event:
release
-
Statement type:
File details
Details for the file crucible_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: crucible_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 122.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fb06ffb23eb119bf72913afcc4fd20887e5b03868c6a83253d93fa30d6b172a
|
|
| MD5 |
7ad1e7b4e2b01e46d6cf526d73a8b6d4
|
|
| BLAKE2b-256 |
f3c9574a70c61ed7acd7e2e7c3b7ce0924991d09ab4cd536c0e786a7712705e3
|
Provenance
The following attestation bundles were made for crucible_mcp-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on b17z/crucible
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crucible_mcp-1.0.0-py3-none-any.whl -
Subject digest:
5fb06ffb23eb119bf72913afcc4fd20887e5b03868c6a83253d93fa30d6b172a - Sigstore transparency entry: 887426127
- Sigstore integration time:
-
Permalink:
b17z/crucible@c096c413a0f112ad4f016cd5e0ecfbd0d9c8adbc -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/b17z
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c096c413a0f112ad4f016cd5e0ecfbd0d9c8adbc -
Trigger Event:
release
-
Statement type: