Skip to main content
Glama

Playbook

Prozeduren als JSON. Durchsuche sie nach Absicht, gehe Titel durch, lade jeweils ein do nach dem anderen.

Playbook ist ein kleiner CLI- und MCP-Server, damit ein Agent (oder du) Anleitungen schreiben, finden und befolgen kann, ohne das gesamte Playbook in den Kontext zu laden. CLI-Verben bleiben getrennt. MCP komprimiert verwandte Verben in weniger Werkzeuge. Alles ist JSON.

Python 3.10+, nur Standardbibliothek zur Laufzeit.

Installation

pip install -e .
playbook search

PyPI ist noch nicht veröffentlicht.

Related MCP server: servicenow-platform-mcp

Wo Dateien liegen

Eine JSON-Datei pro Prozedur, im Plattform-Datenverzeichnis:

Betriebssystem

Verzeichnis

Linux

~/.local/share/playbook/procedures/

macOS

~/Library/Application Support/playbook/procedures/

Windows

%LOCALAPPDATA%\playbook\Data\procedures\

Beachte XDG_DATA_HOME / APPDATA / LOCALAPPDATA. Befehle nehmen eine Prozedur-id, keinen Pfad.

Form

{
  "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 — kurzer Name auf Suchkarten

  • description — wann diese Prozedur gewählt werden soll

  • steps — seriell. Eindeutige Titel. Zufällige Schritt-IDs. do ist die Arbeit.

CLI

Jeder Befehl gibt JSON aus (einschließlich Fehlern).

playbook create demo --title "Demo" --description "when to pick this" --tags demo
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 --full
playbook start demo --title "First"
playbook validate demo
playbook mcp

search ist BM25 plus Zeichen-n-Gramme. Treffer sind nur id, title, description (Standard 8, Maximum 50). Schwache Übereinstimmungen werden verworfen.

load ist nur Titel. --full enthält jedes do. start ist ein do plus before / after-Titel.

MCP (Grok)

grok mcp add --scope user playbook -- playbook mcp

Verwende einen absoluten Pfad zu playbook, wenn der gestartete Prozess dein Shell-PATH nicht hat. Dann /mcps und r, oder eine neue Sitzung.

Werkzeug

Rolle

playbook_search

Absichtssuche

playbook_open

Titel laden, --full, oder at zum Starten eines Schritts

playbook_create

Neue Prozedur

playbook_edit

Titel / Beschreibung / Tags

playbook_step

op: add | edit | remove

playbook_validate

Validieren

Tests

pip install -e .
python -m pytest tests/ -q

Lizenz

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/benteigland11/Playbook'

If you have feedback or need assistance with the MCP directory API, please join our Discord server