
Fable
io.github.codeChap由 GitHub 账号 codeChap 发布v0.1.0更新于 Oct 24, 2026
Anthropic Claude Fable 5 MCP server — top-tier planning and code critique for handoff
概览
本地 stdio MCP 服务器,把 Anthropic 的 Claude Fable 模型封装为 plan、critique 和 ask 工具,用于规划与代码评审交接。
- 可以做什么
- 根据目标与上下文生成可直接交给执行模型的分步实施计划,含路径、边界情况与验收标准
- 对代码、diff 或设计做覆盖优先的评审,逐条给出严重程度与置信度,可指定关注领域
- 向 Fable 发送一次性原始提问,可附带系统提示、多轮历史、effort 等级与推理摘要
- 每次响应附带 token 用量与估算的美元成本
- 适用场景
- 适合把昂贵的高能力模型专门用于架构、规划和评审,再把结果交给更便宜的模型执行。也适合多智能体或跨客户端场景,由你自己决定何时升级调用,而不是依赖模型自行升级。
- 运行要求
- 需从源码用 Rust(edition 2024)构建并在本地运行,未发布任何软件包。需要在 ~/.config/mcp-server-fable/config.toml 配置文件中提供 Anthropic API 密钥,且所属组织须支持至少 30 天数据保留。可通过 base_url 指向兼容 Anthropic 的网关。Claude Pro/Max 订阅不可用。
安装
在 SourceWeft 中
- 打开 控制台中的 Fable,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-server-fable
[License: MIT] [Rust edition 2024] [MCP] [Model: Claude Fable 5.1]
An MCP (Model Context Protocol) server for Anthropic Claude Fable 5.1 — Anthropic's most capable, most expensive model ($10 / $50 per 1M input / output tokens, ~2× Opus). Built in Rust, it exposes Fable as specialized MCP tools (plan, critique, ask) so any MCP client can use them.
Fable is not a day-to-day chat model here. This server is built for the one thing that justifies the price: using Fable to plan and critique, then handing the result to a cheaper model (Sonnet / Haiku / Opus) to execute. It works in Claude Code, Claude Desktop, Cursor, custom agents, and any other environment that supports MCP servers over stdio.
Communicates via stdio using JSON-RPC 2.0. Structurally it mirrors mcp-server-claude-chat, but is deliberately adapted to Fable's API surface and purpose-built for the plan-then-execute pattern.
Why mcp-server-fable (vs. Claude Code's built-in advisor)?
Claude Code has a powerful native advisor feature (/advisor fable or the advisor tool). It lets a fast executor model (typically Sonnet or Haiku) dynamically ask Fable for guidance on hard decisions inside a single session.
This MCP server takes a complementary approach that is useful in more situations:
- Explicit tools with handoff-optimized prompts —
planandcritiqueuse fixed, carefully written system prompts designed so the output can be passed verbatim to a cheaper model. Plans are numbered, unambiguous, include exact paths/signatures, edge cases, acceptance criteria, and out-of-scope notes. Critiques are deliberately coverage-first (report everything; filter downstream). - Works everywhere MCP works — Not limited to Claude Code. Use it in Claude Desktop, Cursor, Windsurf, custom agent frameworks, VS Code MCP extensions, scripts, or any future tool that supports the Model Context Protocol.
- You control the orchestration — Call Fable for planning or review exactly when you (or your multi-agent system) decide, instead of relying on the model to escalate.
- Clean composability — Treat Fable as a reusable specialist service alongside your other MCP servers. Perfect for modern "expensive model for judgment, cheap model for execution" workflows.
- Correct Fable-specific behavior — Proper
effortlevels, refusal handling (no silent fallback), long timeouts, and accurate per-call cost reporting at Fable rates.
Many teams are converging on the same pattern the community discovered: use Fable narrowly for architecture, planning, and review, then execute with cheaper models. This server gives you first-class, portable tools for the "Fable parts" of that pattern.
See the "Technical details" section below for the specific Fable API differences that also required a dedicated implementation.
Subscription vs. API credits
This server uses the Anthropic API with an API key (API credits) — the only supported, terms-compliant way to drive Claude from a third-party tool. A Claude Pro/Max subscription is not usable here. Point base_url at an Anthropic-compatible gateway if you run one.
Technical details: Fable API differences
Fable's Messages API differs from the Opus-era shape (this is why a dedicated server was needed rather than reusing a general Claude chat wrapper):
- No sampling parameters —
temperature/top_p/top_kare rejected with a 400. There is notemperaturetool argument. - Adaptive thinking only — reasoning is always on; depth is controlled by
effort(low/medium/high/xhigh/max), not a token budget. The raw chain of thought is never returned;askcan request a readable summary viashow_reasoning. - Refusals stop, cleanly — this is a dedicated Fable server. Fable's safety classifiers (cyber / bio / model-distillation) can decline a request; that comes back as a successful response with
stop_reason: "refusal", surfaced with its category and explanation rather than as an answer. It is never silently retried on a different model. - 30-day data retention required — Fable is not available to zero-data-retention orgs; such orgs get a 400 on every request.
Every response also prints an estimated USD cost (at Fable's sticker rates), since cost-consciousness is the whole point.
Tools
plan
critique
ask
Prerequisites
- Rust (edition 2024)
- An Anthropic API key from console.anthropic.com, on an org with ≥30-day data retention
The server expects a config file at ~/.config/mcp-server-fable/config.toml containing at minimum your api_key. See config.toml.example.
The server fails fast at startup if the config is missing, api_key is empty, or default_effort (if set) is invalid.
Build
Installation & MCP Configuration
1. Build the server
Use the full absolute path to target/release/fable in all configuration below.
2. AI-assisted installation (recommended modern method)
Copy the block below and paste it directly to your AI coding assistant (Claude Code, Cursor, Grok, etc.). The AI will handle cloning (if needed), building, path resolution, and registration for you.
3. Manual configuration
Claude Desktop or any MCP client (~/.config/Claude/claude_desktop_config.json or equivalent):
Claude Code (one-liner):
Replace the path with your actual absolute path to the release binary.
Usage
Once it's registered, an MCP client calls the tools by name — the flagship is plan.
From an MCP client (e.g. Claude Code)
Ask the model to use it, handing over the goal plus whatever context the executor will need:
Use the fable plan tool. goal: "Add a
--jsonflag to the CLI that prints results as JSON". context: "Rustclapapp; output currently goes throughprintln!insrc/main.rs". effort: high
Claude Code issues a tools/call for plan; Fable returns a numbered, executor-ready plan — exact paths, signatures, edge cases, acceptance criteria — which you then hand to a cheaper model (Sonnet / Haiku) to implement verbatim.
Raw JSON-RPC over stdio
The same call without a client — a tools/call request the server reads on stdin:
plan and critique return their content followed by a token + estimated-cost footer. Here is an actual response (from a tiny ask probe) showing that footer:
Because the server only ever calls Fable, that cost line is always at Fable's $10 / $50 per-1M rates — accurate by construction, not by convention.
Project Structure
License
MIT
来源:README.md,提交 509909e
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。