# AGENTS.md — Calends Documentation Guide for AI Agents

This documentation site (`https://docs.calends.date`) covers **Calends** (`https://github.com/imetn/calends`, v1.84.0), an open-source (MIT), self-hosted, single-owner subscription ledger available in 14 languages.

## Machine-Readable Entry Points

- **Read-only Docs MCP Server (Streamable HTTP, zero auth)**: `https://docs.calends.date/mcp`
  - Claude Code: `claude mcp add --transport http calends-docs https://docs.calends.date/mcp`
  - Codex: `codex mcp add calends-docs --url https://docs.calends.date/mcp`
  - Exposes 6 read-only tools (`list_docs`, `search_docs`, `read_doc`, `get_mcp_tools`, `get_changelog`, `get_faq_or_comparison`) and 6 MCP resources across all 14 languages.
- **Structured index (with direct `.md` links)**: `https://docs.calends.date/llms.txt`
- **Per-page Markdown (all 37 topics × 14 languages = 518 pages)**:
  - Append `.md` to any topic URL (replace trailing `/` with `.md`), e.g.:
    - English: `https://docs.calends.date/en/ai/mcp.md`, `https://docs.calends.date/en/tracking/cycles.md`
    - Simplified Chinese: `https://docs.calends.date/ai/mcp.md`, `https://docs.calends.date/tracking/cycles.md`
    - Locale index pages: `https://docs.calends.date/index.md`, `https://docs.calends.date/en/index.md`, `https://docs.calends.date/ja/index.md`, etc.
  - Content negotiation: sending `Accept: text/markdown` to any documentation URL also returns clean Markdown directly.
  - Every `.md` page contains YAML frontmatter, absolute `.md` cross-links, same-section sibling links, and the global discovery index so you can traverse from any single page to the full documentation.
- **Complete English documentation (single Markdown bundle)**: `https://docs.calends.date/llms-full.txt`
- **Complete Simplified Chinese documentation (single Markdown bundle)**: `https://docs.calends.date/llms-zh.txt`
- **Multilingual XML sitemap**: `https://docs.calends.date/sitemap.xml`

## Cross-Site Calends AI Resources

- **Deployment & MCP Agent Guide (safety rules & commands)**: `https://calends.date/AGENTS.md`
- **Product Summary & Capabilities**: `https://calends.date/llms.txt`
- **Product Full LLM Reference**: `https://calends.date/llms-full.txt`
- **Complete Changelog (Markdown)**: `https://calends.date/en/releases.md` (简体中文: `https://calends.date/releases.md`)
- **Live Demo (no sign-in, fictional data)**: `https://demo.calends.date`

## URL Structure

All 37 documentation pages exist in 14 languages with identical slugs:
- Simplified Chinese (`zh-CN`): `https://docs.calends.date/<slug>/` (Markdown: `https://docs.calends.date/<slug>.md`)
- Other 13 languages: `https://docs.calends.date/<locale>/<slug>/` (Markdown: `https://docs.calends.date/<locale>/<slug>.md`) where `<locale>` is one of `en`, `zh-tw`, `zh-hk`, `ja`, `ko`, `es`, `fr`, `de`, `pt-br`, `ru`, `tr`, `id`, `vi`.

## Key Reference Pages for Agents (Direct Markdown)

- Introduction: `https://docs.calends.date/en/start/introduction.md`
- Deployment quick start: `https://docs.calends.date/en/start/quick-start.md`
- Cloudflare Workers + D1: `https://docs.calends.date/en/self-host/cloudflare.md`
- Docker & Linux systemd: `https://docs.calends.date/en/self-host/docker.md`
- Configuration & environment variables: `https://docs.calends.date/en/self-host/config.md`
- Built-in receipt & PDF assistant: `https://docs.calends.date/en/ai/assistant.md`
- MCP setup (`/mcp`, Streamable HTTP, Bearer token, Skills & MCP Apps): `https://docs.calends.date/en/ai/mcp.md`
- All 46 MCP tools (18 read, 28 write with `dry_run`): `https://docs.calends.date/en/ai/tools.md`
- Backup & encrypted S3/WebDAV restore: `https://docs.calends.date/en/data/backup.md`
- Privacy, outbound requests & telemetry opt-out (`CALENDS_TELEMETRY=0`): `https://docs.calends.date/en/data/privacy.md`
