codex-tldraw-mcp
v0.5.0A Codex stdio MCP server that generates repo-local tldraw diagrams and detects code graph drift.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
diagram_code_graph Diagram trackable code graph
Scans repository-local JavaScript and TypeScript modules and appends a trackable module/import graph to a tldraw board.
| Parameter | Type | Description |
|---|---|---|
boardName | string | Board name under the target repository boards directory. Defaults to "main". |
repoPath | string | Absolute or relative path to the repository. Defaults to the MCP server working directory. |
compare_code_graph Compare code graph drift
Compares the current JavaScript and TypeScript module graph with an existing trackable code graph. Preview is the default; applyMarkers updates only generated graph styling.
| Parameter | Type | Description |
|---|---|---|
applyMarkers | boolean | When true, marks changed elements orange and stale elements red. Defaults to a read-only preview. |
boardName | string | Board name under the target repository boards directory. Defaults to "main". |
diagramId | string | Code graph diagram id to compare. Defaults to the newest trackable code graph on the board. |
repoPath | string | Absolute or relative path to the repository. Defaults to the MCP server working directory. |
diagram_repo Diagram product workflow
Scans a local repository and appends a simple product workflow diagram to a tldraw board. Use this when the user asks Codex to draw what a project does.
| Parameter | Type | Description |
|---|---|---|
boardName | string | Board name under the target repository boards directory. Defaults to "main". |
repoPath | string | Absolute or relative path to the repository. Defaults to the MCP server working directory. |
draw_canvas Draw prompt-provided diagram
Appends a prompt-provided workflow, state machine, architecture sketch, or plan to a tldraw board without scanning repository source.
| Parameter | Type | Description |
|---|---|---|
steps * | array | Ordered steps, states, screens, or architecture nodes to draw. |
title * | string | Diagram title shown above the generated tldraw shapes. |
boardName | string | Board name under the target repository boards directory. Defaults to "main". |
connections | array | Arrows between steps. If omitted, steps are connected sequentially from left to right. |
repoPath | string | Absolute or relative path to the repository. Defaults to the MCP server working directory. |
draw_architecture Draw simple system architecture
Appends a simple architecture diagram with a straight main flow, supporting components below it, concise calls, and errors inside components. Inspect the codebase first and keep implementation libraries inside component actions.
| Parameter | Type | Description |
|---|---|---|
components * | array | Two to seven main runtime components. Keep the list small. |
connections * | array | One short connection per interaction. Combine request and response instead of adding a return arrow. |
primaryFlow * | array | Component ids in the main user flow, ordered from first action to final result. |
title * | string | Architecture diagram title. |
boardName | string | Board name under the target repository boards directory. Defaults to "main". |
repoPath | string | Absolute or relative path to the repository. Defaults to the MCP server working directory. |
list_boards List boards
Lists tldraw boards stored under the target repository boards directory.
| Parameter | Type | Description |
|---|---|---|
repoPath | string | Absolute or relative path to the repository. Defaults to the MCP server working directory. |
read_board_summary Read board summary
Summarizes shapes and workflow diagrams in a tldraw board.
| Parameter | Type | Description |
|---|---|---|
boardName | string | Board name under the target repository boards directory. Defaults to "main". |
repoPath | string | Absolute or relative path to the repository. Defaults to the MCP server working directory. |