You run typstgen compile, or your AI agent calls the MCP server. Either way the document goes to the Typst engine that is compiled into typstgen.
Imports are looked up next to the document first, then in the template directories listed in typstgen.toml. You get a PDF, or Typst’s error with its exact position and exit code 1.


