Context and Scope

Business Context

business context

External Interfaces

Interface Description Protocol

CLI

Command-line interface for direct user interaction

Bash commands, stdin/stdout

MCP Server

Model Context Protocol server for LLM integration

HTTP/SSE (streaming)

Kroki API

Diagram rendering service

HTTP REST (POST /render)

LLM API

Generation and analysis requests

Provider-specific (OpenAI, Anthropic, etc.)

Technical Context

technical context

Technical Interfaces

Incoming: * CLI: Command-line interface accepting bash commands and arguments * MCP Server: HTTP/SSE endpoint for LLM tool integration

Outgoing: * LLM API: HTTPS requests to various LLM providers (OpenAI, Anthropic, Ollama, etc.) * Kroki API: HTTP POST to rendering service (local or remote) * File System: Write diagram source files and rendered images