
Realtime Avatar
io.github.theinfluencecompanyv0.27.0更新於 Oct 5, 2026
Read your Realtime Avatar avatars, credit balance and session bill from a coding agent.
概覽
讓編碼代理讀取 Realtime Avatar 的虛擬人偶、額度餘額與工作階段帳單,並可選擇建立人偶與發起按秒計費的通話。
- 功能
- 這是 Realtime Avatar 平台的 MCP 伺服器。唯讀工具可列出虛擬人偶並標示哪些能即時使用、取得單一人偶的詳細資料、查詢額度餘額與已保留金額、依工作階段列出時長與費用的明細帳單,以及查看某個人偶的片段庫。啟用寫入後,還能設定靜止循環、宣告完整片段庫、上傳本機檔案或登記網路上的資源、用一張靜態圖片建立人偶,並建立即時工作階段以驗證整合。
- 適用情境
- 當代理需要真實的人偶 id、餘額或帳單資料,而不是從文件推測時,或希望由代理建立人偶與片段庫並驗證即時整合時使用。它僅限桌面的本機程序,適合開發機而非託管環境。
- 執行需求
- 透過 npx 從 npm 套件 realtime-avatar-mcp 以 stdio 在本機執行,需要 Node.js。需要 Realtime Avatar API 金鑰,放在 REALTIME_AVATAR_API_KEY 中;可申請免費沙箱金鑰。除非將 REALTIME_AVATAR_ALLOW_WRITES 設為 1,否則寫入工具維持關閉。需要連線至 Realtime Avatar 服務的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Realtime Avatar,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
realtime-avatar-mcp
Published on npm as realtime-avatar-mcp — run it with npx, never installed into an app.
An MCP server for Realtime Avatar. AGENTS.md tells a coding agent what
the API is; this lets it look — at your avatars, your balance, your bill — instead of
guessing ids and inventing shapes.
Full page, including the write tools and what they cost: https://realtimeavatar.ai/docs/mcp. You need an API key first — a sandbox key is free and needs no card.
Working on it in this repo? npm run build, then point command at node with
args: ["/abs/path/to/realtime-avatar-sdk/libs/mcp/dist/bin.js"].
Tools
With REALTIME_AVATAR_ALLOW_WRITES=1:
Spending money is opt-in, and twice gated
The five tools above are read-only, and each carries readOnlyHint so a host can gate on
the annotation rather than on a name it has to recognise. Pointed at a production key, this
server is no more dangerous than a dashboard you left open.
REALTIME_AVATAR_ALLOW_WRITES=1 enables the write tools. Only start_call costs credits,
and it refuses a tic_live_ key outright — an operator who armed writes against a test
key and later swapped in a production one should not discover it by being billed. Two
independent gates, because one is a single mistake away from being none.
Two things to understand before arming writes:
upload_assetreads local disk. It opens whatever absolute path the agent names, on the machine running the server. Relative paths are refused rather than resolved against whatever directory the host spawned it in.- The clip declaration retires by omission.
set_clip_librarytakes the COMPLETE set; anything missing from it stops being served. Its plan reports kept/queued/retired clips. Declaresource.motionPromptorsource.assetId; the platform hosts and prepares media. The avatar's stored source is the implicit rest state — never declared, so the idprimaryis reserved.
Why an MCP server at all
An agent that reads docs still guesses. ava_… ids cannot be inferred, and the failures that
cost the most time here are invisible in a type signature: a reshaped connection payload is
rejected by the browser client; a 429 on a call is the queue, not an error; the resting loop
is the avatar's source rather than a library clip, so no declaration changes it.
list_avatars marks which avatars are actually usable. The server's instructions carry the
relay rule and the per-second billing model. That is context an agent cannot derive, delivered
where it is about to act.
來源:libs/mcp/README.md,提交 9e56486
工具
0版本歷史
1- v0.27.0最新Oct 5, 2026


