KosmoKrator

rendering

Typst MCP Gateway for AI Agents

Expose Typst tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

1 functions 0 read 1 write No credentials auth

Typst MCP Gateway

Expose Typst to MCP clients with `kosmokrator mcp:serve --integration=typst`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.

curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
kosmokrator mcp:gateway:install --integration=typst --write=deny --json
{
  "mcpServers": {
    "kosmokrator-typst": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=typst",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

kosmokrator mcp:serve --integration=typst --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__typst__render_typst typst.render_typst Write write

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.