About Mio Chat Backend
Mio Chat Backend is an MCP server published by Pretend-to in the AI category: an LLM and Onebot WebUI based on SocketIO, with support for multiple LLM protocols. Conduid read 5 tools from its source: agent_delivery, agent_soul, define_ui_template, manage_ui_templates and send_ui. No package is published for it, so it installs from a source checkout.
The repository has 38 stars and 3 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include chat-application, onebot and plugin.
Install
git clone https://github.com/Pretend-to/mio-chat-backendTools (5)
agent_delivery查看或设置当前 Agent 后台任务、自主唤起的默认结果投递渠道。read=列出已绑定的非 Web 渠道和当前默认;set=用公开 channelId 指定;clear=显式清空并停止自动选择;reset=恢复自动选择最早绑定的可投递非 Web 渠道,无外部渠道时为空。默认选择不随临时离线切换。定时任务通常省略投递参数使用默认,session_only 只写入会话;Web 是观察面,不是投递目标。| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| channelId | string | set 必填,必须来自 read 返回的已绑定非 Web 渠道 |
agent_soul管理当前 Agent 的长期人格、语气与行为偏好。read=读取,append=追加,replace=整体替换,clear=清空;append/replace 必须传非空 soul,read/clear 不接受 soul。修改从下一次独立会话执行开始使用,不会追溯改变当前运行中的模型上下文,也不能改变服务端工具权限。仅修改长期偏好,当前任务的临时要求不要写入 Soul。| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| soul | string | append 的新增内容或 replace 的完整人格;不能为空 |
define_ui_template定义并保存一个 UI 模板到当前用户的模板库。模板用 HTML 编写,支持 {{变量名}} 占位符和 {{#each 数组名}}...{{/each}} 循环(循环内用 {{this}} 或 {{this.属性}})。适合角色扮演场景:状态面板、商店界面、对话窗口、剧情选项等。定义后可用 send_ui 发送。模板正文会单独存为 html 文件(模板名即文件名),方便后续直接编辑。可通过 schema(标准 JSON Schema)为每个字段补充说明(type/description/required 等),保存后 list/get 都能查看规范 schema 与字段含义。| Parameter | Type | Description |
|---|---|---|
| description | string | 模板用途说明(可选) |
| html * | string | HTML 模板正文,用 {{变量}} 占位 |
| name * | string | 模板 id(只能包含字母、数字、- 和 _,也是 html 文件名) |
| schema | string | 标准 JSON Schema 对象字符串,如 {"type":"object","properties":{"hp":{"type":"number","description":"生命值"}},"required":["hp"]}(推荐,可选) |
| variableDocs | string | 变量说明(旧兼容),JSON 对象字符串,键为变量名,值为 {type, required, description}(可选) |
| variables | string | 变量名列表(旧兼容),JSON 数组字符串,如 ["name","hp","items"](可选) |
manage_ui_templates管理当前用户的 UI 模板库。动作:list 列出全部模板(名称+描述+标准 JSON Schema);get 查看指定模板的完整内容(含 HTML 正文与 schema);delete 删除指定模板。| Parameter | Type | Description |
|---|---|---|
| action * | string | 操作类型 |
| name | string | 模板名(get / delete 时需要) |
send_ui渲染并发送交互式 UI 界面到消息流(Shadow DOM 独立渲染,支持 JS 交互)。【图片双模适配】:1. 静态图片:直接传 imageUrl / imgurl(如现有图片链接、网络图、素材图),直接即时渲染;2. 动态异步生图:传入 prompt / imagePrompt,自动提交后台生图任务并即刻输出卡片(由模板原生 CSS/DOM 呈现骨架屏),图片绘制完成后 WebSocket 自动平滑淡入回填;3. 图生图:同时传入 imageUrl + prompt,将作为参考图进行图生图重绘。用法:传 template(推荐,如 "gal_dialogue_card")+ variables,或传 html 发送内联 HTML。| Parameter | Type | Description |
|---|---|---|
| adapterId | string | 可选:指定生图适配器名称,默认走系统当前默认生图通道 |
| html | string | 内联 HTML 正文(与 template 二选一) |
| imagePrompt | string | 可选:prompt 的别名 |
| imageSize | string | 生图尺寸/比例,如 "1024x1024", "square", "portrait", "landscape" |
| imageUrl | string | 可选:静态图片地址(URL/Base64/本地路径)。若提供且无 prompt,直接显示该图;若同时提供 prompt 则作为参考图 |
| imgurl | string | 可选:imageUrl 的别名 |
| prompt | string | 可选:生图提示词。直接触发内置异步绘图并自动绑定至卡片 |
| template | string | 模板库中的模板名(推荐,如全局模板 "gal_dialogue_card") |
| variables | string | 变量值 JSON 对象字符串,如 {"chapterTitle":"第一章","caption":"角色名","text1":"对白..."} |
Security checks
- ✓README presentThe repository's README runs to about 300 words.
5 checks have not been run yet.
README
The repository's README runs to about 300 words. The original in the repository is authoritative.
Read full README