Document creation on a Poffice host where ArtCraft CLIs and office-api are installed.
When to use
- Create or edit Word / Excel / PowerPoint / PDF
- Publish into Drive and return an Office
open_url - Rich formatting → Craft CLI/MCP; simple templates → Office API + agent key
Auth (required for Drive publish)
Prefer a long-lived agent API key:
- Admin creates a key in Workspace → Settings → Agent API tokens
(https://workspace.poffice.online/dashboard/settings) - Or use bootstrap env
POFFICE_AGENT_TOKENon the host
export OFFICE_API_URL=https://office.poffice.online # or http://office-api:8090
export POFFICE_AGENT_TOKEN=… # never commit
curl -sS -H "X-Api-Key: $POFFICE_AGENT_TOKEN" "$OFFICE_API_URL/api/auth/agent"
Also accepted: Authorization: Bearer … / Agent ….
Binaries (server)
| App | CLI | MCP |
|---|---|---|
| Word | wordcraft-cli |
wordcraft-cli mcp |
| Excel | gridcraft-cli |
gridcraft-cli mcp |
| PowerPoint | deckcraft-cli |
deckcraft-cli mcp |
pdfcraft-cli |
pdfcraft-cli mcp --root DIR |
Install path: /opt/craft-cli/bin/ (also on PATH via /usr/local/bin).
MCP I/O root: craft-workspace/ (in/, out/).
Cursor / MCP
Project config: .cursor/mcp.json (servers wordcraft, gridcraft, deckcraft, pdfcraft). Reload MCP after install.
claude mcp add wordcraft -- wordcraft-cli mcp \
--automation-read-root /path/to/craft-workspace \
--automation-write-root /path/to/craft-workspace/out
Repeat for gridcraft-cli, deckcraft-cli, and pdfcraft-cli mcp --root ….
CLI quick patterns
wordcraft-cli convert craft-workspace/in/notes.txt craft-workspace/out/notes.docx
gridcraft-cli convert craft-workspace/in/data.csv craft-workspace/out/data.xlsx
gridcraft-cli eval '=SUM(1,2,3)'
deckcraft-cli --help
pdfcraft-cli --help
Publish to Drive + open_url
# Preferred helper (uses POFFICE_AGENT_TOKEN)
python3 scripts/poffice_office.py create-pptx \
/Decks/Q1.pptx "Q1 Review" \
'[{"title":"Agenda","bullets":["Wins","Risks"]}]'
python3 scripts/poffice_office.py publish \
craft-workspace/out/notes.docx /Reports
POST /api/documents with X-Api-Key and kind: pptx | docx | xlsx | pdf.
Browser edit: open returned open_url while signed into workspace
(https://office.poffice.online/?app=…&repo=…&path=…).
Recommended workflow
- Create/edit with Craft MCP or CLI →
craft-workspace/out/ poffice_office.py publish(orPOST /api/documents)- Give the human the
open_url - Saves sync to Drive and Docs (Paperless) automatically
Related
- Broader admin skill:
poffice-admin(npx skills add thierryteisseire/poffice-workspace@poffice-admin) - UI guide: Workspace → Agent skills (
/dashboard/agents) - Token UI: Workspace → Settings (
/dashboard/settings)