A read-only Octopus plugin caches accounting endpoints capped at two calls a day
Source read in fullRead first
Overview
Belgian accountants and bookkeepers want to read Octopus accounting figures directly in Grok Bot without hitting the official two-per-day limit on some endpoints.
Workflow
- What it is: A Grok Bot plugin with a local stdio MCP server and CLI under Apache-2.0. It gives Belgian accountants and bookkeepers read-only Octopus REST API access to periods, charts of accounts, booking lines, contacts and open items, and reports. It derives trial balances, aging and key MAR metrics where the API has none. It accommodates very low daily limits by caching first, syncing incrementally with modified-since and avoiding paid plans entirely.
- Grok Bot parts used: Plugin installation, secret settings and an agent prompt. Add the plugin from the repository. Fill OCTOPUS_SOFTWARE_HOUSE_UUID, OCTOPUS_USER and OCTOPUS_PASSWORD in Grok Bot’s secret settings. Paste the full system prompt from agents/grok-bot/accountant.md. The companion skill is skills/fiscai-octopus-api-connector/SKILL.md. Not part of Grok Bot: The local Python 3.10+ MCP server using httpx and cryptography. It also supports MCP clients including Copilot, Claude, Cursor and Windsurf.
- You need: An Octopus software-house UUID, API-enabled Octopus user, Python 3.10+, httpx and cryptography, plus pyarrow for Parquet. There is no sandbox, so test with a demo dossier. Optional environment variables include a cache encryption key, dossier allowlist and usage reserve.
- Install:
- Step 1 (Grok Bot): Add the plugin from the repo and fill the three secrets. Then ask a question, for example: Show the trial balance of dossier 101 for 2026.
- Step 2 (CLI): Run pip install -r requirements.txt, then config init to write settings, doctor for a local check without requests, call octopus_dossiers for one test, sync --dossier 101 --bookyear 2 to sync, and transfer --dossier 101 --out ./overdracht to export a handoff package. Estimate before adding --yes.
- After install:
- 49 read-only tools cover dossiers, years, accounts, balances, bookings, contacts, invoices and reports. Trial balances combine account balances because Octopus has no endpoint, with MAR category totals and a balance check.
- Count daily calls before sending and refuse at the limit instead of waiting for an official warning email. Use octopus_quota to see remaining calls. Cache twice-daily master data for 12 hours. On modified-since endpoints, fetch everything once and then pull changes only. Refresh the 10-minute token one minute before expiration.
- Meeting prep and filing obligations generate overviews and .eml draft messages without sending by default. Export resumable handoff packages by fiscal year with a SHA-256 manifest.
- Did the author run it: The repo has no runs on real Octopus dossiers. The README says testing used a mock API built to official specifications because there is no official sandbox. Several API details await real-environment verification in docs/OPEN-QUESTIONS.md.
Key points and results
- Maturity: At fetch time on 2026-11-21, the repo was one day old with 49 commits, 0 stars, Apache-2.0 and one open issue or PR.
- Permissions and boundaries: Read-only by default. Write tools don’t exist without OCTOPUS_WRITE_ENABLED=true. Once enabled, review a proposal and enter a confirmation code for one action at a time. Deletion is never available. The plugin refuses the paid Management API. Credentials stay in memory and outputs and logs are scrubbed. The repo has no customer data, with [Voorbeeld] placeholders in examples.
- Known limits: It has not been tested on real dossiers. Details such as whether period balances reflect activity or cumulative amounts await verification, marked verifieer actuele regel. The API has no pagination, fetches whole lists, and caps displayed tool rows but not exports.
- Worth borrowing: Count before sending and use endpoint-specific cache durations, documented under Daily limits in the README. Start with high-level tools before drilling down, include a bron source with every number and stop at tool failures without guessing, as specified in agents/grok-bot/accountant.md.
Source
- Platform
- GitHub
- Author
- MnrAlci
- Published
- Categories
- Research, Limits
What this evidence label means
Source read in full
We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.