agentleFS
dominik1001dominik1001/caldav-mcp/AGENTS.md

caldav-mcp

AGENTS.md103 starsChanged 7 months agoMITView on GitHub

MCP server exposing CalDAV calendar operations as tools for AI assistants. .mcp.json at the repo root registers the server (loads .env via node --env-file) so both the agent smoke and interactive Claude Code sessions pick it up automatically.

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After implementing a new feature run the smoke tests (npm run smoke and npm run smoke:agent) to verify it works as expected.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

caldav-mcp

MCP server exposing CalDAV calendar operations as tools for AI assistants.

Tech Stack

  • TypeScript, ESM ("type": "module"), Node ≥18, compiled with tsc to dist/.
  • Biome for lint + format (npm run check / check:fix) — do not add ESLint or Prettier.
  • Vitest for tests, lefthook for git hooks, semantic-release for publishing.
  • Runtime deps: @modelcontextprotocol/sdk, ts-caldav, zod.

Layout

  • src/index.ts — server entry; wires up StdioServerTransport and registers tools.
  • src/tools/<tool>.ts — one file per MCP tool, with *.test.ts next to it.
  • Credentials come from .env (see .env.example); dev loads it via tsx --env-file=.env, not dotenv.

Workflow

  • Dev: npm run dev (watch). Build: npm run build. Test: npm test.
  • After implementing a new feature run the smoke tests (npm run smoke and npm run smoke:agent) to verify it works as expected.

Smoke tests

Two complementary end-to-end checks against a real CalDAV server (uses .env):

  • npm run smoke — deterministic SDK harness (scripts/smoke.ts). Spawns the built server over stdio via the MCP client SDK and asserts the create → list → update → delete round-trip. Fast, no LLM cost; safe to run in CI on every PR.
  • npm run smoke:agent — agent-ergonomics harness (scripts/smoke-agent.sh). Drives the server via claude -p with a JSON output schema, validating that tool names, descriptions, schemas, and error messages are usable by an LLM.

.mcp.json at the repo root registers the server (loads .env via node --env-file) so both the agent smoke and interactive Claude Code sessions pick it up automatically.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.