rust-faf-mcp RMCP
Enables the generation of project context files directly from GitHub repository URLs through the GitHub API, allowing AI agents to understand repository DNA and project goals without requiring a local clone.
rust-faf-mcp
Persistent Project Context for Rust MCP clients. Native. Fast. cargo install
The Lineage Edition (v0.8.0) — one.faf/rust-faf-mcp · rmcp 3.0.1 (MCP Tier 1 foundation) · faf-rust-sdk 3.1 (the same always-33 kernel faf-wasm-sdk uses) · solid cargo-native Rust MCP for Rust devs
v0.8.0 — .faf-dna lineage, the same file as faf-cli and fafb: faf_init births it, faf_auto grows it, faf_dna shows the journey. fafb scores all 33 slots for monorepos and teams. See CHANGELOG.
FAF defines. MD instructs. AI codes.
Stop re-explaining your project to every AI session. One
.faffile holds your persistent project context. Every AI reads it once and knows what you're building.
Rust-native MCP (Model Context Protocol) server for FAF — structured AI project context in YAML (application/vnd.faf+yaml). Single binary, stdio transport, 4.3 MB stripped. Built on rmcp and faf-rust-sdk.
Quickstart
# Rust toolchain (install):
cargo install rust-faf-mcp --version 0.8.0
# No Rust (try — downloads GH Release binary for darwin/linux):
npx --yes rust-faf-mcp@0.8.0Point an MCP client at the pin. A bare rust-faf-mcp on PATH may be an old Homebrew binary.
# Claude Code
claude mcp add faf -- npx --yes rust-faf-mcp@0.8.0// WARP / Cursor / Zed / Claude Desktop — any stdio MCP client
{
"mcpServers": {
"faf": {
"command": "npx",
"args": ["--yes", "rust-faf-mcp@0.8.0"]
}
}
}After cargo install rust-faf-mcp --version 0.8.0, "command": "rust-faf-mcp" is the install. Until you have proven that binary, use the npx pin.
No flags, no config files, no network listener. Pure stdio JSON-RPC.
Or via Homebrew (macOS, pre-built). If you already have it, upgrade — an old keg can sit on PATH as rust-faf-mcp:
brew update
brew install Wolfe-Jam/faf/rust-faf-mcp
# already installed:
brew upgrade Wolfe-Jam/faf/rust-faf-mcpRelated MCP server: gemini-faf-mcp
One command, done forever
faf_auto runs setup if project.faf is missing (tree detection writes mechanical facts), then syncs CLAUDE.md. It does not rewrite an existing file. Confirm setup (sweeps) lists what setup occupied — walk it; not a second write-gate. Empty human slots stay empty until you state them.
faf_auto complete
━━━━━━━━━━━━━━━━━
Score: 0% → 42% (+42) ● GREEN
Steps:
1. Setup — created project.faf
2. Created CLAUDE.md
Path: /home/user/my-project
Confirm setup (sweeps)
Walk these. Detection is already a fact. Not a second write-gate.
project.name my-api
project.main_language Rust
stack.backend RustWhat it produces:
# project.faf — your project, machine-readable
faf_version: "3.3"
project:
name: my-api
goal: REST API for user management
main_language: Rust
version: "0.1.0"
license: MIT
instant_context:
what_building: REST API for user management
tech_stack: Rust 2024
key_files:
- Cargo.toml
- src/main.rs
- README.md
commands:
build: cargo build
test: cargo test
stack:
backend: Rust
build: cargoEvery AI agent reads this once and knows exactly what you're building. No 20-minute onboarding. No wrong assumptions.
Tools
Create & Detect
Tool | What it does |
| Setup if missing, sync |
| Setup: first write from the tree. Refuses if the file exists. Confirm setup (sweeps). 6Ws stay empty |
| Table-of-8 + Confirm setup (sweeps). 6Ws score after ☑. Below 100: add Human Context. After 100: courtesy check every 30 days (90 max) |
| Author |
| Walk up the directory tree to find the nearest |
Score & Validate
Tool | What it does |
| Score AI-readiness 0-100% with field-level breakdown |
| Sync |
| Author |
Optimize
Tool | What it does |
| Parse and display |
| Compress |
| Estimate token count at each compression level |
Lineage
Tool | What it does |
| Your FAF DNA journey from |
faf_init will not overwrite an existing file. Setup occupies mechanical facts; Confirm setup (sweeps) is the walk. Empty human slots stay empty until faf_go.
Architecture
src/
├── main.rs # ~20 lines — tokio entry, rmcp stdio transport
├── server.rs # FafServer: #[tool_router], ServerHandler, resources
└── tools.rs # Business logic — tools as pure functions returning ValueRuntime:
tokiosingle-threaded (current_thread)HTTP:
reqwestasync (only used byfaf_gitfor GitHub API)SDK:
faf-rust-sdk3.1 (Cargo pin — the facade overfaf-kernel/faf-fafbin faf-rust;score()for the real Mk4 number,validate()for structural checks only)Server:
rmcp3.0.1 with#[tool_router]/#[tool_handler]— JSON-RPC, JSON Schema from the param types, stdio transport (Tier-1 assessed SDK cut)
Tools return serde_json::Value. The server adapts them to Result<String, String> for rmcp's IntoCallToolResult.
Testing
190 tests (143 integration + 47 unit):
cargo test # runs all 190
# Full ship bar (same gates as GitHub CI — run before push)
bash scripts/ci.sh
# Optional: block push on red CI twin
bash scripts/install-hooks.shFile | Tests | Coverage |
| 9 | Init handshake, tools/list, resources, schema validation, ID preservation |
| 31 | Tools — happy path, error paths, language detection, faf_go |
| 12 | Path traversal, null bytes, shell injection, oversized input, malformed JSON |
| 36 | Corrupt YAML, sync replacement, pipelines, dual manifests, legacy filenames, direct paths |
| 10 | Unicode, CJK, score boundaries, unknown fields, GitHub URL parsing |
| 22 | Manifest structure, version sync, server.json, context block, manifest-server cross-validation |
| 16 | Setup / Confirm setup (sweeps) — BRAKE · ENGINE · AERO · TYRE · PIT |
| 7 |
|
| 47 | setup sweep, skills digest, |
Tests spawn the compiled binary as a subprocess and communicate via stdin/stdout JSON-RPC — true integration tests against the real server.
FAF Ecosystem
One format, every AI platform.
Package | Platform | Registry |
rust-faf-mcp | Rust | crates.io |
Anthropic | npm + MCP #2759 | |
PyPI | ||
xAI | npm | |
Universal | npm |
Build from source
git clone https://github.com/Wolfe-Jam/rust-faf-mcp
cd rust-faf-mcp
cargo build --release
# Binary at target/release/rust-faf-mcp (4.3 MB)Edition: 2024 | LTO: enabled | Strip: symbols
If rust-faf-mcp has been useful, consider starring the repo — it helps others find it.
Links
npmjs.com/package/rust-faf-mcp —
npx --yes rust-faf-mcp@0.8.0(no Rust toolchain; downloads GH Release binary)Dual-package publish guide — cargo + npm (this server is the product example)
docs/DUAL-PACKAGE.md — pointer + OIDC docs for this repo
docs/SKILLS-OVER-MCP.md — J1 Agent Skill
faf-context(skills/list · digests)faf-rust-sdk — the parser this depends on
faf.one — FAF home
IANA registration —
application/vnd.faf+yamlMCP Registry name:
mcp-name: one.faf/rust-faf-mcp
Citation
If you use rust-faf-mcp or the .faf / .fafa formats in research or production, please cite the format papers:
Wolfe, J. (2025). Format-Driven AI Context Architecture: The .faf Standard for Persistent Project Understanding. Zenodo. https://doi.org/10.5281/zenodo.18251362
Wolfe, J. (2026). Why Agents Need a Passport: .fafa — Portable Identity for the Agentic Era. Zenodo. https://doi.org/10.5281/zenodo.21951641
License
MIT
Built by @wolfe_jam | wolfejam.dev
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent project context for xAI Grok. IANA-registered .faf format.
Persistent project context for Claude. IANA-registered .faf format.
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
- mcpOAuthio.artifacta
Artifact store for AI agents. Hosted OAuth at mcp.artifacta.io/mcp; local stdio via npm/PyPI.
Related MCP Servers
- AlicenseAqualityAmaintenance.FAF (Foundational AI-context Format) with 50+ tools - Only Persistent project context that integrates seamlessly with Claude Desktop workflows. Officially merged (#2759) Anthropic MCP server.14313 npm23MIT
- AlicenseAqualityAmaintenancePersistent 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.13171 PyPI2MIT
- AlicenseAqualityAmaintenancePersistent project context MCP server that syncs a single .faf file to all AI tool formats (Cursor, Windsurf, Cline, etc.), enabling eternal bi-sync and optimized context for AI assistants.15905 npm7MIT
- AlicenseAqualityCmaintenanceDeterministic dependency + CVE context for AI coding tools, over the Model Context Protocol. A ~0.85 MB pure-Rust MCP server.21MIT