# Rust FAF [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Wolfe-Jam/rust-faf-mcp  
**GitHub Stars:** 5  
**npm Downloads (last month):** 961  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rust-faf

## Description
Persistent project context — Rust-native MCP server. IANA-registered .faf format.

## Tools
Capabilities this server exposes over MCP:

- **faf_agents** — Author AGENTS.md from project.faf. Non-destructive: preserves any hand-written content outside the faf-managed block.
- **faf_auto** — Setup if missing, sync CLAUDE.md, score. Existing project.faf unchanged. Returns Confirm setup (sweeps). Does not invent 6Ws. Use faf_go for the human card.
- **faf_compress** — Compress project.faf for token-limited contexts. Levels: minimal (names only), standard (names + goals), full (everything minus extras).
- **faf_discover** — Find the nearest project.faf by walking up the directory tree from the given path.
- **faf_dna** — Show your FAF DNA journey from .faf-dna: Birth DNA to now (e.g. 22% → 85% → 99%), with history. Reads only; faf_init births the lineage, faf_auto records growth.
- **faf_git** — Author a project.faf from a GitHub repository URL. Fetches repo metadata and creates AI context instantly.
- **faf_go** — Table-of-8 plus Confirm setup (sweeps). 6Ws need ☑ to score. Suggestions from the goal (beats only) are not typed and not scored. Below 100 run this to add Human Context. After 100, courtesy: Time to check your Context.
- **faf_init** — Setup: first write of project.faf from the tree. Will not overwrite. Returns Confirm setup (sweeps). App-type assigns slotignored. Human 6Ws stay empty. Use faf_go to state them.
- **faf_read** — Read and display the project.faf file contents with parsed structure.
- **faf_score** — Score the AI-readiness of a project.faf file (0-100%). Shows breakdown and suggestions.
- **faf_sync** — Bi-directional sync between project.faf and CLAUDE.md. Keeps both files aligned.
- **faf_tokens** — Estimate token count for project.faf at each compression level. Shows minimal/standard/full token counts.

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

```json
"mcpServers": {
  "rust-faf": {
    "command": "npx",
    "args": ["--yes","rust-faf-mcp@0.8.3"]
  }
}
```

## Documentation

## What Rust FAF does

Rust FAF manages project context stored in a `project.faf` file, using the Foundational AI-context Format (FAF) in YAML. The file can hold project identity, goals, language, stack details, key files, commands, and other context that AI agents can read consistently across sessions.

The server provides MCP tools for creating context from a project tree, reading and scoring an existing file, finding the nearest file from a path, and maintaining generated instruction files. It can also compress FAF content for smaller context windows, estimate token counts, and display the project's FAF DNA history from `.faf-dna`.

## How it works

The executable communicates with MCP clients through stdin and stdout using JSON-RPC. It does not open an HTTP listener and does not require a configuration file or command-line flags for normal operation. The implementation uses the Rust `rmcp` SDK and `faf-rust-sdk`.

`faf_init` creates `project.faf` from detected project-tree facts and refuses to overwrite an existing file. `faf_auto` performs setup when the file is absent, synchronizes `CLAUDE.md`, and returns a score. Mechanical detection does not fill those human fields automatically.

Most operations are local and read-only or non-destructive. `faf_sync` keeps `project.faf` and `CLAUDE.md` aligned, while `faf_agents` generates or updates the FAF-managed portion of `AGENTS.md` without removing handwritten content outside that block. `faf_git` is the network-enabled exception: it uses the public GitHub API to create FAF text from a repository URL without cloning the repository.

## Setup and configuration

Install the binary from crates.io with:

```bash
cargo install rust-faf-mcp
```

A Homebrew package is also available for macOS:

```bash
brew install Wolfe-Jam/faf/rust-faf-mcp
```

Register the installed command with an MCP client that accepts stdio servers. For clients using an `mcpServers` configuration, the command can be represented as:

```json
{
  "mcpServers": {
    "faf": {
      "command": "rust-faf-mcp"
    }
  }
}
```

The server has no required environment variables. After registration, call `faf_auto` for setup or `faf_init` when an explicit first-write operation is preferred.

## Tools and capabilities

- `faf_auto`: Set up a missing file, synchronize `CLAUDE.md`, and score the result.
- `faf_init`: Create `project.faf` from detected tree information without overwriting.
- `faf_go`: Review the FAF table and add human context for the six scoring questions.
- `faf_git`: Build project context from a public GitHub repository URL.
- `faf_discover`: Locate the nearest `project.faf` by walking upward from a path.
- `faf_read`: Parse and display the FAF file.
- `faf_score`: Return an AI-readiness score with field-level detail and suggestions.
- `faf_sync` and `faf_agents`: Maintain `CLAUDE.md` and `AGENTS.md` from project context.
- `faf_compress` and `faf_tokens`: Produce reduced context levels and estimate their token counts.
- `faf_dna`: Show FAF lineage and recorded growth from `.faf-dna`.

Compression supports `minimal`, `standard`, and `full` levels. The tools expose MCP annotations identifying read-only operations and non-destructive writers.

## Limitations and notes

Setup detects mechanical facts but leaves human 6W fields empty until they are supplied through `faf_go`. Existing `project.faf` content is preserved by automatic setup. Only `faf_git` reaches the network; the remaining workflows operate on local project files. The server is designed for stdio transport rather than a network-accessible HTTP deployment.

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

