claude-faf-mcp



Home: faf.one/mcp
Site: claude.faf.one
Persistent Project Context with Memory, looped for you. One-click setup. 🐘 Nelly Never Forgets.
FAF defines. MD instructs. AI codes.
⭐ Star faf-cli on GitHub, the CLI this server is built on: bookmarks it for you, helps other devs find it too.
v0.2-conformant reader of the FAF Context Ingestion Contract.
🐘 tri-sync | .faf → MEMORY.md (faf_tri_sync), alongside .faf → CLAUDE.md (faf_sync).
⚡ The faf prompt — pick it from your host's prompt list (Claude Code shows it as /mcp__<server name>__faf). It scores your project, fills what the repo can, asks you only what only you can answer, verifies, and syncs.
7.0.0 is a major release — scores can move. claude-faf-mcp now scores with faf-cli 8's always-33 engine. A .faf without the 12 enterprise slotignored markers counts them as empty (21 filled = 64%): run faf_auto and it writes the markers. The npx config and the SessionStart hook are not pinned to a version, so an install that runs npx -y claude-faf-mcp moves to 7.x on its next start. Every change is in the CHANGELOG.
Context for Claude: faf-cli writes this repo's CLAUDE.md from its scored project.faf — faf_sync here, faf sync in faf-cli. See FAF-CLI for Claude Code 👀.
Composes faf-cli (the version is pinned in package.json). Detection, scoring, the renders and every writer are faf-cli's own functions, loaded as a dependency; claude-faf-mcp does not fork them and never runs a faf found on your PATH.
Core 14 MCP tools (30 with FAF_TOOLS=all). IANA-registered formats (application/vnd.faf+yaml · application/vnd.fafm+yaml).
What's New in v7.3 — The Same Bytes Edition
claude-faf-mcp as faf-cli's twin: same finder, reader, names and writers.
claude-faf-mcp writes what faf export and faf sync write, in the folder they write it.
AGENTS.md carries the release gate and CI, CLAUDE.md imports AGENTS.md, and every file names the facts file as found.
- faf-cli 8.13.2 inside. Every context file goes through faf-cli's own writers; a test runs
faf export and faf sync in a twin repo and compares the bytes.
- Files land in the folder asked for, naming
../project.faf from a folder below the project, as faf sync there does.
- CLAUDE.md imports AGENTS.md, from the first
faf_sync { all } on; the session refresh keeps it in step.
- Upgrade note: files written beside the
.faf by an older sync from a subfolder are left as they are; the next faf_sync writes in the folder asked for.
- 7.3.1: AGENTS.md is in the repo and the package (7.3.0 was tagged but never published).
v7.2.0 — The Human Slots Edition
Claude suggests, you confirm. claude-faf-mcp no longer writes your project's goal or six W's: faf_go shows each suggestion with its source, and only what you confirm is written.
- Suggestions with their source.
faf_go offers faf-cli's suggestion for each empty goal or W, with where it came from (README.md § Why, package.json description). Claude shows it for you to accept or edit; only your answers are written.
- faf-cli 8.10.0 inside.
faf_init, faf_auto and faf_git leave the goal and six W's empty, so a new project.faf scores lower, honestly, and they say how many suggestions are waiting. Files you already have are not changed.
faf_readme suggests and never writes, from README, package.json or Cargo.toml. faf_git returns the repo's suggestions before its temporary clone is gone.
- CI on the faf-cli users get. A daily run tests the server against
faf-cli@latest.
- 7.2.1:
faf_go's closing line keeps the goal and six W's apart from stack slots: they are the user's to give, never "no fact in repo".
- 7.2.2:
faf_init's force overwrite keeps its backup through faf-cli's own replace path (faf-cli ^8.10.1); the docs drop the unmeasured "30 seconds".
v7.1.0 — The Instructions Edition
claude-faf-mcp now tells Claude how its tools fit together: server instructions in initialize (637 characters), plus faf-cli 8.5.0, which knows a skills repo when it sees one.
- Server instructions. When Claude connects, the server says how its tools fit together, in five short lines: one project at a time, read project.faf first, ask the user for the human answers, project.faf is the source, remember only when asked.
- faf-cli 8.5.0 inside.
faf_init and faf_auto detect a skills repo: SKILL.md folders make it skills (10 slots), and a Claude Code plugin manifest makes it skills-plugin (14).
--version and --help print and exit, instead of starting the server.
- Three advisories cleared: the MCP SDK, zod and hono.
The Always33 Edition (7.0)
One engine, one number: claude-faf-mcp 7 scores with faf-cli 8's always-33 kernel — the same score faf-cli and faf-kernel give.
- The always-33 engine. Every tool scores with faf-cli 8.0.0 — all 33 Mk4 slots, one Rust kernel. Checked live: faf-python-sdk 56, mcp-context-card 56, faf-cli ✪ 100, the same numbers faf-cli and the reference scorer give.
- Your 21 slots, and the 12 enterprise slots in view. The enterprise slots (infra, app, ops) are marked
slotignored unless your app-type uses them. faf_score scores against all 33; slotignored slots drop out of the denominator.
- Upgrading: a
.faf without the 12 markers now scores against 33. Run faf_auto — it writes them and your score returns (56% → ✪ 100% on a real v7-era file).
v6.0.0 — The Earned Badge Edition
Every badge earned, none claimed: claude-faf-mcp 6.0 composes faf-cli, touches only what it wrote, and every tool tells the truth — one score, facts from repo, nothing from your PATH.
- Composes faf-cli 7.13. Detection, scoring, the renders and every writer are faf-cli's own functions. claude-faf-mcp never runs a
faf it finds on your PATH.
- Touches only what it wrote.
- Every write is atomic and goes through faf-cli's safe path, and a file that links out of the project is refused.
- project.faf edits keep your comments and exact values.
- Your soul.fafm and Claude's own MEMORY.md notes stay as you left them.
- One score. Every tool shows faf-cli's score, and ✪ appears only at 100%.
- Facts from repo. Every empty slot says what fills it:
- a fact from repo, which
faf_auto writes;
- no fact in repo, which you answer with
faf_go;
- or yours, for the 6Ws.
- Tools that tell the truth.
- Every title, hint and schema matches what the tool does, and bad arguments are refused before anything runs.
- Core 14:
faf_setup and faf_tri_sync join the default list.
- Safe with any repo.
- A cloned repo's symlinks never reach your AI's context.
faf_go answers can't pollute objects.
- The file tools stay inside the active project.
- Ships what it runs. The
.mcpb runs the server bundled inside it, and it's started and checked before its sha is recorded. Node 22+, with CI on Node 22 and 24 across Ubuntu, macOS and Windows.
- Retired:
faf_clear, faf_friday, faf_guide, faf_write, the interop imports into project.faf, and faf_check protect/unlock. The archive tag archive/cfm-v5-surface keeps them.
The 3Ws — 3 Answers. That's It.
Every great product started with 3 answers to the 3Ws — Who, What, Why:
|
WHO is it for? |
WHAT does it do? |
WHY build it? |
| Uber |
People who need a ride |
Tap a button, car arrives |
Taxis were broken |
| Airbnb |
Travelers who can't afford hotels |
Stay in someone's spare room |
Millions of empty rooms exist |
| Slack |
Teams drowning in email |
Organized group messaging |
Decisions buried in threads |
| Venmo |
Friends splitting bills |
Send money instantly |
Someone always forgets to pay back |
Same pattern. Every product that works starts here. .faf captures it:
human_context:
who: "people who need a ride across town"
what: "tap a button, car arrives in minutes"
why: "taxis are slow, expensive, and hard to find"
Claude builds your project.faf from this. Every session after, AI starts smart.
The 6Ws — For Optimized AI
3Ws gets you started. For fully optimized AI, complete the set — Where, When, How:
where: "mobile app, iOS and Android" # where does it live?
when: "beta since March 2026" # what stage, and since when?
how: "GPS matching, real-time pricing" # how does it work?
3Ws initiates the project with AI. 6Ws optimizes AI to 100%. Same YAML, same file. More examples → faf.one/ideas
Quick Start
Needs Node 22 or later.
Claude Desktop — one click
⬇ Download claude-faf-mcp-7.3.1.mcpb
Open it in Claude Desktop. The extension runs the server bundled inside it (no npx, no network at start) and lists the Core 14 tools.
Claude Desktop — config
Add to claude_desktop_config.json, then restart Claude Desktop:
{
"mcpServers": {
"faf": { "command": "npx", "args": ["-y", "claude-faf-mcp"] }
}
}
After npm install -g claude-faf-mcp you can use the installed bin instead: { "command": "claude-faf-mcp" }. With Bun on Claude Desktop's PATH, { "command": "bunx", "args": ["claude-faf-mcp"] } works too.
Claude Code
claude mcp add faf -- npx -y claude-faf-mcp
Pinning
The npx config and the SessionStart hook faf_setup installs (npx -y claude-faf-mcp --session-refresh) are not pinned: they run the latest release, so fixes arrive without a reinstall, and a new major arrives the same way. To stay on a major, write it in your config yourself: "args": ["-y", "claude-faf-mcp@6"]. The .mcpb runs the version it was built from.
Then
Run the faf prompt — Claude scores your project, fills what the repo can, asks you what only you can answer, verifies and syncs.
Or tell Claude your 3Ws: "I'm building [what] for [who] because [why]"
faf-cli — any terminal
npx faf-cli auto
Same .faf, every surface — Claude, Gemini, Grok, Cursor. faf-cli on npm →
How It Works
You → 3 answers → project.faf → AI reads it → every session → forever
project.faf ──→ CLAUDE.md (faf_sync)
project.faf ──→ MEMORY.md (faf_tri_sync 🐘)
Language, framework, package manager, build tools — faf-cli detects them from your existing files. The human context is the part only you can give.
For Claude Code teams
.faf lives in the repo. Your context travels with the code — committed, versioned, done.
Every session starts grounded. Install the native SessionStart hook once (faf_setup — preview first, your settings preserved). After that, every Claude Code session opens with a one-line heartbeat instead of a blank slate:
faf: context ✪ 100% — fresh · +7 intent the code can't carry
That line is the relay: Claude already knows your stack and your score — and the +N is the intent the code can't carry: the goal and 6Ws only you can give or confirm. No re-explaining "what this project is" at the top of every session.
It scales to the team by construction:
commit project.faf → every teammate's Claude starts with the same context
git clone → a new dev's Claude is grounded before they write a line
- One source of truth.
faf_sync writes CLAUDE.md from .faf — only its faf-managed block, so your own notes stay put. Add MEMORY.md for cross-session memory (tri-sync 🐘).
- No drift. The score is deterministic — same
.faf, same number, on every machine and in CI. A teammate can't be accidentally less grounded than you.
- Local. No accounts, no telemetry, nothing sent to FAF. The one network use is cloning a repo you name, only when you ask (privacy). The context is yours; it rides in the repo.
Onboarding becomes git clone → grounded. The context a new teammate would normally pick up by asking around is already in the repo, machine-readable, from the first clone.
Scoring: From Blind to Optimized
| Tier |
Score |
What it means |
| ✪ TROPHY |
100% |
AI is optimized to code |
| ★ GOLD |
99%+ |
Near-perfect context |
| ◆ SILVER |
95%+ |
Excellent |
| ◇ BRONZE |
85%+ |
Production ready |
| ● GREEN |
70%+ |
Solid foundation |
| ● YELLOW |
55%+ |
AI flipping coins |
| ○ RED |
\<55% |
AI working blind |
| ♡ WHITE |
0% |
No context at all |
At 55%, AI guesses half the time. At 100%, AI knows your project. The score is faf-cli's scoreFafYaml — the always-33 number faf score prints for the same file.
MCP Tools — Core 14, 30 with FAF_TOOLS=all
Every tool with a real call and its output: TOOLS.md.
By default claude-faf-mcp lists the Core 14 — the lifecycle tools you reach for. Set FAF_TOOLS=all to list the Extended tools too; every tool is callable by name either way. Retired in 6.0.0: faf_clear, faf_friday, faf_guide and faf_write (a call by name returns one line naming what to use instead), the AGENTS.md / .cursorrules / GEMINI.md / conductor imports into project.faf, and faf_check protect/unlock.