KosmoKrator

productivity

Caddy MCP, CLI, and Lua Integration for AI Agents

Caddy integration docs for AI agents: MCP gateway setup, Caddy CLI commands, Lua API reference, credentials, and function schemas.

7 functions 5 read 2 write Bearer token auth

Caddy for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
caddy
route_slug
caddy
package
caddy
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Caddy MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Caddy.

Caddy CLI Matrix

Use these pages for direct Caddy CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
caddy.caddy_list_sites Read read 2 List all Caddy sites. Returns site IDs, domain names, status, and configuration details.
caddy.caddy_get_site Read read 1 Get detailed information about a specific Caddy site, including its configuration, domain, and status.
caddy.caddy_create_site Write write 2 Create a new site in Caddy. Specify the domain name and optional configuration parameters.
caddy.caddy_delete_site Write write 1 Delete a site from Caddy. This action is irreversible and will remove the site and its configuration.
caddy.caddy_list_certificates Read read 2 List all TLS certificates managed by Caddy. Returns certificate IDs, domains, expiry dates, and status.
caddy.caddy_get_certificate Read read 1 Get detailed information about a specific TLS certificate, including domain, issuer, validity, and SANs.
caddy.caddy_get_current_user Read read 0 Get details of the currently authenticated Caddy user. Returns user ID, email, username, and account info.