codex-tldraw-mcp

v0.5.0
io.github.jananadiw/codex-tldraw-mcp Checked 16 hours ago Published 3 months ago

A 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.

ParameterTypeDescription
boardNamestringBoard name under the target repository boards directory. Defaults to "main".
repoPathstringAbsolute 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.

ParameterTypeDescription
applyMarkersbooleanWhen true, marks changed elements orange and stale elements red. Defaults to a read-only preview.
boardNamestringBoard name under the target repository boards directory. Defaults to "main".
diagramIdstringCode graph diagram id to compare. Defaults to the newest trackable code graph on the board.
repoPathstringAbsolute 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.

ParameterTypeDescription
boardNamestringBoard name under the target repository boards directory. Defaults to "main".
repoPathstringAbsolute 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.

ParameterTypeDescription
steps *arrayOrdered steps, states, screens, or architecture nodes to draw.
title *stringDiagram title shown above the generated tldraw shapes.
boardNamestringBoard name under the target repository boards directory. Defaults to "main".
connectionsarrayArrows between steps. If omitted, steps are connected sequentially from left to right.
repoPathstringAbsolute 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.

ParameterTypeDescription
components *arrayTwo to seven main runtime components. Keep the list small.
connections *arrayOne short connection per interaction. Combine request and response instead of adding a return arrow.
primaryFlow *arrayComponent ids in the main user flow, ordered from first action to final result.
title *stringArchitecture diagram title.
boardNamestringBoard name under the target repository boards directory. Defaults to "main".
repoPathstringAbsolute 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.

ParameterTypeDescription
repoPathstringAbsolute 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.

ParameterTypeDescription
boardNamestringBoard name under the target repository boards directory. Defaults to "main".
repoPathstringAbsolute or relative path to the repository. Defaults to the MCP server working directory.