Developer reference
The MCP server, HTTP API, repo setup, CI, and diagram file rules, for developers and for AI agents setting up Diagram.
You don't need any of this to use Diagram: the setup prompt and connectors hand it to your AI tool. It's here for developers who want the details.
- Repo setup and CI: the
setup_repotool, thediagrams/folder, keeping links current from CI. - Connecting tools by hand: MCP URLs and per-tool configuration.
- Diagram file rules: what a diagram file can contain and how to make it readable.
- HTTP API: endpoints, examples, errors, and limits.
- Security: how diagrams are sandboxed and how keys work.
For agents, everything is in one file: llms-full.txt. There's also a short index at llms.txt and an OpenAPI description.