TL;DR: faf_sync keeps your hand-written CLAUDE.md, refuses what it can't write safely, and says so.
In Plain English
Old state. rust-faf-mcp had its own code for writing faf's section into CLAUDE.md. In a few cases it cut or replaced your text: a marker quoted in prose matched mid-line, and a CLAUDE.md that wasn't UTF-8 was read as empty and replaced.
Fix. It now follows faf-cli's rules, the same ones faf-mcp, grok-faf-mcp and gemini-faf-mcp use. faf replaces only the section between its own marker lines. Everything else in the file is yours.
New state. Run faf_sync any time. Your lines stay. A file faf
can't safely write is left exactly as it was, and the reply says why.
What happened since The Lineage Edition
Last write-up was The Lineage Edition (v0.8.0). Short tour to today:
- 0.8.1 – 0.8.3 — patches. See the CHANGELOG.
- 0.9.0 —
faf_synckeeps your hand-written CLAUDE.md. This post.
What 0.9.0 is
faf writes its section between two marker lines, <!-- FAF-SYNC-START --> and <!-- FAF-SYNC-END -->. faf replaces only text it can prove it wrote. Only a whole-line pair of markers
outside code counts. Markers quoted in prose, fences or indented code are left alone.
| When your CLAUDE.md… | Before | Now |
|---|---|---|
| quotes a marker in prose above the real section | matched mid-line, text cut | only whole-line markers outside code count |
| has markers in a code fence or indented code | counted | ignored |
| isn't UTF-8 text | read as empty, replaced | refused, left byte for byte as it was |
is a dangling link, or links out of the project or into .git | written through | refused, nothing written |
Every refusal comes back with MCP's isError flag and the reason. Writes land in
one step, and keep the file's permissions, a leading BOM and Windows line endings. faf_auto and faf_go report a refusal instead of claiming success.
faf_agents writes AGENTS.md, the shared instructions file for coding agents, through the same rules.
Whatever your MCP client, your file stays yours.
Also in 0.9.0
- Server instructions on how the tools fit together, sent at initialize (634 characters).
- App types
skills(9 slots) andskills-plugin(12 slots), the same as faf-cli. - rustls 0.23.46 and rustls-webpki 0.103.16 (security, lockfile only).
How we got it right
- An audit of the five FAF MCP servers found the problem, with exact reproductions.
- We fixed it once, in faf-cli's rules, then ported those rules to Rust. Two review rounds followed, and their findings were fixed before merge.
- After publishing, we ran 0.9.0 from npm in clean folders: a hand-written CLAUDE.md kept, a marker quoted in prose ignored, a second run idempotent, a non-UTF-8 file and a link out of the project both refused and left untouched. 0 findings.
Try it
Rust toolchain (1.88 or newer):
cargo install rust-faf-mcp --version 0.9.0No toolchain: npx downloads the release binary.
npx --yes rust-faf-mcp@0.9.0Homebrew (macOS):
brew install Wolfe-Jam/faf/rust-faf-mcpClaude Code:
claude mcp add rust-faf-mcp -- npx --yes rust-faf-mcp@0.9.0Then ask Claude to run faf_sync.
Technical details
- Version: rust-faf-mcp 0.9.0 (November 5, 2026), The Your-Files-Stay-Yours Edition
- Where: crates.io · npm · Homebrew · the MCP Registry
- Changes: #22 · release notes
Feedback welcome
Questions, nits, suggestions — guide the next version. Tell us what you want to see.