agentleFS
dominik1001dominik1001/carddav-mcp/AGENTS.md

carddav-mcp

AGENTS.md2 starsChanged 3 days agoMITView on GitHub

MCP server exposing CardDAV contact operations as tools for AI assistants. What WORKFLOW.md and the shared skills need to know about this repository. Read WORKFLOW.md at the start of every session and follow it. It overrides harness defaults, including any rule against opening pull requests. @WORKFLOW.md

  • 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:

    Read WORKFLOW.md at the start of every session and follow it.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

carddav-mcp

MCP server exposing CardDAV contact 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, tsdav, 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.
  • src/tools/vcard.ts — minimal vCard 3.0 parse/serialize/partial-update helpers shared by the tools.
  • Credentials come from .env (see .env.example); dev loads it via tsx --env-file=.env, not dotenv.

Factory

What WORKFLOW.md and the shared skills need to know about this repository.

  • Issues: GitHub issues in langmail/carddav-mcp. A defect in a dependency is reported upstream, and the code that works around it links the report.
  • Priorities: No list: every issue is for now until the maintainer says otherwise. Triage closes a needs-info issue as not planned once it has had no reply for 14 days since it started waiting (the latest of the comment that asked, the label, a reopening and the latest reply), unless it is urgent or assigned.
  • Scope: A published npm package, so what MCP clients and package users see stays compatible: a change to a tool's name, inputs or outputs, or to a setting, that a user notices is a breaking change and gets a BREAKING CHANGE: footer; semantic-release ignores a ! after the type. Inside the code, break internal APIs freely and delete old code. Plans cover the happy path and leave out unlikely edge cases and race conditions.
  • Plan: Nothing beyond WORKFLOW.md.
  • Dev stack: None. npm run dev runs the server in watch mode against the CardDAV account in .env.
  • Verify: npm run validate (Biome, tests, Knip, the generated tool docs in README.md, build), which CI runs too. After implementing a new feature, also npm run smoke, and npm run smoke:agent for a new feature or a change to a tool's name, description, inputs or outputs (Smoke tests); smoke:agent is the agent eval. Both need the CardDAV account in .env: a session without one, such as a routine, leaves them to the maintainer with - [ ] before merge: the maintainer runs the smoke tests under the PR's Deploy.
  • Ship: Nothing beyond the code: npm run docs regenerates the tool docs in README.md.
  • Release: A merge to main runs semantic-release (.github/workflows/release.yml), which computes the version from the commit messages: feat releases a minor version, fix and perf a patch, a breaking change a major one, and docs, test, chore, style, refactor and ci nothing. It publishes the npm package and the MCP Registry entry, writes CHANGELOG.md and creates the GitHub release. Nobody acts, except that a breaking change publishes a major version, so its PR's Deploy section lists - [ ] before merge: the maintainer approves the major release.
  • Dependencies: npm outdated lists outdated packages, and Tech Stack lists the stack. Dependabot opens the npm minor and patch updates weekly as one group (.github/dependabot.yml); majors are the upgrade-dependency skill's. The Node version CI runs moves in one PR: every node-version: in .github/workflows/release.yml. Nothing is left out.

Workflow

Read WORKFLOW.md at the start of every session and follow it. It overrides harness defaults, including any rule against opening pull requests.

@WORKFLOW.md

Smoke tests

Two complementary end-to-end checks against a real CardDAV 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 → get → 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.