# Simple Jacks Workbook Studio

> Agentic, Rust/WASM-calculated spreadsheet & financial/tax workpaper environment on Web and macOS Desktop (210 canonical templates: 92 starters + 118 Pro models & CPA binders).

## Primary Endpoints
- Marketing & Docs: https://workbooks.simplejacks.ai
- Workbench Web App: https://app.workbooks.simplejacks.ai
- Remote MCP (Streamable HTTP `2026-07-28`): https://kindly-crab-38.convex.site/api/mcp
- Public REST API v1: https://kindly-crab-38.convex.site/api/v1
- OpenAPI 3.1 Spec: https://workbooks.simplejacks.ai/api/v1/openapi.json
- Template Catalog JSON (210 templates): https://workbooks.simplejacks.ai/api/v1/templates.json
- Developer & Client Setup Hub: https://workbooks.simplejacks.ai/developers/
- Client Bundles Manifest: https://workbooks.simplejacks.ai/downloads/manifest.json

## Connecting External Agents (Claude, Codex, AGY, Perplexity, Cursor, VS Code)
- Stateless discovery (no auth): POST https://kindly-crab-38.convex.site/api/mcp for `workbook_templates_list`, `workbook_template_inspect`, `workbook_open_handoff_url`.
- Live Cloud Workbook Binding: In Studio Web or Desktop, open a cloud workbook -> click **Connect Agent** -> copy a scoped `wb_bind_...` token (`read` or `propose`), then connect with `Authorization: Bearer <token>`.
- Desktop Offline Local Binding: Open Workbook Studio on macOS -> **Connect Agent** -> create a local loopback binding (`wb_local_...`) to inspect or propose edits directly against an unsynced `.hwb` or `.xlsx` window (also includes `workbook_compile_and_verify`).
- Human-in-the-Loop Guarantee: `workbook_propose` requires `expectedContextSha256` from `workbook_outline` and never mutates cells silently; every change waits in Studio's grid highlight & Approve/Decline rail and recalculates via the Rust kernel.

## Representative Templates
- `trial-balance`: https://app.workbooks.simplejacks.ai/templates#trial-balance
- `budget`: https://app.workbooks.simplejacks.ai/templates#budget
- `monthly-financial-package`: https://app.workbooks.simplejacks.ai/templates#monthly-financial-package
- `thirteen-week-cash-forecast`: https://app.workbooks.simplejacks.ai/templates#thirteen-week-cash-forecast
- `adjusting-entries-staging`: https://app.workbooks.simplejacks.ai/templates#adjusting-entries-staging
- `form-1040-full-workpaper-binder`: https://app.workbooks.simplejacks.ai/templates#form-1040-full-workpaper-binder
- `form-1120s-scorp-basis-7203-binder`: https://app.workbooks.simplejacks.ai/templates#form-1120s-scorp-basis-7203-binder
- `form-1065-partnership-704b-k1-binder`: https://app.workbooks.simplejacks.ai/templates#form-1065-partnership-704b-k1-binder
- `asc-740-income-tax-provision`: https://app.workbooks.simplejacks.ai/templates#asc-740-income-tax-provision

## Docs & Ecosystem
- Full LLM Reference: https://workbooks.simplejacks.ai/llms-full.txt
- MCP Tooling Guide (Markdown): https://workbooks.simplejacks.ai/developers/mcp.md
- Connected with Simple Jacks Tax Desk, Business Manager, Ledger, Tax Relief, Debt Relief, Personal Budget, and CA Software Tax guides.

## MCP Tool Reference (`2026-07-28`)

### Stateless Tools (no token required)
- `workbook_templates_list({ query?, kind?, level?, tag?, limit? })` — concise index + Studio `resource_link`s.
- `workbook_template_inspect({ id })` — inputs, outputs, OOXML `.xlsx` & `.workbook.json` digests, download URLs.
- `workbook_open_handoff_url({ templateId?, preferAppOrigin? })` — canonical web/app open & `/receive` handoff links.

### Live Bound Tools (Bearer `wb_bind_...` or Desktop `wb_local_...`)
- `workbook_outline()` — sheet list, dimensions, row-1 headers, formula counts, tie-out PASS/OUT counts, `contextSha256` fence (~350 tokens).
- `workbook_range_read({ sheet?, range?, includeFormulas?, maxCells? })` — bounded range read (up to 400 populated cells).
- `workbook_search({ query?, sheet?, onlyErrors?, onlyFormulas?, limit? })` — fast across-sheet search (up to 50 matches).
- `workbook_tieouts()` — full list of reconciliation PASS/OUT checks and formula error cells.
- `workbook_trace({ sheet?, cell })` — formula source, evaluated value, direct precedents with values, and dependent formula cells.
- `workbook_propose({ reason, expectedContextSha256, expectedHeadSeq?, operations })` — submit up to 200 revision-fenced ops (`set_value`, `set_formula`, `clear_cell`, `set_style`, `add_sheet`, `rename_sheet`) for explicit human Approve / Decline in Studio.
- `workbook_proposal_status({ proposalId, action?: 'status' | 'withdraw' })` — check human approval outcome & verified readback, or withdraw a pending proposal.

### REST API Mirror
- `GET https://kindly-crab-38.convex.site/api/v1/templates?query=...&level=simple|pro&limit=20`
- `GET https://kindly-crab-38.convex.site/api/v1/workbook/outline` (Bearer required)
- `GET https://kindly-crab-38.convex.site/api/v1/workbook/range?sheet=Summary&range=A1:F20` (Bearer required)
- `GET https://kindly-crab-38.convex.site/api/v1/workbook/tieouts` (Bearer required)
- `POST https://kindly-crab-38.convex.site/api/v1/workbook/propose` (Bearer propose-scope required)
- `GET https://kindly-crab-38.convex.site/api/v1/workbook/proposals?proposalId=wbp_...` (Bearer required)

### Security & Custody Rules
- Never pass binding tokens in URL query parameters (`?token=` returns HTTP 400).
- Binding tokens are hashed with SHA-256 server-side and can be revoked instantaneously from Studio -> Connect Agent.
- Cross-app `/receive` window handoffs verify exact origin allowlist + SHA-256 digest of the `.xlsx` payload.
