
Motif
io.github.sleepycobalt由 GitHub 帳號 sleepycobalt 發布v0.5.0更新於 Oct 24, 2026
Research synthesis with receipts: cited, critic-checked insights from interview transcripts.
概覽
Motif 從訪談逐字稿合成附引用、經評審檢查的洞察,並提供回執以核對每條引用。
- 可以做什麼
- Motif 提供五個工具:motif_synthesize 將逐字稿目錄或檔案清單加問題轉為洞察 JSON、Markdown 報告、有爭議的洞察 id 與成本資料;motif_critique 依規則檢查洞察或散文文件並回傳判定;motif_receipts 回傳逐字輪次文字、講者以及講者是否為訪談者;motif_board 產生 FigJam 版面 JSON 與 use_figma 指令碼;motif_runs_get 取得執行中繼資料、備註與每輪判定。每個工具都是對共用合成引擎的輕量呼叫,因此結果與 CLI 及 FigJam 外掛一致。缺少判定、執行 id 不存在等失敗會回傳工具錯誤,而不是空成功。
- 適用情境
- 當設計師或研究人員在代理宿主中想把訪談逐字稿合成為附引用、經評審檢查的洞察,並核對引用或把結果推送到 FigJam 白板時使用。適合需要每條結論可追溯的質性研究工作流程。
- 執行需求
- 透過 stdio 執行的本機程序,僅限桌面端。需要 Python 3.10+ 與 etot-motif[mcp] 套件(pip install,或 uvx --from "etot-motif[mcp]" motif-mcp),或以 pip install -e ".[mcp]" 安裝的程式碼 checkout。需要在環境或 .env 檔案中提供 ANTHROPIC_API_KEY。宿主需要 motif-mcp 進入點的絕對路徑。執行日誌寫入 ~/.motif/runs 或 runs/,可用 MOTIF_RUNS_DIR 覆寫。另有透過 MOTIF_REMOTE_URL 啟用的遠端模式。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Motif,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Motif MCP server
One server, usable from Claude Code, Cursor, Claude Desktop, and any MCP host.
A designer or researcher working in an agent environment can say "synthesise
these transcripts" and get the same cited, critic-checked result the CLI
gives. Every tool is a thin call into synth/engine.py; the loop, prompts,
and config are shared with the CLI and the FigJam plugin, never duplicated.
Tools
Failure semantics: a missing verdict, an empty synthesis, an unparseable document, a run that does not exist, or turn ids none of which exist all return an MCP tool error. There is no empty success.
Progress: every engine progress line (each transcript ingested, each model call, each critic iteration) is sent twice: as an MCP log notification, which a host only receives if it has set a logging level, and as a progress notification, which a host receives if it passed a progress token (Claude Code does). stdout is the protocol; nothing else ever writes to it.
Install (local mode)
From PyPI, into any Python 3.10+ environment:
Or with no install step, if you have uv: the
command is uvx --from "etot-motif[mcp]" motif-mcp. Installed this way the
server uses the packaged config and writes run logs to ~/.motif/runs
(override with MOTIF_RUNS_DIR).
From a Motif checkout:
The server reads ANTHROPIC_API_KEY from the environment or the repo's
.env, writes run logs to runs/ in the repo (override with
MOTIF_RUNS_DIR), and uses config/synth.yaml, a symlink to the packaged synth/synth.yaml (override with MOTIF_CONFIG).
Every host below needs the absolute path to .venv/bin/motif-mcp; hosts
spawn servers without your shell's PATH.
Claude Code
Optionally install the skill so Claude Code knows the workflow (verify citations with receipts, mind contested insights, push to FigJam):
Then in a new Claude Code session:
Claude Code calls motif_synthesize, streams the engine's progress, and can
then call motif_receipts to verify any citation or motif_board to push
the run onto a FigJam board via Figma's MCP server.
Cursor
Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
Restart Cursor; the five motif_* tools appear under MCP tools.
Claude Desktop
Open the config file (Claude menu → Settings → Developer → Edit Config), or edit it directly:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Quit and reopen Claude Desktop; the tools appear under the tools icon in the chat box. Claude Desktop cannot open files on your disk, so ask for the report markdown in the reply, or read it from the run directory.
Remote mode
Set MOTIF_REMOTE_URL and the same five tools forward to the hosted Motif
service (surfaces/hosted/) instead of running the engine locally: no Python
dependencies beyond the server itself, and the same results. Your
ANTHROPIC_API_KEY is forwarded with each job and used for that job only.
In remote mode a tool's run_id is the hosted job id, valid for an hour after
the job finishes; motif_receipts, motif_board, and motif_runs_get take
it. The hosted engine runs with the logger's redact=True: prompt and
response bodies are stored as length + SHA-256, corpora are never snapshotted,
and the job's uploads are deleted at expiry. MOTIF_REMOTE_TOKEN selects the
paid tier, which is not switched on yet.
Board output through Figma's MCP server
motif_board returns a layout and scripts; it does not touch Figma. The
host (Claude Code with Figma's MCP server authenticated) runs each script
with use_figma against a FigJam board URL and reads the result back with
get_figjam. Verified on a real board on 2026-09-04
(docs/exhibits/step-zero/, docs/exhibits/board-r5/).
Listing
listing.md holds the descriptions for directories that index MCP servers;
server.json is the manifest for the official MCP registry (publish after
the package is on PyPI).
Tests
來源:surfaces/mcp/README.md,提交 3aa944a
工具
0版本歷史
1- v0.5.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。