FAF MCP Server for Gemini — Read, validate, and score IANA-registered .faf project DNA
Project description
gemini-faf-mcp
Your project, understood by AI — in one file. 12 MCP tools for Gemini CLI.
MCP server for FAF — the IANA-registered format for AI project context (application/vnd.faf+yaml). One .faf file gives Gemini full project understanding: stack, goals, conventions, quality bar. No re-explaining. No context drift.
Built on FastMCP. Powered by faf-python-sdk.
Quick Start
Gemini CLI (recommended)
gemini extensions install https://github.com/Wolfe-Jam/gemini-faf-mcp
Then in any project directory:
> Auto-detect my project and create a .faf file
> What's the FAF score for this project?
> Export a GEMINI.md for this project
PyPI
pip install gemini-faf-mcp
MCP Config (manual)
{
"mcpServers": {
"faf": {
"command": "python3",
"args": ["-m", "server"]
}
}
}
What FAF Does
Every new session, AI starts from zero. It guesses your stack, misses conventions, asks the same questions. FAF fixes this.
A .faf file is structured YAML that captures your project DNA — language, framework, database, goals, quality standards, team context. Any AI reads it instantly instead of guessing.
# 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gemini_faf_mcp-2.1.1.tar.gz.
File metadata
- Download URL: gemini_faf_mcp-2.1.1.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3b0b9a0021eb092cf75b86c21a37dfbd75eefaf9a871160bff179a9668a5a1d
|
|
| MD5 |
ddcd514154e19418ceb7b8d97440248a
|
|
| BLAKE2b-256 |
a56b40ff823a32af6337c92a0bcf9bd37bbb1fdbca4910113f8b09b942cbbce3
|
Provenance
The following attestation bundles were made for gemini_faf_mcp-2.1.1.tar.gz:
Publisher:
pypi.yml on Wolfe-Jam/gemini-faf-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gemini_faf_mcp-2.1.1.tar.gz -
Subject digest:
e3b0b9a0021eb092cf75b86c21a37dfbd75eefaf9a871160bff179a9668a5a1d - Sigstore transparency entry: 1061794315
- Sigstore integration time:
-
Permalink:
Wolfe-Jam/gemini-faf-mcp@8465dab67a49f919e93f4ebc86a0b446e53198f7 -
Branch / Tag:
refs/tags/v2.1.1 - Owner: https://github.com/Wolfe-Jam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8465dab67a49f919e93f4ebc86a0b446e53198f7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file gemini_faf_mcp-2.1.1-py3-none-any.whl.
File metadata
- Download URL: gemini_faf_mcp-2.1.1-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a1059878b7d91e5c64f330a8daf35fbfabddc60156bd508ab2fdf7ffa69476f
|
|
| MD5 |
68ba678fd761538b4b505c98a3e82901
|
|
| BLAKE2b-256 |
f6d45b9802846ccdc9c9e3e54d9a5cb06a754f9c30bca27e46e6759afe4b82ac
|
Provenance
The following attestation bundles were made for gemini_faf_mcp-2.1.1-py3-none-any.whl:
Publisher:
pypi.yml on Wolfe-Jam/gemini-faf-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gemini_faf_mcp-2.1.1-py3-none-any.whl -
Subject digest:
0a1059878b7d91e5c64f330a8daf35fbfabddc60156bd508ab2fdf7ffa69476f - Sigstore transparency entry: 1061794379
- Sigstore integration time:
-
Permalink:
Wolfe-Jam/gemini-faf-mcp@8465dab67a49f919e93f4ebc86a0b446e53198f7 -
Branch / Tag:
refs/tags/v2.1.1 - Owner: https://github.com/Wolfe-Jam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8465dab67a49f919e93f4ebc86a0b446e53198f7 -
Trigger Event:
release
-
Statement type: