Sortie
FreeNot checkedCampaign orchestration MCP server for AI agents — dependency DAGs, parallel fan-out, failure policies, and embedded notes.
About
Campaign orchestration MCP server for AI agents — dependency DAGs, parallel fan-out, failure policies, and embedded notes.
README
Campaign orchestration MCP server for AI agents — dependency DAGs, parallel fan-out, failure policies, and embedded notes.
Think make for AI agent workflows, where the LLM is the planner that
generates and adapts the DAG at runtime.
Install
pip install sortie-mcp
Or with uv:
uv add sortie-mcp
Quick Start
1. Set up PostgreSQL
sortie-mcp requires PostgreSQL 15+ with pgvector.
export DATABASE_URL="postgresql://user:pass@localhost:5432/mydb"
export SORTIE_SCHEMA="sortie" # default
2. Run the MCP server
sortie-mcp
# or: python -m sortie_mcp.server
The server runs on stdio transport. Configure it in your MCP client:
{
"sortie": {
"command": ["sortie-mcp"],
"env": {
"DATABASE_URL": "postgresql://..."
}
}
}
3. Run the campaign runner
sortie-runner
# or: python -m sortie_mcp.runner
Add to cron for autonomous operation:
*/15 * * * * /path/to/venv/bin/sortie-runner
Architecture
One MCP server, three perspectives:
- Coordinator (e.g. a dispatcher agent): create, list, steer, pause/cancel campaigns
- Worker (specialist agents): get context, add notes, complete/fail steps, spawn subtasks
- Runner (cron): capacity-aware watchdog that dispatches ready steps and consults the planner LLM
Step Types
| Type | Description |
|---|---|
atomic |
Single task executed by one agent |
parallel_group |
Fan-out: children run concurrently |
sequence |
Pipeline: each step depends on the previous |
for_each |
Map: apply a template to each item in a list |
Key Features
- DAG splice (
spawn_and_continue): agents can split work into subtasks + continuation - Branch abort (
abort_branch): scoped early return from an ancestor step - Skip cascade: transitive propagation through the dependency graph
- Priority scheduling: urgent / high / normal / low / background
- Advisory dedup: fingerprinting warns the planner of duplicate steps
- Depth limits:
spawn_and_continuehidden from agents at max depth - Embedded notes: pgvector semantic search across campaign findings
Configuration
| Env Var | Default | Description |
|---|---|---|
DATABASE_URL |
postgresql://localhost/sortie |
PostgreSQL connection string |
SORTIE_SCHEMA |
sortie |
Database schema name |
SORTIE_MAX_CONCURRENT |
4 |
Max parallel running steps |
SORTIE_ZOMBIE_TIMEOUT |
30 |
Minutes before a stuck step is reset |
LITELLM_URL |
http://localhost:4000 |
LiteLLM proxy URL (for planner) |
LITELLM_KEY |
LiteLLM API key | |
SORTIE_PLANNER_MODEL |
qwen3.5:9b |
Model for the planner LLM |
OPENCLAW_RUNTIME_URL |
http://localhost:3000 |
Agent runtime API |
Development
uv sync
uv run pytest
uv run ruff check .
uv run mypy src tests
License
GPL-3.0-or-later. See LICENSE.
Installing Sortie
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/retospect/sortie-mcpFAQ
Is Sortie MCP free?
Yes, Sortie MCP is free — one-click install via Unyly at no cost.
Does Sortie need an API key?
No, Sortie runs without API keys or environment variables.
Is Sortie hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Sortie in Claude Desktop, Claude Code or Cursor?
Open Sortie on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
by S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
Compare Sortie with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
