rust-faf-mcp RMCP
rust-faf-mcp
AIセッションのたびにプロジェクトを説明するのはやめましょう。 1つの
.fafファイルがあなたのプロジェクトのDNAを記録します。AIはそれを一度読み込むだけで、あなたが何を構築しているのかを理解します。
FAF 用のRust製 MCP (Model Context Protocol) サーバー — YAML形式 (application/vnd.faf+yaml) で構造化されたAIプロジェクトコンテキストを提供します。シングルバイナリ、stdioトランスポート、ストリップ済みで4.3 MB。rmcp および faf-rust-sdk を基盤として構築されています。
クイックスタート
cargo install rust-faf-mcp次に、任意のMCPクライアントで指定します:
# Claude Code
claude mcp add faf rust-faf-mcp// WARP / Cursor / Zed / Claude Desktop — any stdio MCP client
{
"mcpServers": {
"faf": {
"command": "rust-faf-mcp"
}
}
}フラグや設定ファイル、ネットワークリスナーは不要です。純粋なstdio JSON-RPCです。
またはHomebrew (macOS, ビルド済み) を使用する場合:
brew install Wolfe-Jam/faf/rust-faf-mcpRelated MCP server: gemini-faf-mcp
1つのコマンドで、永遠に完了
faf_auto はプロジェクトを検出し、.faf を作成し、スコアを最大化し、CLAUDE.md を同期します — これらすべてを一度に行います:
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-project生成されるもの:
# 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: cargoすべてのAIエージェントがこれを一度読み込むだけで、あなたが何を構築しているのかを正確に把握します。20分間のオンボーディングも、誤った前提も不要です。
ツール
作成と検出
ツール | 機能 |
| 1つのコマンドでAIコンテキストを構築 — 初期化、強化、同期、スコアリング、完了 |
|
|
| GitHubリポジトリURLから |
| ディレクトリツリーを遡り、最も近い |
スコアリングと検証
ツール | 機能 |
| フィールドレベルの内訳とともにAI対応度を0-100%でスコアリング |
|
|
最適化
ツール | 機能 |
|
|
| トークン制限のあるコンテキスト用に |
| 各圧縮レベルでのトークン数を推定 |
faf_init は反復可能です — 再実行することで不足している情報が埋められ、スコアが毎回向上します。
アーキテクチャ
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 Valueランタイム:
tokioシングルスレッド (current_thread)HTTP:
reqwest非同期 (faf_gitがGitHub API用に使用)SDK: 解析、検証、圧縮、検出用の
faf-rust-sdk1.3サーバー:
#[tool_router]マクロを使用したrmcp1.1 — JSON-RPC、スキーマ生成、トランスポートを処理
ツールは serde_json::Value を返します。サーバーはそれらをrmcpの IntoCallToolResult 用に Result<String, String> へ適応させます。
テスト
6ファイルにわたる112のテスト:
cargo test # runs all 112ファイル | テスト数 | カバレッジ |
| 9 | 初期ハンドシェイク、ツール一覧、リソース、スキーマ検証、ID保持 |
| 25 | 全9ツール — 正常系、異常系、言語検出 |
| 12 | パストラバーサル、nullバイト、シェルインジェクション、過大入力、不正なJSON |
| 35 | YAML破損、同期置換、パイプライン、デュアルマニフェスト、レガシーファイル名、直接パス |
| 10 | Unicode、CJK、スコア境界、未知のフィールド、GitHub URL解析 |
| 21 | マニフェスト構造、バージョン同期、server.json、マニフェスト・サーバー間の相互検証 |
テストはコンパイルされたバイナリをサブプロセスとして起動し、stdin/stdout JSON-RPCを介して通信します — 実際のサーバーに対する真の統合テストです。
FAFエコシステム
1つのフォーマットで、あらゆるAIプラットフォームに対応。
パッケージ | プラットフォーム | レジストリ |
rust-faf-mcp | Rust | crates.io |
Anthropic | npm + MCP #2759 | |
PyPI | ||
xAI | npm | |
Universal | npm |
ソースからのビルド
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)エディション: 2021 | LTO: 有効 | ストリップ: シンボル
rust-faf-mcp が役に立った場合は、リポジトリにスターを付けることを検討してください — 他の人が見つける助けになります。
リンク
faf-rust-sdk — 依存しているパーサー
faf.one — FAFホーム
IANA登録 —
application/vnd.faf+yaml
ライセンス
MIT
Built by @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