# Gemini FAF [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Wolfe-Jam/gemini-faf-mcp  
**GitHub Stars:** 2  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gemini-faf

## Description
Persistent project context for Google Gemini. Python/FastMCP. IANA-registered .faf format.

## Tools
Capabilities this server exposes over MCP:

- **faf_read** — Read project DNA from a .faf file. Returns the full parsed structure
including project info, stack, preferences, and scoring data.
Use this as the first step to understand any FAF-enabled project.
- **faf_validate** — Validate a .faf file and return score, tier, and issues.
Returns errors (must fix) and warnings (should fix) with specific messages.
Use after faf_init or when checking if a .faf file meets quality standards.
- **faf_score** — Quick Mk4 score check — returns score (0-100%), tier, and slot counts.
Uses the Mk4 always-33 scoring engine (faf-kernel parity) for universal parity.
Use this for status checks; use faf_validate when you need error details.
- **faf_discover** — Find .faf files in the project tree by walking up from start_dir.
Searches the current directory and parent directories for project.faf.
Use this before faf_read to locate the file automatically.
- **faf_init** — Create a starter .faf file with project name, goal, and language.
Writes a valid FAF YAML file with all required sections.
Will not overwrite an existing file — use faf_discover first to check.
The path is confined to the project root (cwd / FAF_ALLOWED_ROOTS).
- **faf_stringify** — Convert parsed FAF data back to YAML string.
Useful for displaying the raw .faf content or preparing it for editing.
Reads the file, parses it, then re-serializes to clean YAML.
- **faf_context** — Get Gemini-optimized context from a .faf file.
Returns the key sections an AI needs: project info, stack, instructions, and score.
Use this to quickly understand a project without reading the full .faf structure.
- **faf_gemini** — Export and write GEMINI.md from a .faf file (non-destructive).
Authors GEMINI.md in Gemini CLI's own convention (hierarchical,
@file-importable — setup · verify · key files · stack · confirm-first
actions) via faf-python-sdk's authoring tool, in parity with faf-cli's
`faf export --gemini`. Injects it as a faf-managed block, preserving any
hand content. Re-running updates the block in place.
- **faf_agents** — Export and write AGENTS.md from a .faf file (non-destructive).
Authors a BETTER-shaped AGENTS.md (setup · tests · layout · conventions ·
three-tier guardrails · definition of done · security · commit) via
faf-python-sdk's authoring tool — in parity with faf-cli's `faf export --agents`.
Injects it into AGENTS.md as a faf-managed block, preserving any hand
content. Re-running updates the block in place — it never overwrites your file.
- **faf_migrate** — Migrate a .faf file to the current format version (3.0).
Bumps `faf_version`, ensures the section roots exist (`project`, `stack`,
`human_context`, `monorepo`), and re-serializes. Legacy slot names
(`frontend`/`database`/…) still score via the registry's aliases — this
only touches the version and structure, never your values. The file is
re-serialized, so YAML comments and formatting are not kept. Parity with
faf-cli's `faf migrate`. Pass dry_run=true to preview.
- **faf_about** — FAF format info — IANA registration, version, ecosystem.
Returns metadata about the FAF format, server version, and available MCP bridges.
Use this when users ask what FAF is or how it connects to other AI platforms.
- **faf_model** — Get a 100% Trophy-scored example .faf file for a specific project type.
Returns a complete, realistic project.faf that fills all 33 scored slots (populated, or slotignored where a slot does not apply).
Use this as a reference when building or improving a .faf file — shows exactly what 100% looks like.
Call without arguments to list all 15 available project types.
- **faf_auto** — Auto-detect project stack and author/update a .faf file.
Scans package.json, pyproject.toml, Cargo.toml, go.mod, and other manifest
files for language, framework, database, API type, and build tools — then
grounds the result in the repo's own files: docker-compose service images
(Postgres, Redis, Elasticsearch...) map onto stack slots, and Makefile /
justfile targets map onto test / build / lint commands. Facts from files,
no hardcoded defaults. Creates a new .faf if none exists, or fills empty
slots in an existing one.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "gemini-faf": {
    "command": "uvx",
    "args": ["gemini-faf-mcp"]
  }
}
```

## Documentation

## What Gemini FAF MCP server does

Gemini FAF MCP server gives Google Gemini access to project context stored in a `project.faf` YAML file. The FAF format records project information, languages and frameworks, commands, human context, instructions, and other structured values used to describe a codebase. The server exposes this information through MCP rather than requiring the context to be re-entered in each conversation.

It also acts as a maintenance and export layer for FAF files. Gemini can create a starter file, inspect its quality score, identify validation problems, fill empty values from repository files, migrate older structure, and render agent-specific instruction files. Generated `GEMINI.md` and `AGENTS.md` content is inserted into managed blocks so existing hand-written content remains intact.

## How it works

The server operates on files within the project root or configured allowed roots. `faf_discover` searches from a starting directory and walks toward parent directories to find `project.faf`; `faf_read` then returns the parsed structure. For a smaller session-start payload, `faf_context` returns the project, stack, instructions, and score sections instead of the complete document.

Validation reports a score, tier, errors, and warnings. `faf_score` provides a faster status check using the always-33 scoring engine. `faf_auto` examines repository manifests and supporting files such as Docker Compose definitions, Makefiles, justfiles, and GitHub workflow configuration to infer stack and command information. It creates a file when none exists or fills empty slots in an existing one.

The local command uses stdio transport. The project also supports Streamable HTTP for hosted operation, including Cloud Run deployments. The tools are annotated according to their behavior: reads do not modify files, while write operations either create, fill, preserve existing text, or deliberately reserialize a file during migration.

## Setup and configuration

Install with either of these commands:

```bash
uvx gemini-faf-mcp
pip3 install gemini-faf-mcp
```

For Gemini CLI, install the extension from the repository:

```bash
gemini extensions install https://github.com/Wolfe-Jam/gemini-faf-mcp
```

After installation, run `/faf:setup` in Gemini CLI to create a starter `project.faf` and score it. You can then ask Gemini to populate the file from the repository, or invoke the auto-detection workflow directly. `/faf:score` reports remaining gaps.

The server accepts `--version` and `--help` options and exits after printing the requested information. File paths are confined to the project root or `FAF_ALLOWED_ROOTS`.

## Tools and capabilities

- `faf_read`, `faf_discover`, and `faf_context` locate and retrieve full or focused project context.
- `faf_validate` and `faf_score` inspect quality, tiers, slot counts, and scoring status.
- `faf_init` creates a valid starter FAF YAML file without overwriting an existing file.
- `faf_stringify` parses and reserializes FAF data as clean YAML.
- `faf_auto` detects repository technologies and commands, then creates or fills a FAF file.
- `faf_gemini` and `faf_agents` generate managed `GEMINI.md` and `AGENTS.md` sections.
- `faf_migrate` updates a file to format version 3.0 and can preview changes with `dry_run`.
- `faf_about` returns FAF format and ecosystem metadata; `faf_model` supplies complete reference files for 15 project types.

## Limitations and notes

Migration reserializes YAML, so comments and original formatting are not retained. `faf_init` will not replace an existing file, and `faf_auto` fills empty slots rather than replacing populated values. The server does not reach the network during tool operation. FAF is the source file; generated agent instructions are derived outputs that can retain separate hand-written content outside their managed blocks.

_Full upstream README: https://allmcps.com/mcp/gemini-faf/readme_

