rust-faf-mcp RMCP
rust-faf-mcp
Hör auf, jeder KI-Sitzung dein Projekt neu zu erklären. Eine
.faf-Datei erfasst deine Projekt-DNA. Jede KI liest sie einmal und weiß, was du baust.
Rust-nativer MCP (Model Context Protocol) Server für FAF — strukturierter KI-Projektkontext in YAML (application/vnd.faf+yaml). Einzelne Binärdatei, stdio-Transport, 4,3 MB gestrippt. Basiert auf rmcp und faf-rust-sdk.
Schnellstart
cargo install rust-faf-mcpDann weise einen beliebigen MCP-Client darauf hin:
# Claude Code
claude mcp add faf rust-faf-mcp// WARP / Cursor / Zed / Claude Desktop — any stdio MCP client
{
"mcpServers": {
"faf": {
"command": "rust-faf-mcp"
}
}
}Keine Flags, keine Konfigurationsdateien, kein Netzwerk-Listener. Reines stdio JSON-RPC.
Oder via Homebrew (macOS, vorkompiliert):
brew install Wolfe-Jam/faf/rust-faf-mcpRelated MCP server: gemini-faf-mcp
Ein Befehl, für immer erledigt
faf_auto erkennt dein Projekt, erstellt eine .faf, verbessert sie auf den Maximalwert und synchronisiert CLAUDE.md — in einem Durchgang:
faf_auto complete
━━━━━━━━━━━━━━━━━
Score: 0% → 85% (+85) 🥈 Silver
Steps:
1. Created project.faf
2. Second enhancement pass
3. Created CLAUDE.md
Path: /home/user/my-projectWas es erzeugt:
# 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 2021
key_files:
- Cargo.toml
- src/main.rs
- README.md
commands:
build: cargo build
test: cargo test
stack:
backend: Rust
build_tool: cargoJeder KI-Agent liest dies einmal und weiß genau, was du baust. Kein 20-minütiges Onboarding. Keine falschen Annahmen.
Tools
Erstellen & Erkennen
Tool | Was es tut |
| Von Null zum KI-Kontext mit einem Befehl — init, enhance, sync, score, fertig |
| Erstellt oder verbessert |
| Generiert |
| Durchsucht den Verzeichnisbaum nach der nächsten |
Bewerten & Validieren
Tool | Was es tut |
| Bewertet die KI-Bereitschaft 0-100% mit Aufschlüsselung auf Feldebene |
| Synchronisiert |
Optimieren
Tool | Was es tut |
| Parsen und Anzeigen der |
| Komprimiert |
| Schätzt die Token-Anzahl auf jeder Komprimierungsstufe |
faf_init ist iterativ — führe es erneut aus und es füllt aus, was fehlt. Die Punktzahl steigt jedes Mal.
Architektur
src/
├── main.rs # ~20 lines — tokio entry, rmcp stdio transport
├── server.rs # FafServer: #[tool_router], ServerHandler, resources
└── tools.rs # Business logic — all 9 tools, pure functions returning ValueRuntime:
tokioSingle-Threaded (current_thread)HTTP:
reqwestasync (wird nur vonfaf_gitfür die GitHub API verwendet)SDK:
faf-rust-sdk1.3 für Parsen, Validierung, Komprimierung, ErkennungServer:
rmcp1.1 mit#[tool_router]Makro — verarbeitet JSON-RPC, Schema-Generierung, Transport
Tools geben serde_json::Value zurück. Der Server adaptiert sie zu Result<String, String> für rmcp's IntoCallToolResult.
Testen
112 Tests in 6 Dateien:
cargo test # runs all 112Datei | Tests | Abdeckung |
| 9 | Init-Handshake, tools/list, Ressourcen, Schema-Validierung, ID-Erhaltung |
| 25 | Alle 9 Tools — Happy Path, Fehlerpfade, Spracherkennung |
| 12 | Pfad-Traversal, Null-Bytes, Shell-Injection, übergroße Eingaben, fehlerhaftes JSON |
| 35 | Korruptes YAML, Sync-Ersetzung, Pipelines, Dual-Manifeste, Legacy-Dateinamen, direkte Pfade |
| 10 | Unicode, CJK, Score-Grenzen, unbekannte Felder, GitHub-URL-Parsing |
| 21 | Manifest-Struktur, Versions-Sync, server.json, Manifest-Server-Kreuzvalidierung |
Tests starten die kompilierte Binärdatei als Subprozess und kommunizieren via stdin/stdout JSON-RPC — echte Integrationstests gegen den echten Server.
FAF-Ökosystem
Ein Format, jede KI-Plattform.
Paket | Plattform | Registry |
rust-faf-mcp | Rust | crates.io |
Anthropic | npm + MCP #2759 | |
PyPI | ||
xAI | npm | |
Universal | npm |
Aus Quellcode bauen
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: 2021 | LTO: aktiviert | Strip: Symbole
Wenn rust-faf-mcp nützlich war, erwäge das Repo mit einem Stern zu markieren — es hilft anderen, es zu finden.
Links
faf-rust-sdk — der Parser, von dem dies abhängt
faf.one — FAF-Startseite
IANA-Registrierung —
application/vnd.faf+yaml
Lizenz
MIT
Erstellt von @wolfe_jam | wolfejam.dev
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
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.1249122MIT
- 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.122MIT
- 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.152386MIT
- AlicenseAqualityCmaintenanceDeterministic dependency + CVE context for AI coding tools, over the Model Context Protocol. A ~0.85 MB pure-Rust MCP server.21MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Wolfe-Jam/rust-faf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server