KosmoKrator

productivity

Caddy MCP Gateway for AI Agents

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

7 functions 5 read 2 write Bearer token auth

Caddy MCP Gateway

Expose Caddy to MCP clients with `kosmokrator mcp:serve --integration=caddy`.

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=caddy --write=deny --json
{
  "mcpServers": {
    "kosmokrator-caddy": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=caddy",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

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

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__caddy__caddy_list_sites caddy.caddy_list_sites Read read
integration__caddy__caddy_get_site caddy.caddy_get_site Read read
integration__caddy__caddy_create_site caddy.caddy_create_site Write write
integration__caddy__caddy_delete_site caddy.caddy_delete_site Write write
integration__caddy__caddy_list_certificates caddy.caddy_list_certificates Read read
integration__caddy__caddy_get_certificate caddy.caddy_get_certificate Read read
integration__caddy__caddy_get_current_user caddy.caddy_get_current_user Read read

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.