claude-faf-mcp
claude-faf-mcp
何を作っているのか、誰のためのものか、なぜ重要なのかをAIに伝えましょう。30秒で完了。🐘 AIは決して忘れません。
FAFが定義し、MDが指示し、AIがコーディングする。
🐘 tri-syncがすべての開発者に無料開放されました —
.faf↔CLAUDE.md↔MEMORY.mdを1つのコマンドで同期。Pro機能が今なら無料です。
33個のMCPツール。IANA登録済みフォーマット (application/vnd.faf+yaml)。プッシュごとに2,346回のテストを実行。
3つのW — 3つの答え。それだけです。
優れた製品はすべて、3つのW(Who:誰が、What:何を、Why:なぜ)に対する3つの答えから始まります:
WHO(誰のために?) | WHAT(何をする?) | WHY(なぜ作る?) | |
Uber | 移動手段が必要な人 | ボタンをタップして車を呼ぶ | タクシー業界が機能していなかった |
Airbnb | ホテル代を節約したい旅行者 | 他人の空き部屋に泊まる | 数百万の空き部屋が存在する |
Slack | メールに埋もれるチーム | 整理されたグループメッセージング | スレッド内に決定事項が埋もれる |
Venmo | 割り勘をする友人 | 即座に送金する | 誰かが支払いを忘れがち |
パターンは同じです。成功するすべての製品はここから始まります。.faf はそれをキャプチャします:
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"30秒。Claudeがこれをもとに project.faf を構築します。それ以降のすべてのセッションで、AIは賢い状態でスタートします。
6つのW — AIを最適化するために
3つのWでスタートし、AIを完全に最適化するためにセットを完成させましょう — Where(どこで)、When(いつ)、How(どのように):
where: "mobile app, iOS and Android" # where does it live?
when: "launch in 3 months" # when is it shipping?
how: "GPS matching, real-time pricing" # how does it work?3つのWでAIとのプロジェクトを開始し、6つのWでAIを100%最適化します。同じYAML、同じファイルです。 その他の例 → faf.one/ideas
Related MCP server: gemini-faf-mcp
クイックスタート
以下をコピーしてClaudeに貼り付けてください:
FAF MCPサーバーをインストールします:
npm install -g claude-faf-mcp。次に、claude_desktop_config.jsonに以下を追加してください:{"mcpServers": {"faf": {"command": "npx", "args": ["-y", "claude-faf-mcp"]}}}。その後、Claude Desktopを再起動してください。
次に、Claudeに3つのWを伝えてください: "I'm building [what] for [who] because [why]"
仕組み
You → 3 answers → project.faf → AI reads it → every session → forever
project.faf ←── 8ms ──→ CLAUDE.md (bi-sync, free)
project.faf ←── 8ms ──→ MEMORY.md (tri-sync, Pro 🐘)残りはClaudeが行います。手間いらずで、最初から正しく、高速かつ正確に完了します。言語、フレームワーク、パッケージマネージャー、ビルドツールはすべて既存のファイルから自動検出されます。人間によるコンテキストこそが、あなたにしか提供できない部分です。
スコアリング:盲目から最適化へ
ティア | スコア | 意味 |
🏆 Trophy | 100% | ゴールドコード — AIが最適化済み |
🥇 Gold | 99%+ | 完璧に近いコンテキスト |
🥈 Silver | 95%+ | 非常に優れている |
🥉 Bronze | 85%+ | 本番環境対応 |
🟢 Green | 70%+ | 強固な基盤 |
🟡 Yellow | 55%+ | AIが運任せの状態 |
🔴 Red | <55% | AIが盲目的に作業中 |
🤍 White | 0% | コンテキストなし |
55%では、AIは半分推測で動いています。100%では、AIはあなたのプロジェクトを完全に理解しています。faf-cli と同じコンパイラを使用しているため、どこでも同じスコアになります。
33個のMCPツール
すべてのツールはスタンドアロンで動作します — CLI依存関係ゼロ、平均実行時間19ms。
作成と検出
ツール | 目的 |
| プロジェクトDNAの初期化 |
| スタックの自動検出とコンテキストの入力 |
| 超高速作成 (3ms) |
| READMEからコンテキストを抽出 (+25-35%のブースト) |
| プロジェクト内の全フォーマットを検出 |
| GitHubリポジトリURLからコンテキストを抽出 |
| 人間によるコンテキスト(6つのW)を追加 |
検証とスコアリング
ツール | 目的 |
| AI対応スコア (0-100%) と内訳 |
| .faf構造の検証 |
| 一般的な問題の診断と修正 |
| ゴールドコードへのガイド付きインタビュー |
同期と永続化
ツール | 目的 |
| .faf → CLAUDE.md の同期 |
| .faf ↔ CLAUDE.md の双方向同期 |
| .faf ↔ CLAUDE.md ↔ MEMORY.md の3方向同期 — Pro機能、開発者向け無料 🐘 |
| インテリジェントな拡張 |
エクスポートと相互運用
ツール | 目的 |
| AGENTS.md (OpenAI Codex) のインポート/エクスポート |
| .cursorrules (Cursor IDE) のインポート/エクスポート |
| GEMINI.md (Google Gemini) のインポート/エクスポート |
| Conductorディレクトリのインポート/エクスポート |
読み取りと書き込み
ツール | 目的 |
| ファイルの読み取り |
| ファイルの書き込み |
| プロジェクトステータスの概要 |
| 環境の検査 |
| .fafとは何か |
🐘 Nellyは決して忘れない
bi-syncは .faf ↔ CLAUDE.md を同期し続けます。
tri-syncは MEMORY.md を追加し、AIがセッションを超えてプロジェクトを記憶します。
bi-sync = .faf ↔ CLAUDE.md ← always in sync
tri-sync = .faf ↔ CLAUDE.md ↔ MEMORY.md ← Nelly never forgets 🐘Pro機能、開発者向け無料。チームおよびエンタープライズ向け: faf.one/pro (プラン)
.FAFの立ち位置
Model Context Protocol
───── ─────── ────────
Claude → .faf → MCP
Gemini → .faf → MCP
Codex → .faf → MCP
Any LLM → .faf → MCPIANA登録済み (application/vnd.faf+yaml)。あらゆるAIで動作します。一度定義すれば、どこでも使えます。
エコシステム
パッケージ | プラットフォーム | レジストリ |
claude-faf-mcp (これ) | Claude | npm |
ユニバーサルCLI | npm + Homebrew | |
Google Gemini | PyPI | |
xAI Grok | npm | |
Rust | crates.io | |
ブラウザ/Edge | npm | |
ブラウザ | Chrome Web Store |
同じ project.faf。同じスコアリング。同じ結果。異なる実行レイヤー。
品質
391テスト · 12スイート · 6プラットフォーム (ubuntu/macos/windows × Node 18/20)
プライバシー
すべてローカルで実行されます。データがマシンから外部へ送信されることはありません。分析、テレメトリ、追跡、アカウント登録は一切ありません。 プライバシーポリシー →
claude-faf-mcp が役に立った場合は、リポジトリにスターを付けることを検討してください。他の開発者が見つけやすくなります。
ライセンス
MIT — 無料かつオープンソース
FAFファミリー
| |
Claude Desktop用MCPサーバー | |
Gemini CLI用MCPサーバー | |
Grok用MCPサーバー | |
Cursor, Windsurf, Cline, VS Code用MCPサーバー | |
Rust製MCPサーバー | |
17個のClaude Codeスキル | |
ブログ、ダウンロード、ドキュメント | |
|
format | driven 🏎️⚡️ wolfejam.dev
CLIを入手する
faf-cli — オリジナルのAIコンテキストCLI。すべての開発者にとって必須のツールです。
npx faf-cli autoAnthropic MCP #2759 · IANA登録済み: application/vnd.faf+yaml · faf.one · npm
Available Tools
14 toolsfaf_aboutAbout .fafARead-onlyIdempotentInspect
Explain what the .faf format is — project context for AI, IANA-registered as application/vnd.faf+yaml — and how this server uses it. Returns a short plain-text overview with this server's version. Reads nothing and writes nothing. Use it when someone asks what FAF is.
Inputs: no named parameters.
faf_autoFill from the RepoADestructiveIdempotentInspect
Create /project.faf, or fill the empty slots of the one there, with faf-cli's detection over the repo's own files (package.json, Cargo.toml, pyproject.toml, go.mod…) — no hardcoded defaults. A value already there is kept. A typed None or placeholder word is an empty slot: in a tech slot the app-type uses, only a repo fact replaces it (with no fact it stays as typed); in a tech slot the app-type leaves out, faf_auto writes slotignored; in a 6W it stays as typed (faf_go asks). Every value it changes is listed. Then writes CLAUDE.md's faf-managed block. Returns what was filled and faf-cli's score before and after. faf_go does the human 6Ws.
Inputs: path.
faf_benchGrounding BenchmarkARead-onlyIdempotentInspect
Prove the .faf earns its place — measure how much the context is worth, on THIS repo, falsifiably. Questions derive from the project.faf's own populated slots (the .faf is the answer key), so grading is mechanical — no judge, no rubric. action=questions returns the answer-key-safe question set; action=grade takes your answers WITHOUT the .faf (cold) and WITH it (faf), grades both, and returns the cold→with-faf lift with a receipt hash. The delta is the product; the cold number belongs to the absence of context, never to FAF. Reads only.
Inputs: faf, cold, path, model, +3 more. Returns: Question set (action=questions) or the cold→with-faf grading and its receipt (a…
faf_contextActive ProjectARead-onlyIdempotentInspect
Show the active project — the folder every faf_* call without a path uses — and the .faf there; pass path to make another folder the active project (your home folder and the filesystem root are refused). detail: true also returns the .faf's text. Writes no file. Call it once at the start of a session.
Inputs: path, detail. Returns: The active project context and whether a project.faf lives there.
faf_doctorDiagnose .fafARead-onlyIdempotentInspect
Diagnose the project's .faf: faf-cli's validateFaf errors, faf-cli's score with every empty slot and the tool that fills it (faf_auto from the repo, faf_go for the 6Ws), whether CLAUDE.md is there, and the formats faf-cli finds in the folder. Returns a checklist of findings, each with its fix. Reads only. Use it when faf_score is below 100%.
Inputs: path. Returns: Health check: an overall verdict plus per-check diagnostics with fixes.
faf_etchEtch MemoryADestructiveInspect
Remember a decision, gotcha, or win across sessions by writing it to the project soul (soul.fafm) with faf-cli's Soul. Returns the stored memory and the soul's size. Re-etching an id updates that memory in place. Use it to persist something an AI should recall later; faf_recall reads them back.
Inputs: text (required), id, path, tags, +2 more. Returns: The etched fact + soul state.
faf_goGuided InterviewADestructiveInspect
The human half of project.faf. Without answers it returns the Table-of-8 — project name, goal and the 6Ws (who, what, why, where, when, how) — each filled, seeded from the goal, or empty, with faf-cli's score and, for each slot still empty, whether it is a fact from repo (faf_auto writes it: its dry run, the one faf_formats shows) or needs an answer here. An empty goal or W carries faf-cli's suggestion from the repo with its source, for the user to confirm. With answers (slot path → the text the user confirmed, e.g. {"human_context.why": ""}) it writes them into /project.faf in place and returns the new score; a value already in a slot you answer is replaced. With no project.faf yet it runs faf_init and faf_auto first. faf_auto writes each fact from repo; a stack slot with no fact in repo is answered here.
Inputs: path, answers.
faf_initCreate project.fafADestructiveInspect
Create a new project.faf for a folder: faf-cli detects its name, language and stack, and the reply gives the file path, faf-cli's starting score and the birth .faf-dna. An existing project.faf is left as it is — use faf_auto to fill its empty slots from your manifests, or faf_go for the human 6Ws. force: true replaces an existing project.faf with a fresh one, after copying the old file to a backup beside it.
Inputs: path, force.
faf_recallRecall MemoryARead-onlyIdempotentInspect
Recall memories from the project soul (soul.fafm), ranked by priority then recency, filtered by query/tags/type. Returns the matching entries. Reads only. Use it to surface past decisions; faf_etch adds new ones.
Inputs: path, tags, type, limit, +2 more. Returns: Ranked memories from the soul.
faf_scoreScore .fafARead-onlyIdempotentInspect
Score the project's .faf with faf-cli's scorer — the one score every faf tool reports: 0–100%, the tier, populated/active slots, and a faf-parity/v1 hash of the result. details: true lists every slot as populated, empty or slotignored. Reads only. Use faf_doctor for what to fix.
Inputs: path, details. Returns: Structured AI-readiness score, single-sourced from faf-cli.
faf_setupSession Hook SetupAIdempotentInspect
Install the native SessionStart hook in the project settings (/.claude/settings.json) — every Claude Code session in this project starts with fresh .faf context. Shows the exact settings first (preview); writes only with confirm: true, install or remove. faf changes only its own hook entry; every other key and hook stays as written. remove: true takes out only the hook whose command is exactly the faf hook command. Never writes the user settings: the home folder is refused.
Inputs: path, remove, confirm. Returns: Setup result: what happened (or would happen) to .claude/settings.json.
faf_syncSync .faf to CLAUDE.mdAIdempotentInspect
Write project.faf into CLAUDE.md as a faf-managed block (faf-cli's render and injector), and on request into AGENTS.md (agents), .cursorrules (cursor), GEMINI.md (gemini) and .github/copilot-instructions.md (copilot) — or all of them (all) — with faf-cli's writers. Each file keeps every line outside faf's block. Returns the files written and any requested file that could not be written, with the reason (then isError). Use it after editing project.faf.
Inputs: all, path, agents, cursor, +2 more. Returns: The files faf_sync wrote, and each requested file it could not write.
faf_tri_syncTri-Sync to MEMORY.mdAIdempotentInspect
Write project.faf as a faf-managed block into the MEMORY.md Claude Code loads for this project (~/.claude/projects//memory/MEMORY.md, or under CLAUDE_CONFIG_DIR). Only the block changes; every note of Claude's is kept, and the reply says so only after reading the file back. action: status reads only. faf_sync writes CLAUDE.md.
Inputs: path, action.
faf_trustTrust ReceiptARead-onlyIdempotentInspect
Attest the project's .faf: faf-cli's validateFaf, faf-cli's score, and a faf-parity/v1 hash (claude-faf-mcp's own spec) of that score that anyone can check with sha256(projection) === parityHash. Returns a trust receipt whose subject is the project. An invalid .faf, or a score that is unknown, gets no receipt (isError). Reads only.
Inputs: path. Returns: Trust attestation: faf-cli's validity and score, and a faf-parity/v1 receipt.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools have sharply distinct purposes (init=create, auto=fill from repo, go=human 6Ws, sync=CLAUDE.md, tri_sync=MEMORY.md, etch/recall=memory), and the descriptions explicitly cross-reference and disambiguate. The weak spot is the read-only score cluster — faf_score, faf_doctor, faf_trust, and faf_bench all report a score/hash, and an agent must parse dense prose to decide which to call.
Every tool follows the same faf_<short_verb_or_noun> snake_case pattern with no casing or prefix deviations. The suffixes (init, auto, go, score, sync, tri_sync, etch, recall) are readable and predictable.
14 tools sit comfortably in the ideal range for a CLI-backed project-context server. Each maps to a real, named step in the .faf lifecycle, and none look like filler.
The surface covers the full lifecycle: create, fill (machine and human), validate/score, attest, render to five target files, install a session hook, benchmark value, and persist/recall memory. Minor gaps: no way to delete a .faf or 'forget' an etched memory (etch updates but never removes), and no multi-project listing beyond faf_context.
Maintenance
Related MCP Connectors
Persistent project context for xAI Grok. IANA-registered .faf format.
Persistent project context — Rust-native MCP server. IANA-registered .faf format.
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegration project for Model Context Protocol (MCP) servers with Claude Desktop App, enabling filesystem operations, development support, and file management through natural language.MIT
- AlicenseAqualityBmaintenancePersistent project context for Google Gemini. 12 MCP tools for .faf Project DNA — auto-detect your stack, validate, score, and sync across CLAUDE.md, GEMINI.md, and AGENTS.md. Python/FastMCP. IANA-registered format (application/vnd.faf+yaml). 183 tests. One file, every AI platform.132MIT
- AlicenseNot gradedqualityBmaintenancePersistent project context in Rust. 8 MCP tools via rmcp SDK — parse, validate, score, compress, discover, and token analysis. Single binary, zero config. IANA-registered format (application/vnd.faf+yaml). One file, every AI platform.285 npm5MIT
- AlicenseBqualityBmaintenanceGrok asked for MCP on a URL. This is it. First MCP server built for Grok URL-based • Zero config • Just works12431 npm19MIT