Skip to main content

Universal AI Project DNA — FAF MCP Server for Gemini. Unifies CLAUDE.md, GEMINI.md, and AGENTS.md into one IANA-registered format.

Project description

gemini-faf-mcp 🧬

Unify your AI project context. One file to define them all. Bridges CLAUDE.md, GEMINI.md, AGENTS.md, and GROK.md into a single, IANA-registered source of truth.

PyPI Downloads Tests IANA

What's New in v2.2.0

Mk4 Championship Scoring Engine — all 12 tools now use the same scoring algorithm as the Rust compiler and TypeScript CLI. faf_score and faf_validate return slot-level detail (populated, active, total). Scores match across every FAF tool in every language. 221 tests, 41 new WJTTC championship tests. Dead code removed (sync_faf.py).

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 GROK.md project.faf
Format Markdown Markdown Markdown Markdown Structured YAML
Schema Custom Custom Custom Custom IANA Standard
Scoring No No No No Yes (0-100%)
Auto-Detect No No No No Yes (153+ files)
Vendor Neutral No 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 seconds (Zero install):

# Detects Python, JS/TS, Rust, Go, Ruby, and PHP manifests
bunx faf-cli 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": "\ud83c\udfc6"
}

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 Mk4 validation — score, tier, slot counts, errors, warnings
faf_score Quick Mk4 score — score, tier, populated/active/total slot counts

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.2.0
├── server.py              → FastMCP MCP server (12 tools, Mk4 scoring)
├── 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 Mk4 scoring. Stack detection in faf_auto is Python-native — no external CLI dependencies.


Testing

pip install -e ".[dev]"
python -m pytest tests/ -v

221 tests passing across 9 WJTTC tiers (125 MCP server + 55 Cloud Function + 41 Mk4 WJTTC championship). 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 Google 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.


If gemini-faf-mcp has been useful, consider starring the repo — it helps others find it.


Links

License

MIT


Built by @wolfe_jam | wolfejam.dev


Get the CLI

faf-cli — The original AI-Context CLI. A must-have for every builder.

npx faf-cli auto

Anthropic MCP #2759 · IANA Registered: application/vnd.faf+yaml · faf.one · npm

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

gemini_faf_mcp-2.2.0.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_faf_mcp-2.2.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file gemini_faf_mcp-2.2.0.tar.gz.

File metadata

  • Download URL: gemini_faf_mcp-2.2.0.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gemini_faf_mcp-2.2.0.tar.gz
Algorithm Hash digest
SHA256 f87de21ad9103cab6d99c8ccdffa04b357a46a2ff9a4dee7ccda165fac1d70ba
MD5 3bb52f81c3df180424926a8e4930cb73
BLAKE2b-256 829f138bcfa5cf551f3696a12e13ddfe068ca367c617ccbe42cbd0e9e03b6ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_faf_mcp-2.2.0.tar.gz:

Publisher: pypi.yml on Wolfe-Jam/gemini-faf-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gemini_faf_mcp-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: gemini_faf_mcp-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gemini_faf_mcp-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3355749c4fc393ea0a83a43a64aa6a578514e7224c6215002d494d50d8d4d232
MD5 d5bf4502861cd034eb40859c0971d132
BLAKE2b-256 a1985a3c32b34b35d814eaa80cd1685574670c49f778a981ffad5782f854ac10

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_faf_mcp-2.2.0-py3-none-any.whl:

Publisher: pypi.yml on Wolfe-Jam/gemini-faf-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page