sentinel-orchestrator
An MCP server for domain-agnostic task orchestration, turning objectives into executed workflows with built-in validation, security, and multi-agent patterns.
README
Universal AI Orchestration Platform
A domain-agnostic, MCP-first orchestration engine.
Describe the goal, not the workflow. Give it an objective and it decides what the work is, how to decompose it, what capabilities it needs, what can run in parallel, how results are validated, what to do when something fails, and whether the objective was actually met.
It contains no assumptions about your domain. No shipped agent roles, no shipped domain workflows, no hard-coded provider, no hard-coded tooling.
pip install -e ".[all]"
orchestrator init .
orchestrator run "Accomplish this objective."
What makes it different
The model proposes; software disposes. State, scheduling, permissions, retries, persistence, validation, and resource limits are deterministic code. A model is used for reasoning, planning, doing the work, and judging subjective output — and for nothing else.
That division is what lets the platform make hard promises instead of probabilistic ones:
- A failed mandatory validation cannot produce
COMPLETED. - A cancelled execution cannot silently continue.
- An agent cannot call, or even see, a tool it was not granted.
- Every loop — retries, re-plans, refinement rounds, agent iterations — has an enforced bound.
- A discovered MCP tool is not trusted; a server's annotations may only raise its assessed risk, never lower it.
"Done" means something. Completion requires evidence. Where no deterministic
check exists, the platform reports UNCERTAIN rather than pretending. A model
may reach LIKELY; it may never certify CONFIRMED.
The core has zero dependencies. Everything else — CLI, REST API, HTTP model providers, YAML — is opt-in. MCP over stdio works in a bare install, because the protocol client is implemented natively.
Security posture
This platform runs tools with arguments a model chose. That single fact drives the security design, and the controls are enforced in code rather than asked of the model.
Declare a deployment profile. Omitting it means production.
profile: production # development | internal-pilot | production
| development | internal-pilot | production | |
|---|---|---|---|
| Policy default | allow | deny | deny |
| Explicit tool grant | no | yes | yes |
| API authentication | not required | required | required |
| Plain HTTP egress | allowed | refused | refused |
| Private networks | allowed | allowed | refused |
| Cloud metadata | refused | refused | refused |
| Process tools | if configured | refused | refused |
Read before deploying:
- SECURITY.md — threat model, what is and is not defended
- docs/security.md — every control, with its test
- docs/production-readiness.md — 108-item checklist, each marked complete / incomplete / operator responsibility
- deployment/runbook.md — three deployment shapes
- docs/configuration.md — every setting
Scope of the claim
Supports controlled production deployment behind a TLS/auth proxy: either
single-instance on SQLite, or multi-instance on PostgreSQL
(storage.backend: postgres).
Explicitly not supported: multi-instance on SQLite, enforced container/sandbox/remote isolation, in-process OIDC JWT validation or any proxy-forwarded identity (bearer tokens are the only identity mechanism), process execution without an external isolation boundary, and any guarantee of AI output correctness.
Verified across two replicas in the shipped Compose stack: shared PostgreSQL state, distributed token revocation, distributed rate limiting, enforced outbound egress through a proxy, and a TLS boundary that strips client-supplied identity headers. The platform provides evidence-based validation, confidence reporting, an adversarial reviewer, human approval gates, and a deterministic regression harness — none of which make model output correct; they make the basis for trusting it inspectable.
python -m pytest tests/ -q # 699 with PostgreSQL
orchestrator validate # effective posture and migration notices
orchestrator evaluate # 31 deterministic regression cases
orchestrator migrate # schema status
A run, end to end
objective
→ goal analysis structured requirements, provenance-tagged
→ pattern selection deterministic complexity scoring
→ planning validated task DAG (or a deterministic fallback)
→ scheduling dependency-aware, parallel, resource-locked
→ per task capability-routed agent, least-privilege scope,
bounded loop, independent validation gate
→ recovery classify → strategy ladder → retry/swap/re-plan/ask
→ objective gate success criteria, checked
→ review structural precondition on completion
→ COMPLETED
Any phase can stop and wait for a human, pause, or cancel — and resume from persisted state afterwards, including after the process dies.
orchestrator inspect <id> # the task graph, validations, failures
orchestrator audit <id> # every decision, in order
Orchestration patterns
Composable graph fragments, not modes. A parallel fan-out whose merge step is an evaluator-optimizer loop is just a graph.
single agent · sequential · parallel · router · orchestrator-worker ·
evaluator-optimizer · hierarchical · handoff · dynamic DAG
A router materialises every branch and prunes the ones it did not choose. A task may hand its remaining work to a different specialist, bounded so peers cannot pass it in a circle. And a task can be an entire orchestrated run of its own, with its budget carved out of its parent's rather than added to it.
The platform picks one from the objective's structure. A trivial objective gets
one agent and one check — not ten agents and four reviewers. Override with
--pattern when you want to.
Capabilities, not roles
Nothing routes by name. A task declares what it requires; an agent advertises what it provides; selection is deterministic scoring that prefers the least excess privilege. When nothing covers a requirement, a scoped ephemeral specialist is created — and when the shortfall is not real, selection fails loudly instead.
The core ships no capabilities, agents, or skills. They come from configuration, plugins, or the planner. That is what keeps it domain-neutral.
Skills are the third piece: reusable knowledge, as content rather than code. A skill tells an agent how to approach work it was already authorised to do, and grants it nothing.
MCP
First-class in both directions, implemented natively over JSON-RPC 2.0 with no SDK dependency. Protocol versions are negotiated, not assumed.
As a client: servers are discovered, described, policy-checked, authorised, and only then registered — so an agent calls an MCP tool exactly the way it calls anything else.
orchestrator mcp # health, negotiated version, registered tools, refusals
As a server: orchestrator mcp-serve exposes orchestration to other agent
systems. Control operations stay behind --allow-control.
Documentation
| docs/how-it-works.html | Plain-language guide. Start here if you are not going to read the code |
| ARCHITECTURE.md | The design, the invariants, the subsystem map |
| ORCHESTRATION_GUIDE.md | How to actually drive it |
| MCP_GUIDE.md | MCP in both directions |
| EXTENDING.md | Every extension seam |
| docs/production-readiness.md | What is proven, what is not, and how each claim was checked |
| docs/security.md | The controls, and what each one does not cover |
| deployment/runbook.md | Running it: the three supported shapes |
| docs/ | 29 topic guides |
| docs/adr/ | 12 architecture decision records |
| docs/research/ | What was evaluated and rejected |
Status
701 tests. 699 pass where a PostgreSQL instance is reachable; without one, 659 pass and 42 PostgreSQL-backed tests skip. Every subsystem is exercised against real stores, a real MCP server subprocess, and deliberate failure injection. The multi-replica controls — shared token revocation, shared rate limiting, egress enforcement, and the TLS boundary — are verified against the running production Compose stack by deployment/smoke-test.sh, not only in unit tests.
Known limitations are recorded honestly in docs/production-readiness.md and docs/research/ORCHESTRATION_RESEARCH.md rather than left to be discovered.
Apache-2.0.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.