AIコーディングエージェントによる不適切なワークスペースへの書き込みを防ぐため、機械的な書き込みゲート、エビデンス要件、および敵対的なレッドチーミングを強制します。
別名 REX-codebase/fable-mode, fable-mode, fable-engine
- スター
- 26
- ツール
- —
- ダウンロード数(30日間)
- 1,182
- 最新バージョン
- 1.3.5
- 最終コミット
- 2026年9月18日
- ライセンス
- MIT
Fable Mode MCPとは
Fable ModeはMCPサーバーです。 AIコーディングエージェントによる不適切なワークスペースへの書き込みを防ぐため、機械的な書き込みゲート、エビデンス要件、および敵対的なレッドチーミングを強制します。.
プロジェクトのREADMEから生成された概要
Fable Mode MCP server について
Fable Modeは、AIコーディングエージェントがワークスペースに対して時期尚早な変更を加えるのを防ぐためのコントロールプレーンとして機能します。プロンプトによる指示に頼るのではなく、機械的なゲートを使用して、エージェントが書き込み権限を得る前に、熟考し、エビデンスを提供し、敵対的なテストを通過することを確実にします。このシステムは、Claude CodeやCursorなどのMCPクライアントを使用している開発者、またはJSONトランスポートを介してシェルサンドボックスで作業している開発者向けに設計されています。
ユーザーは、uvxまたはpipを使用してfable-engineパッケージをインストールし、サーバーをセットアップできます。アクティブになると、セッションはロックされた状態で開始され、エージェントはThink(思考)、Prove(証明)、Attack(攻撃)、Write(書き込み)という特定のワークフローに従う必要があります。エージェントは定義された時間予算を遵守し、証明要件を満たすためにツールのレシートや不変条件を提供しなければなりません。その後、5つのベクトルを持つレッドチームスウォームが、提案されたコードの脆弱性を突こうと試みます。サーバーはオプションとして、単一のHTTPSコールを通じて外部のレビュー用モデルを使用してエビデンスを監査することもできますが、主要な権限は引き続き機械的なゲートにあります。
できること
- 1ワークスペースへの時期尚早な書き込みを防止AIエージェントがファイルを変更する前に、時間制限付きの熟考期間を経るよう強制します。
- 2エビデンスによるエージェントの主張の検証エージェントの推論が正しいことを証明するために、ツールのレシートや不変条件の提示を要求します。
- 3AIによるエージェントのエビデンス監査セッション中にエージェントが提供したエビデンスを、外部モデルを使用してレビューします。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Fable Mode MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにFable Mode MCPをインストール
$ claude mcp add fable-mode -- uvx fable-engineCursorにFable Mode MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}VS CodeにFable Mode MCPをインストール
.vscode/mcp.json
{
"servers": {
"fable-mode": {
"type": "stdio",
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}VS Code CLIにFable Mode MCPをインストール
$ code --add-mcp '{"name":"fable-mode","type":"stdio","command":"uvx","args":["fable-engine"]}'Claude DesktopにFable Mode MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}CodexにFable Mode MCPをインストール
$ codex mcp add fable-mode -- uvx fable-engineCodex config.tomlにFable Mode MCPをインストール
~/.codex/config.toml
[mcp_servers.fable-mode] command = "uvx" args = ["fable-engine"]
Gemini CLIにFable Mode MCPをインストール
$ gemini mcp add -s user fable-mode uvx -- fable-engineGemini settings.jsonにFable Mode MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能rex-codebase/fable-mode is public and reachablegithub.com/rex-codebase/fable-mode ↗合格
- パッケージがこのリポジトリをソースとして指定fable-engine names rex-codebase/fable-mode as sourcepypi.org/project/fable-engine/ ↗合格
- ビルドの来歴 (Sigstore 証明)Sigstore attestation for fable-enginepypi.org/project/fable-engine/ ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-09-18github.com/rex-codebase/fable-mode ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from fable-engine合格
- パッケージおよびその依存関係に重大な勧告なし1 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るFable Mode
Agents that think before they write.
Fable Mode is an open-source control plane for AI coding agents.
It makes an agent deliberate, produce evidence, and survive adversarial review before it earns permission to write to your workspace. The gates are mechanical, not prompt advice: no timer, no proof, no write access.
Demo
KERR // ORRERY
One self-contained HTML file. Raw WebGL, zero libraries, zero external assets, and zero build step.
https://github.com/user-attachments/assets/8287bbfe-e3ee-4dcf-ba0f-f9ff22ae79bd
7 renders rejected before final · 2 bugs caught · 10/10 red-team probes passed
Fable Mode overview
https://github.com/user-attachments/assets/27f4f8a2-b1bb-4398-a08c-bc9fd93d69d7
Quick start
A session starts locked. Confidence does not unlock it.
- Install the MCP server using one of the options below.
- Add the optional Agent Skill if you want the full workflow.
- Ask your agent to use Fable Mode for a concrete coding task and choose a time budget.
A new session starts with execution locked:
{
"action": "create_session",
"session_name": "demo-refactor",
"objective": "Refactor the parser without changing public behavior",
"time_budget_minutes": 2
}
The agent then records evidence and an invariant. An early unlock_execution
request is rejected until the authority timer and proof prerequisites pass.
Use get_status at any point to see the active phase, remaining time, evidence
counts, and lock state.
The same gates guard every phase: evidence receipts for claims, a five-vector red-team swarm for code, and a sealed record of what was verified.
One package, two agent environments
Fable ships as one PyPI package. The same package contains the runtime, stdio MCP server, and complete Agent Skill. Setup is explicit so installing an MCP server never silently activates workspace instructions.
Run setup from the project the agent will work in:
uvx --from fable-engine==1.3.9 fable-mode setup --yes
This resolves the pinned package in an isolated uv environment and copies the
bundled skill to .agents/skills/fable-mode. Use --dry-run to preview or
--target <dir> for another skill directory. For a persistent install, use:
python -m pip install fable-engine
fable-mode setup --yes
Then choose only the invocation that matches the agent environment.
Native MCP client
Run fable-engine as the stdio server. For example:
// Claude Code: claude mcp add fable-engine -- uvx --from fable-engine==1.3.9 fable-engine
// Cursor or another JSON-configured client:
{
"mcpServers": {
"fable-engine": {
"command": "uvx",
"args": ["--from", "fable-engine==1.3.9", "fable-engine"]
}
}
}
Shell sandbox with internet, no MCP host
The same package exposes a direct JSON transport. Pipe one fable_session
argument object to fable-mode call:
printf '%s\n' '{"action":"create_session","session_name":"demo","objective":"Verify this change","time_budget_minutes":2}' \
| uvx --from fable-engine==1.3.9 fable-mode call
The command uses JSON Lines: one fable_session argument object per input line
and one JSON result per output line. Keep that process open for a full workflow so
the authority timer and session stay in the same trusted runtime. A one-line pipe
is useful for a single inspection call. Each uvx command can resolve an
isolated environment; pip install is better when the sandbox keeps a Python
environment between calls. Session data persists outside that environment in
Fable's data directory (FABLE_DATA_DIR can override it).
Python 3.10+, zero runtime dependencies. Published on PyPI as fable-engine.
Skill activation remains explicit
setup is the unified path. The older install-skill command remains as a
compatible alias for skill-only installation. Neither fable-engine nor
pip install fable-engine writes instructions into a workspace on its own.
How it works
- Think — Time-locked deliberation. The agent cannot write until the timer ends.
- Prove — Claims need real evidence (tool receipts, hashes, invariants).
- Attack — A red-team swarm tries to break the code.
- Write — Only then is the workspace unlocked.
Optional: AI evidence adjudicator
The evidence in a session is written by an AI agent, so Fable can optionally ask an external reviewer model to audit that evidence before the workspace unlocks. Stdlib-only, one bounded HTTPS call, no local model, no extra RAM to speak of. Off by default; fail-closed when enforcing. It raises the cost of fabricated proof - it cannot guarantee deception is impossible, and the mechanical gates stay the primary authority. Setup and honest limits: AI evidence adjudicator.
What it is not
- Not a claim of flawless code. It is a checkable workflow, not a guarantee.
- Not a bigger prompt. The locks are enforced by the engine, not by wording.
- Not a framework lock-in. It speaks MCP and runs beside your current agent.
Docs
- Start here: practical guide
- Agent Skill reference
- V1 → V2 migration
- V2 architecture
- System 3 (experimental)
- AI evidence adjudicator (optional)
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md.
MIT License · Built by REX
Fable Mode MCPのよくある質問
Fable Mode MCPをClaude Codeに追加するには
ターミナルでclaude mcp add fable-mode -- uvx fable-engineを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Fable Mode MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
Fable Modeはどのようにしてエージェントの早すぎる書き込みを防ぐのですか?
プロンプトによる指示ではなく、機械的なゲートを使用します。これには、ワークスペースのロックを解除する前に満たす必要がある、時間制限付きの熟考プロセスや証明の前提条件が含まれます。
エビデンスの監査のために、追加のRAMやローカルモデルが必要ですか?
いいえ、オプションのAIエビデンス判定器は、外部のレビュー用モデルへの単一の制限されたHTTPSコールを使用するため、追加のローカルRAMは必要ありません。
Fable Modeは完璧なコードを保証するものですか?
いいえ、エージェントがより慎重に行動するように設計された、検証可能なワークフローであり、完璧なコードの生成を保証するものではありません。
既存のエージェントでFable Modeを使用できますか?
はい、特定のフレームワークに依存するものではなく、Model Context Protocolを介して現在使用しているエージェントと併用可能です。