sentinel-agent-system
Provides a natural-language-to-SQL interface over the infrastructure telemetry database, allowing users to query operational health data without writing SQL.
Click on "Deploy 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-agent-systemDiagnose why the API latency is spiking and remediate if safe."
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 System Health Guardian
Sentinel is a multi-agent infrastructure monitoring platform for a cloud-native environment. Beyond investigating anomalies in real time, it also acts as the platform's natural-language interface to operational telemetry, letting administrators query infrastructure health without writing SQL.
Four specialized agents — Monitor, Diagnostician, Remediation, and Data Intelligence — collaborate through a LangGraph state machine, coordinated entirely through a single standardized MCP gateway.
Architecture
The core workflow is a circular LangGraph state machine: Monitor detects anomalies, Diagnostician determines a likely root cause using a RAG knowledge base, Remediation attempts an appropriate fix (respecting safety guardrails), and Verify confirms whether the fix worked. If verification fails, the graph loops back to Diagnostician, up to a configurable retry limit.
All agents interact with the system exclusively through an MCP (Model Context Protocol) gateway — no agent talks to the database, the logs, or the knowledge base directly. This keeps every tool call auditable and swappable behind one interface.
Related MCP server: dagster-mcp
Features
Four CrewAI agents, each scoped to only the MCP tools its role requires
RAG-backed diagnosis over a curated set of operational runbooks, using Sentence-Transformers embeddings and FAISS similarity search
Natural-language-to-SQL interface over the infrastructure telemetry database, with graceful degradation for out-of-scope questions
Safety guardrails that block high-risk remediation commands (e.g. service reboots) when the system is under critical load — verified to block correctly under real conditions, not just in theory
Self-healing retry loop: failed verifications automatically route back to diagnosis rather than silently failing
Full observability via LangSmith tracing on every NL2SQL call
Tech stack
Layer | Tools |
Agent orchestration | CrewAI |
Workflow / state machine | LangGraph |
Tool gateway | FastMCP |
LLM inference | Groq ( |
Embeddings + retrieval | Sentence-Transformers ( |
Observability | LangSmith |
Database | SQLite |
Setup
python -m venv venv
venv\Scripts\activate # Windows
pip install -r requirements.txtCreate a .env file with:
GROQ_API_KEY=your_key
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=your_langsmith_key
LANGCHAIN_PROJECT=sentinel-agent-system
Running a demo
python demo.pyThis runs the full pipeline against a sample server, printing each agent's reasoning as it moves through Monitor → Diagnose → Remediate → Verify, including a live demonstration of the retry loop if verification fails on the first attempt.
Deliverables note
The Post-Mortem Report, LangSmith NL2SQL trace screenshots, and workflow diagrams were submitted separately, per assignment instructions.
Related MCP Connectors
- mttrlyOAuthcom.mttrly
AI-powered incident management and server monitoring via MCP.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA multi-agent MCP server that turns LLMs into an autonomous incident-response copilot, enabling rapid investigation, correlation, and remediation of production incidents.MIT
- AlicenseAqualityAmaintenanceAn MCP server that gives AI agents full visibility and control over your Dagster instance, enabling autonomous monitoring, diagnosis, and remediation of data pipelines.178,822 PyPI14MIT
- FlicenseNot gradedqualityDmaintenanceIntegrity monitor for MCP server ecosystems, providing real-time health checks, drift detection, and cascade impact analysis for any AI agent.-
- AlicenseAqualityDmaintenanceAn MCP server that exposes live network monitoring data as Resources and diagnostic capabilities as Tools, letting AI assistants query network health conversationally.6MIT