When an LLM trades a live portfolio, “what did it know and when did it know it” must be answerable — not just in principle, but with a file you can open after the fact. AI Trading MCP closes that loop by writing everyDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/backtest-kit/ai-trading-mcp/llms.txt
Use this file to discover all available pages before exploring further.
get_status response to disk, in full, before it is returned to the agent.
What Gets Dumped
Everyget_status response — portfolio state across all symbols, command history, and the complete Telegram feed including chart screenshots — is persisted to two directories before the result is returned. The dump happens synchronously inside GET_STATUS_FN so there is no race between “what the model received” and “what ended up on disk”:
Where Dumps Live
dump/mcp/
Full text content of each
get_status response, one file per call.
Filename is a minute-level timestamp: 20260802_0934.md.
Images are referenced with relative paths so the file renders anywhere.dump/images/
Chart screenshots from the Telegram feed, base64-decoded back to PNG.
Each file is named after its MCP message ID:
<id>.png.
Referenced from the markdown as ../images/<id>.png.The dumpStatus Implementation
StatusMarkdownService.dumpStatus iterates the message list and writes text blocks inline and image blocks as separate PNG files with relative markdown references:
getMomentStamp(when, "minute") produces a minute-level stamp (e.g., 20260802_0934). One file is written per get_status call; if two calls land within the same minute the second overwrites the first, which is by design — the minute-stamped file always holds the most recent snapshot for that minute.
Position Provenance
The dump captures not just what the model saw but what it decided and why. Thenote parameter of open_position is echoed back in every subsequent get_status response, so the position’s basis travels forward through the audit trail:
The Dump Viewer
The web UI served on:60050 ships a built-in dump viewer that renders the markdown files with inline images. Open it in a browser while the trading process is running to browse the full history of what the model saw, including chart screenshots from the feed.
Persistence and Process Restarts
Dump files survive process restarts — they are plain files written todump/mcp/ and dump/images/. The trading engine’s own state persistence (open positions, signals, brackets, history) is configured separately in config/setup.config.ts and stored under dump/data/. Both survive restarts independently.
Dump files can grow large on active chart channels. An image-heavy Telegram feed with
frequent
get_status calls will accumulate PNGs quickly. The dump/ directory is
in .gitignore by default — archive or prune it periodically for long-running sessions.