rust-faf-mcp RMCP
rust-faf-mcp
Deja de explicarle tu proyecto a cada sesión de IA. Un archivo
.fafcaptura el ADN de tu proyecto. Cada IA lo lee una vez y sabe qué estás construyendo.
Servidor MCP (Model Context Protocol) nativo en Rust para FAF — contexto de proyecto de IA estructurado en YAML (application/vnd.faf+yaml). Binario único, transporte stdio, 4.3 MB sin símbolos. Construido sobre rmcp y faf-rust-sdk.
Inicio rápido
cargo install rust-faf-mcpLuego, apunta cualquier cliente MCP hacia él:
# Claude Code
claude mcp add faf rust-faf-mcp// WARP / Cursor / Zed / Claude Desktop — any stdio MCP client
{
"mcpServers": {
"faf": {
"command": "rust-faf-mcp"
}
}
}Sin flags, sin archivos de configuración, sin listener de red. JSON-RPC puro vía stdio.
O mediante Homebrew (macOS, precompilado):
brew install Wolfe-Jam/faf/rust-faf-mcpRelated MCP server: gemini-faf-mcp
Un comando, listo para siempre
faf_auto detecta tu proyecto, crea un .faf, lo mejora hasta la puntuación máxima y sincroniza CLAUDE.md — todo de una vez:
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-projectLo que produce:
# 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: cargoCada agente de IA lee esto una vez y sabe exactamente qué estás construyendo. Sin 20 minutos de onboarding. Sin suposiciones erróneas.
Herramientas
Crear y detectar
Herramienta | Qué hace |
| De cero a contexto de IA en un comando — iniciar, mejorar, sincronizar, puntuar, listo |
| Crea o mejora |
| Genera |
| Recorre el árbol de directorios hacia arriba para encontrar el |
Puntuar y validar
Herramienta | Qué hace |
| Puntúa la preparación para IA de 0-100% con desglose a nivel de campo |
| Sincroniza |
Optimizar
Herramienta | Qué hace |
| Analiza y muestra el contenido de |
| Comprime |
| Estima el conteo de tokens en cada nivel de compresión |
faf_init es iterativo — ejecútalo de nuevo y rellenará lo que falte. La puntuación sube cada vez.
Arquitectura
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:
tokiomonohilo (current_thread)HTTP:
reqwestasíncrono (solo usado porfaf_gitpara la API de GitHub)SDK:
faf-rust-sdk1.3 para análisis, validación, compresión y descubrimientoServidor:
rmcp1.1 con macro#[tool_router]— maneja JSON-RPC, generación de esquemas y transporte
Las herramientas devuelven serde_json::Value. El servidor los adapta a Result<String, String> para IntoCallToolResult de rmcp.
Pruebas
112 pruebas en 6 archivos:
cargo test # runs all 112Archivo | Pruebas | Cobertura |
| 9 | Handshake inicial, lista de herramientas, recursos, validación de esquema, preservación de ID |
| 25 | Las 9 herramientas — camino feliz, caminos de error, detección de lenguaje |
| 12 | Path traversal, bytes nulos, inyección de shell, entrada sobredimensionada, JSON malformado |
| 35 | YAML corrupto, reemplazo de sincronización, pipelines, manifiestos duales, nombres de archivo heredados, rutas directas |
| 10 | Unicode, CJK, límites de puntuación, campos desconocidos, análisis de URL de GitHub |
| 21 | Estructura de manifiesto, sincronización de versión, server.json, validación cruzada manifiesto-servidor |
Las pruebas ejecutan el binario compilado como un subproceso y se comunican mediante JSON-RPC por stdin/stdout — pruebas de integración reales contra el servidor real.
Ecosistema FAF
Un formato, todas las plataformas de IA.
Paquete | Plataforma | Registro |
rust-faf-mcp | Rust | crates.io |
Anthropic | npm + MCP #2759 | |
PyPI | ||
xAI | npm | |
Universal | npm |
Construir desde el código fuente
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)Edición: 2021 | LTO: habilitado | Strip: símbolos
Si rust-faf-mcp te ha sido útil, considera marcar el repositorio con una estrella — ayuda a otros a encontrarlo.
Enlaces
faf-rust-sdk — el analizador del que depende esto
faf.one — hogar de FAF
Registro IANA —
application/vnd.faf+yaml
Licencia
MIT
Creado por @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