A Codex stdio MCP server that generates repo-local tldraw diagrams and checks trackable code graphs for drift.

Add the server to Codex:
codex mcp add codex-tldraw -- npx -y codex-tldraw-mcpThen ask Codex to diagram the current repo:
Use codex-tldraw to diagram this repo.
Reverse-engineer its runtime architecture:
Use codex-tldraw to show how this repo works across its main components.
Show the main flow first, keep short errors inside components, and label each interaction once.
Or ask for a diagram directly:
Use codex-tldraw to draw a password reset state machine.
Create a trackable JavaScript or TypeScript module graph:
Use codex-tldraw to create a code graph for this repo.
After the code changes, compare it with the saved graph:
Use codex-tldraw to preview code graph drift, then mark stale elements.
The default output is:
<repo>/boards/main.tldr
Open the generated board in a tldraw-compatible viewer.
- A repo-local
.tldrboard that stays with the project it explains. - A user-facing product workflow inferred from package metadata and source text.
- A prompt-driven offline canvas API for drawing workflows, state machines, plans, and architecture sketches that are not tied to repo scanning.
- Simple architecture diagrams showing the main flow first, with supporting services below it.
- A trackable JavaScript and TypeScript module/import graph with drift detection.
- Red markers for stale nodes and edges, orange markers for changed modules, and a report of new elements.
- tldraw steps and arrows laid out left to right.
- Non-destructive updates: existing boards get the next diagram appended to the right.
- MCP resources for listing boards and reading board summaries.
For a handwriting font app, the workflow may be inferred as: