gemini-faf-mcp
Persistent 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.
README
gemini-faf-mcp 🧬
Unify your AI project context. One file to rule them all. Bridges
CLAUDE.md,GEMINI.md, andAGENTS.mdinto a single, IANA-registered source of truth.
<!-- mcp-name: io.github.Wolfe-Jam/gemini-faf-mcp -->
Stop re-explaining your project to every new AI session.
Gemini, Claude, and OpenAI all have different ways of "learning" your project. FAF (Foundational AI-context Format) unifies them into one machine-readable .faf file.
Result: Zero context drift. Zero-minute onboarding. 100% project alignment.
| Feature | CLAUDE.md |
GEMINI.md |
AGENTS.md |
project.faf |
|---|---|---|---|---|
| Format | Markdown | Markdown | Markdown | Structured YAML |
| Schema | Custom | Custom | Custom | IANA Standard |
| Scoring | No | No | No | Yes (0-100%) |
| Auto-Detect | No | No | No | Yes (153+ files) |
| Vendor Neutral | No | No | No | Yes |
🚀 One-Minute Setup
1. Install
pip install gemini-faf-mcp
2. Auto-Detect & Initialize
Scan your existing project and create your DNA in one command:
# Detects Python (FastAPI/Django), JS/TS (React/Next.js), Rust (Axum), and Go (Gin)
faf auto
3. Add to Gemini CLI
gemini extensions install https://github.com/Wolfe-Jam/gemini-faf-mcp
💎 The "One-File" Advantage
A .faf file is structured YAML that captures your project DNA. Every AI agent reads it once and knows exactly what you're building.
# project.faf — your project, machine-readable
faf_version: '2.5.0'
project:
name: my-api
goal: REST API for user management
main_language: Python
stack:
backend: FastAPI
database: PostgreSQL
testing: pytest
human_context:
who: Backend developers
what: User CRUD with auth
why: Replace legacy PHP service
Result: Gemini reads this once and knows your project. No 20-minute onboarding. No wrong assumptions. Every session starts aligned.
Auto-Detect Your Stack
faf_auto scans your project's manifest files and generates a .faf with accurate slot values. No manual entry needed.
> Auto-detect my project stack
{
"detected": {
"main_language": "Python",
"package_manager": "pip",
"build_tool": "setuptools",
"framework": "FastMCP",
"api_type": "MCP",
"database": "BigQuery"
},
"score": 100,
"tier": "Trophy"
}
What it scans:
| File | Detects |
|---|---|
pyproject.toml |
Python + build system + frameworks (FastAPI, Django, Flask, FastMCP) + databases |
package.json |
JavaScript/TypeScript + frameworks (React, Vue, Next.js, Express) |
Cargo.toml |
Rust + cargo + frameworks (Axum, Actix) |
go.mod |
Go + go modules + frameworks (Gin, Echo) |
requirements.txt |
Python (fallback) |
Gemfile |
Ruby |
composer.json |
PHP |
Priority rule: pyproject.toml / Cargo.toml / go.mod take priority over package.json. Only sets values that are actually detected — no hardcoded defaults.
All 12 Tools
Create & Detect
| Tool | What it does |
|---|---|
faf_init |
Create a starter .faf file with project name, goal, and language |
faf_auto |
Auto-detect stack from manifest files and generate/update .faf |
faf_discover |
Find .faf files in the project tree |
Validate & Score
| Tool | What it does |
|---|---|
faf_validate |
Full validation — score, tier, errors, warnings |
faf_score |
Quick score check (0-100%) with tier name |
Read & Transform
| Tool | What it does |
|---|---|
faf_read |
Parse a .faf file into structured data |
faf_stringify |
Convert parsed FAF data back to clean YAML |
faf_context |
Get Gemini-optimized context (project + stack + score) |
Export & Interop
| Tool | What it does |
|---|---|
faf_gemini |
Export GEMINI.md with YAML frontmatter for Gemini CLI |
faf_agents |
Export AGENTS.md for OpenAI Codex, Cursor, and other AI tools |
Reference
| Tool | What it does |
|---|---|
faf_about |
FAF format info — IANA registration, version, ecosystem |
faf_model |
Get a 100% Trophy-scored example .faf for any of 15 project types |
Score and Tier System
Your .faf file is scored on completeness — how many slots are filled with real values.
| Score | Tier | Meaning |
|---|---|---|
| 100% | 🏆 Trophy | Perfect — AI has full autonomy |
| 99% | 🥇 Gold | Exceptional |
| 95% | 🥈 Silver | Top tier |
| 85% | 🥉 Bronze | Production ready — AI can work confidently |
| 70% | 🟢 Green | Solid foundation |
| 55% | 🟡 Yellow | Needs improvement |
| <55% | 🔴 Red | Major gaps — AI will guess |
| 0% | ⚪ White | Empty |
Aim for Bronze (85%+). That's where AI stops guessing and starts knowing.
Using with Gemini CLI
> Create a .faf file for my Python FastAPI project
> Auto-detect my project and fill in the stack
> Score my .faf and show what's missing
> Export GEMINI.md for this project
> Show me a 100% example for an MCP server
> What is FAF and how does it work?
> Read my project.faf and summarize the stack
> Validate my .faf and fix the warnings
Architecture
gemini-faf-mcp v2.1.0
├── server.py → FastMCP MCP server (12 tools)
├── main.py → Cloud Run REST API (GET/POST/PUT)
├── models.py → 15 project type examples
└── src/gemini_faf_mcp/ → Python SDK (FAFClient, parser)
The MCP server delegates to faf-python-sdk for parsing, validation, and discovery. Stack detection in faf_auto is Python-native — no external CLI dependencies.
Testing
pip install -e ".[dev]"
python -m pytest tests/ -v
183 tests passing across 9 WJTTC tiers (126 MCP server + 57 Cloud Function). Championship-grade test coverage — WJTTC certified.
FAF Ecosystem
One format, every AI platform.
| Package | Platform | Registry |
|---|---|---|
| claude-faf-mcp | Anthropic | npm + MCP #2759 |
| gemini-faf-mcp | PyPI | |
| grok-faf-mcp | xAI | npm |
| rust-faf-mcp | Rust | crates.io |
| faf-cli | Universal | npm |
Python SDK
Use FAF directly in Python without MCP:
from gemini_faf_mcp import FAFClient, parse_faf, validate_faf, find_faf_file
# Parse and validate locally
data = parse_faf("project.faf")
result = validate_faf(data)
print(f"Score: {result['score']}%, Tier: {result['tier']}")
# Find .faf files automatically
faf_path = find_faf_file(".")
# Or use the Cloud Run endpoint
client = FAFClient()
dna = client.get_project_dna()
Cloud Run REST API
Live endpoint for badges, multi-agent context brokering, and voice-to-FAF mutations.
https://faf-source-of-truth-631316210911.us-east1.run.app
Supports agent-optimized responses (Gemini, Claude, Grok, Jules, Codex/Copilot/Cursor) via X-FAF-Agent header. Voice mutations via Gemini Live through PUT endpoint. Auto-deploys via Cloud Build on push to main.
Links
License
MIT
Built by @wolfe_jam | wolfejam.dev
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。