Runtime / 06

MCP and Agent Workflows

Zole includes a built-in Model Context Protocol server (zole mcp) so AI assistants can inspect schemas, search docs, verify translations, and author valid files without guessing frontmatter rules.

Start the MCP server

Read-only tools are enabled by default. Pass --allow-write explicitly when an agent should create, update, delete, or build files:

pnpm exec zole mcp
pnpm exec zole mcp --allow-write

Example MCP host configuration (.mcp.json):

{
  "mcpServers": {
    "zole": {
      "command": "pnpm",
      "args": ["exec", "zole", "mcp", "--allow-write"]
    }
  }
}

Exposed MCP tools

Tool Access Capability
zole_list Read List collection or single items with locale filtering
zole_view Read Inspect parsed metadata, body text, and raw source
zole_search Read Search indexed content via Orama
zole_schema Read Return exact Zod field types, descriptions, and defaults
zole_lint Read Validate schemas, relations, and translation coverage
zole_status Read Summarize item counts and localized gaps
zole_create Write Create a schema-validated document
zole_update Write Patch metadata keys or body while preserving formatting
zole_delete Write Remove an entry with dry-run validation
zole_build Write Regenerate TypeScript types, data objects, and search index

Workspace skill generation

Run zole skill to output concise agent rules describing your workspace collections, locales, and CLI entrypoints for prompt injection or editor setup.

Type a command, config option, or guide title.