sentinel-mcp
Allows review of Bitbucket pull requests using static analysis, local LLM explanations, and validated auto-fix patches.
Allows review of GitHub pull requests, including security and bug analysis, severity scoring, and optionally opening validated auto-fix PRs.
Allows review of GitLab merge requests using the same analyzer, LLM, and auto-fix pipeline as other providers.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sentinel-mcpReview PR #42 in owner/repo for security issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sentinel
Autonomous Security & Code Review Agent — review your pull requests, catch bugs and security issues, and (optionally) fix them automatically. 100% free and local-first.
License: MIT · Roadmap/design: BRD.md
Why Sentinel?
Sentinel | CodeRabbit / Snyk / SonarQube | |
Price | Free | $100–$200 / developer / year |
Code leaves your machine | Never (air-gapped) | Always (their cloud) |
Auto-fix with validation | ✅ machine-checked patches | Limited / paid |
Learn from past fixes | ✅ local memory | Rarely |
Other agents can call it | ✅ MCP server | No |
Sentinel combines three things no single tool offers for free:
Static analyzer evidence (Bandit, Ruff, custom rules) — hard facts, zero hallucinations.
Local LLM explanation (Ollama default) — why it's dangerous, how it could be exploited.
Validated auto-fix — a patch that passes syntax checks, analyzer re-runs, and your tests before it's proposed.
It also ships open, AI-verified rule books (sentinel/rules/books/*.yml): every rule credits its
author and becomes ai_verified only after an empirical match-test and an independent AI
cross-review — the seed of a community rule marketplace.
Related MCP server: code-review-mcp-server
Quick start
# Install
pip install sentinel-code-agent # (coming soon to PyPI)
# or from source:
git clone https://github.com/Magudapa/sentinel && cd sentinel && pip install -e ".[dev]"
# 1. Pull a local model (free, offline-capable)
ollama pull qwen2.5-coder:7b
# 2. Review a pull request
sentinel review --provider github --repo owner/repo --pr 42
# 3. Review a local diff (no network at all)
git diff HEAD~1 | sentinel review --diff -Output: human Markdown, JSON, and standard SARIF (works with GitHub code scanning).
Features
✅ Review PRs from GitHub / GitLab / Bitbucket or raw diffs and local repos
✅ Security scan: secrets, SQL, command injection, unsafe
eval/pickle, weak crypto✅ Bug & style scan: Ruff (Python), plus custom repo rules (
.sentinel.yml)✅ Plain-English explanations from your local model (Ollama) or any OpenAI-compatible API
✅ Severity-ranked verdict with a 0–100 score
✅ Auto-fix: generates validated patches and opens a PR (human always approves)
✅ Codebase memory: Chroma vector store reminds you where you fixed the same thing before
✅ MCP server — Claude, Langflow, or any MCP client can call
review_pr/review_diff✅ REST API —
sentinel serveexposes/api/v1/health,/api/v1/review,/api/v1/rulesets(FastAPI, localhost-first)✅ AI-verified rule books — open, authored, two-gate (empirical + independent AI) rule system,
sentinel ruleset list|verify|generate✅ SARIF export for GitHub code scanning integration
Architecture
Providers (GitHub/GitLab/Bitbucket/Local)
│ diff
▼
Analyzers (Bandit/Ruff/Custom) ── evidence
│ │
▼ ▼
Reviewer Pipeline ──► Model Layer (Ollama default)
classify → explain │
│ │
▼ ▼
Findings ──► CLI / JSON / SARIF / MCP ◄── Chroma memory (fixed-before)
│
▼
Auto-fix loop: patch → validate → tests → open PRDesign decisions and full backlog are in BRD.md. This project's architecture was informed by studying 20+ leading open-source AI repos (OpenHands, MCP SDK/Servers, Ollama, LiteLLM, Qdrant/Chroma, LangGraph and friends) — see ARCHITECTURE.md.
Development
pip install -e ".[dev]"
pytest # run tests
ruff check . # lintRoadmap
Status of the BRD → production milestones:
# | Milestone | Status |
M1 | BRD | ✅ |
M2 | Scaffold (LICENSE, CI, packaging) | ✅ |
M3 | Providers (GitHub/GitLab/local) + analyzers (custom rules, Bandit, Ruff) | ✅ |
M4 | Local-first model layer (Ollama + OpenAI-compatible) | ✅ |
M5 | Reviewer pipeline + CLI (markdown/JSON/SARIF) | ✅ |
M6 | Auto-fix (validated patches, export + GitHub fix PR) | ✅ |
M7 | Codebase memory (fixed-before recall) | ✅ |
M8 | MCP server ( | ✅ |
M9 | Streamlit web UI ( | ✅ |
M10 | Tests (42 passing) + docs + lint/bandit green | ✅ |
M11 | Docker image + GitHub Action + | 🔜 |
M12 | PyPI release | 🔜 |
M13 | AI-verified rule books (Python/JS/SQL) + | ✅ |
M14 | Phase-0 REST API ( | ✅ |
Contributing
Open issues/PRs. Ideas wanted: Bitbucket provider, Semgrep rules plugin, pip-audit
dependency analysis, Chrome-extension-like IDE hints, webhook daemon (sentinel watch).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Security reviews for coding agents: diffs checked against your org policy and live infrastructure.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables code review operations on GitHub and GitLab, including fetching pull/merge requests, viewing diffs, adding comments, analyzing code quality, and creating merge requests directly from your MCP client.1584MIT
- AlicenseNot gradedqualityAmaintenanceEnables automated code review and GitHub PR commenting through MCP integration.859MIT
- FlicenseNot gradedqualityDmaintenanceEnables automated AI-powered code review for pull requests across GitHub, GitLab, Bitbucket, and Azure DevOps via webhooks, and manual code review through MCP tools using Groq, Claude, or GPT-4.1-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to fetch GitHub pull request diffs and metadata, and post review comments directly through the MCP protocol.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Magudapa/sentinel-code-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server