playbook
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., "@playbookfind a procedure for setting up a new project"
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.
Playbook
Procedures as JSON. Search them by intent, then load one in a single call.
Playbook is a small CLI and MCP server so an agent (or you) can write, find, and follow how-tos without dumping the whole playbook into context. Search narrows the store to one procedure; reading that procedure is a single call, not one call per step. CLI verbs stay split. MCP compresses related verbs into fewer tools. Everything is JSON.
Python 3.10+, stdlib only at runtime.
What earns a procedure
If it is outside the bounds of the neural net, it is a procedure.
A model given a clear goal will derive a → b → c on its own, and derive it
better than a written procedure can, because it can see the actual code.
Writing that down buys nothing and costs tokens every time it is read. What a
model cannot derive is anything true about your world and false by default in
its own:
Inventory — what already exists that would otherwise be rebuilt from scratch. A library, an internal service, a widget catalog.
Constraints — invariants that are non-obvious and expensive to violate.
Orderings with a reason — sequences where the order matters for a cause that cannot be inferred from the code in front of you.
The test is recomputability, not length or importance. "Roll back by pinning the last good build" is a procedure if finding the last good build is peculiar to your setup, and is noise if it is obvious from the deploy tool.
This bound is also what keeps a store finite. Treat procedures as step sequences and every task appears to need one, so the store grows without ever converging. Treat them as the things a model cannot know, and the set is capped by how many such things you actually have. New procedures getting rarer over time is the sign a playbook is working.
Related MCP server: sop-mcp
Install
pip install -e .
playbook searchPyPI is not published yet.
Where files live
One JSON file per procedure, in the platform data dir:
OS | Directory |
Linux |
|
macOS |
|
Windows |
|
Honor XDG_DATA_HOME / APPDATA / LOCALAPPDATA. Commands take a procedure id, not a path.
Shape
{
"id": "follow-playbook",
"title": "Follow a playbook procedure",
"description": "When to pick this file. Can be verbose.",
"tags": ["playbook", "follow"],
"steps": [
{
"id": "a1b2c3…",
"title": "Search by intent",
"do": "Call playbook_search with a sentence for the job."
}
]
}title — short name on search cards
description — when to pick this procedure
steps — serial. Unique titles. Random step ids.
dois the work.
CLI
Every command prints JSON (including errors).
playbook create demo --title "Demo" --description "when to pick this" --tags demo \
--steps '[{"title": "First", "do": "Do the first thing."}]'
playbook add-steps demo --steps '[{"title": "Next", "do": "Do the next thing."}]'
playbook add-step demo --title "First" --do "Do the first thing."
playbook add-step demo --title "Middle" --do "Do the middle." --after "First"
playbook edit demo --title "Better title"
playbook search "I want to follow a procedure"
playbook load demo
playbook load demo --titles
playbook start demo --title "First"
playbook validate demo
playbook mcpWrite a whole procedure in one call with --steps (a JSON array, or - to read it from stdin); add-steps appends or inserts a batch. The single-step add-step is still there for one-off edits.
search is BM25 plus character n-grams. Hits are id, title, description only (default 8, cap 50). Weak matches are dropped — but if that leaves nothing, the nearest few come back tagged "weak": true with a note, so a natural-language ask that shares no vocabulary with your titles returns candidates instead of a silent empty list.
load prints the whole procedure — every step with its do — in one call. --titles gives the outline only, for checking whether a procedure is the right one before reading it. start re-reads a single step: its do, its position, and the prev / next titles.
MCP (Grok)
grok mcp add --scope user playbook -- playbook mcpUse an absolute path to playbook if the spawned process will not have your shell PATH. Then /mcps and r, or a new session.
MCP results are compact JSON (no pretty-printing) to keep them cheap in context; the CLI stays indented for humans.
Tool | Role |
| Intent search |
| Read a procedure whole (default), |
|
|
Three tools. A tool's schema is in context on every request, whether or not it is called, so the surface is kept to find, read, and write.
Reads validate on their own — playbook_open fails with every schema error —
so a separate validate tool would only add schema to every request. The CLI
keeps playbook validate for when you want a report instead of an error.
The write verbs are one tool rather than three for the same reason, and because
a tool description is the only place the rule above is stated at the moment of
the decision. This README is not in context when a procedure gets minted;
playbook_write is. That is where "outside the bounds of the neural net" has to
live to have any effect.
The CLI keeps every verb split. Local verbs cost nothing per request, and
create / add-step / edit-step / remove-step read better in a shell than
a single command with a mode flag.
Tests
pip install -e .
python -m pytest tests/ -qLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Build and run agents and automations across hundreds of apps using natural language.
The governed runtime for agent skills. Search the catalog and inspect a skill before running it.
- SkilderOAuthai.skilder
One place to build, share, and govern the skills and tools your AI agents use at work.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, share, discover, and execute reusable multi-step workflow templates.MIT
- AlicenseAqualityAmaintenanceEnables AI agents to execute multi-step Standard Operating Procedures step by step, with enforcement of completion at each step, making LLM behavior predictable and auditable.53Apache 2.0
- AlicenseNot gradedqualityBmaintenanceGuides AI agents through structured, multi-step workflows with discovery, navigation, and fidelity enforcement.2Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to manage, search, plan, and execute reusable skills while automatically enforcing always-on coding and reasoning guidelines. It provides workflow orchestration, permission-controlled execution, dynamic skill registration, and feedback-based ranking.912 npm1MIT