
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


