Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques
| [Site QA](plugins/lonelyguy-se1/site-qa/) | Check local HTML/robots/sitemap for SEO and accessibility gaps, then ask the agent to fix them (Mini App + skill/CLI). Requires MiniMax Code 3.1.6 or later | [LonelyGuySE1](https://github.com/LonelyGuy-SE1) |
| [H3-Image-Executor](plugins/liddalidd/h3-image-executor/) | Turn one sentence into verified 4K images: it plans the shot list, searches for reference images, generates, reviews each image by looking at it, corrects colour cast, runs a bounded fix loop and delivers the result with an acceptance report; multi-image runs generate a character sheet first so the same subject stays the same subject. Needs an H3-Image endpoint and key you configure yourself. Requires MiniMax Code 3.1.6 or later | [liddalidd](https://github.com/liddalidd) |
| [Express Media](plugins/andre-1998/express-media/) | Compress a video to the size each platform accepts and report whether it fits; the bundled limits table shows where every number comes from | [Andre-1998](https://github.com/Andre-1998) |
| [FactScribe Paper Workbench](plugins/unclemoc/factscribe/) | A local workbench for writing papers: open your manuscript projects, read the check report, the fact ledger and the knowledge base, and let the assistant propose edits you approve before anything reaches the file. 17 MCP tools, read-mostly by design; every write is gated by your confirmation. Requires MiniMax Code 3.1.2 or later | [UncleMoc (BGISMALL)](https://github.com/UncleMoc) |

<details>
<summary>Preview: Cutline</summary>
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求
| [Site QA](plugins/lonelyguy-se1/site-qa/) | 检查本地 HTML/robots/sitemap 的 SEO / 无障碍问题,再让 Agent 修复(Mini App + skill/CLI)。需要 MiniMax Code 3.1.6 或更高版本(说明文档为英文) | [LonelyGuySE1](https://github.com/LonelyGuy-SE1) |
| [H3-Image-Executor](plugins/liddalidd/h3-image-executor/README.zh-CN.md) | 把一句话需求跑成经过校验的 4K 图片:规划分镜、检索参考图、生成、看图评审、色偏校正、有限次修正,最后交付图片和验收报告;多图任务会先生成角色设定图锁定主体外观。需要自备 H3-Image 接口地址和 Key。需要 MiniMax Code 3.1.6 或更高版本 | [liddalidd](https://github.com/liddalidd) |
| [急件 · 视频投递](plugins/andre-1998/express-media/README.zh-CN.md) | 把视频压到各平台能收的体积,并如实告诉你发不发得出去;内置上限表标明每个数字的来源 | [Andre-1998](https://github.com/Andre-1998) |
| [FactScribe 论文工作台](plugins/unclemoc/factscribe/README.zh-CN.md) | 写论文的本地工作台:打开你的稿盘,看检查报告、事实账与知识库,助手给的改动先成提议单,你在页面上点采纳才落盘。17 个 MCP 工具以只读为主,写盘一律由你确认。需要 MiniMax Code 3.1.2 或更高版本 | [UncleMoc (BGISMALL)](https://github.com/UncleMoc) |

<details>
<summary>预览:Cutline</summary>
Expand Down
20 changes: 20 additions & 0 deletions plugins/unclemoc/factscribe/.minimax-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"schemaVersion": 1,
"name": "factscribe",
"displayName": "FactScribe 论文工作台",
"version": "1.1.0",
"description": "A local workbench for writing papers: open your manuscript projects, read the check report, the fact ledger and the knowledge base, and let the assistant propose edits you approve before anything reaches the file. Numbers and citations stay pinned to the ledger; the AI proposes, you decide.",
"author": "UncleMoc · BGISMALL",
"icon": "icon.png",
"category": "Office",
"exampleQueries": [
"Open the FactScribe paper workbench",
"Check this paper's report and fact ledger for numbers that do not match",
"Propose a tighter rewrite of this introduction and show me the diff first"
],
"apps": [],
"mcpServers": [
"servers.mcp.json"
],
"skills": []
}
21 changes: 21 additions & 0 deletions plugins/unclemoc/factscribe/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 UncleMoc (BGISMALL)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
124 changes: 124 additions & 0 deletions plugins/unclemoc/factscribe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# FactScribe Paper Workbench (`factscribe`)

A local workbench for writing papers inside MiniMax Code. It opens your manuscript projects,
shows the check report, the fact ledger and the knowledge base side by side, and gives the
assistant seventeen read-mostly tools. Every edit the assistant suggests arrives as a **proposal**
that you approve in the page before a single byte is written to your manuscript.

**Human in the loop.** The assistant has no interface that writes to your text. Writing happens
only when you click *Adopt* on a diff card. Numbers and citations stay pinned to the ledger:
a value that is not in the ledger cannot be introduced by the assistant.

## What it solves

The three things that quietly break a paper are numbers that do not match the ledger, citations
that do not match the source, and two language versions that no longer say the same thing.
FactScribe turns them into readings you can check:

- every number and citation in the text is bound to a ledger entry with a source and a location;
- a fingerprint gate refuses to overwrite a file that changed after the diff you are looking at;
- bilingual drafts are compared entry by entry against the ledger and the bibliography.

## Capabilities

**Page** (route `/workbench`)

- Project and disk list (a project may hold several language disks, such as `paper` / `paper-zh`).
- Section rendering with protected chips for `\fact{}`, `\cite{}` and bound numbers.
- Check report (summary plus findings), style-gate readings, bilingual drift, evidence lock,
writing brief, venue layout.
- Fact ledger queries and knowledge-base search.
- Assistant panel that runs on the Host's own model, with a Chinese / English interface switch.

**Assistant tools** (17, over MCP)

Read-only (12): `fs_status`, `fs_get_outline`, `fs_read_section`, `fs_get_report`,
`fs_get_style`, `fs_mirror_check`, `fs_get_evidence_status`, `fs_get_brief`, `fs_get_venue`,
`fs_query_facts`, `fs_search_kb`, `fs_list_proposals`.

Proposals only (5): `fs_propose_edit`, `fs_propose_evidence_freeze`,
`fs_propose_evidence_unfreeze`, `fs_propose_add_fact`, `fs_propose_export_bundle`.

## Install

Copy this directory, including the hidden `.minimax-plugin/`, into the MiniMax Code plugins
directory as `factscribe/` (`~/.minimax/plugins/factscribe/` by default), then restart MiniMax
Code and ask the Agent to "Open the FactScribe paper workbench".

MiniMax Code 3.1.11 and later can also import the package straight from a Git repository: paste the
repository URL, pick the package directory, and confirm the preview.

On first use the page asks for your paper root directory: any directory that contains a
`factscribe.toml` is treated as a paper project. It can be changed later from the settings page.

## Tested environment

- MiniMax Code 3.1.16 on macOS 26.6.2 (arm64). Installed from this directory, opened through the
Agent, page rendered, and all 17 MCP tools called end to end over the Host's MCP runtime.
- Node 26.7 and Python 3.14 on the same machine. The Python engine is vendored inside the
package, so nothing has to be installed.
- Minimum client version: 3.1.2. The package declares `agentAccess: ["session.run"]`, which
needs 3.1.2; no `engines` bound is declared, so clients from 3.1.2 on still install it and
only lose the assistant model picker when their client does not expose the model catalogue.
- Not verified: Windows and Linux hosts. The package ships no platform-specific binary and the
Node entry uses only Node built-ins, but no run on those platforms has been done.

## Data & access

- **Files read**: the paper root directory you configure (and up to three levels below it) to
discover projects, render sections, compute the check report and list knowledge-base files; the
package's own payload directory, read-only at runtime.
- **Files written**: the plugin's private `dataDir` — `config.json` (your paper root),
`proposals/` (proposal records) and `custom-models.json` (an API key you typed yourself, mode
0600). Inside your paper directory, only where you click: `sections/*.tex` (atomic write plus a
`.bak` copy, refused when the file changed underneath) and `facts/draft/` for imported drafts.
Opening a disk also records `last_opened` in that disk's `factscribe.toml`.
- **Network hosts**: none by default. The Node service and the Python engine listen on loopback
only (`127.0.0.1`). If you add a custom model in the panel, the Node shell sends the prompt to
the OpenAI-compatible endpoint you typed; the host Agent turn is run by the Host on your
MiniMax Code account and plan.
- **Processes spawned**: `python3 -B -m factscribe workbench --root <your root> --port 0 --json
--no-browser` (the engine; killed when the Mini App stops), `factscribe audit` (read-only
re-run of the check report), `tectonic` (only for the optional PDF render button) and macOS
`open` (only for the "open folder" button).
- **Agent turns**: the panel runs Host Agent turns through `agentAccess: ["session.run"]`. The
model is the one MiniMax Code is configured with, on the Host's account and plan; the plugin
never reads your API keys or the Host configuration.
- **Conversations read**: none. The package declares no `session.read`, so it cannot list, read
or observe your conversations; each turn runs in the session the Mini App itself started.
- **Tools called**: none. The package declares no `toolAccess`, so it never calls Host MCP tools
or Connectors; a tool call requested by the model in the panel is refused and the model is told
to answer from the material instead.
- **Microphone, camera, notifications**: not used.
- **Host navigation read**: not used.
- **State**: the Host-owned plugin data directory, `~/.minimax/v2/plugin-data/liveboards/factscribe/`
on this machine. Treat that location as opaque; the plugin reads its own `config.json`,
`proposals/` and `custom-models.json` from there and writes nothing else outside it and your
own paper directory.

## MCP tools and the placeholder address

The package declares one MCP server, `factscribe`, in `servers.mcp.json`, and points
`miniapp/miniapp.json` at it with `mcpEndpoints`. The URL in `servers.mcp.json`
(`http://127.0.0.1:9/mcp/factscribe`) is the fail-closed placeholder MiniMax Code documents for
a Mini App that serves its own MCP server: port 9 never answers, and the Host rewrites the address
to the running instance when it adopts the Mini App. The two declarations belong together — the
Host checks that every `mcpEndpoints.server` is declared in `plugin.json.mcpServers`. No remote
third-party MCP server is declared.

## Files

```text
.minimax-plugin/plugin.json Plugin manifest
package.json Mini App declaration
servers.mcp.json MCP server served by the Mini App
icon.png Plugin icon
miniapp/miniapp.json Payload roots, Node entry, page route, MCP endpoint
miniapp/client/ The page: index.html, app.js, app.css
miniapp/node/server.mjs Node entry: start(context) -> { dispose }
miniapp/node/engine/ The vendored FactScribe engine (Python)
```

## License

[MIT](./LICENSE)
109 changes: 109 additions & 0 deletions plugins/unclemoc/factscribe/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# FactScribe 论文工作台(`factscribe`)

写论文的本地工作台,装在 MiniMax Code 里:打开你的稿盘,把检查报告、事实账本与知识库摆在
同一页,并给助手 17 个以只读为主的工具。助手给的每一条改稿建议都以**提议单**出现——
你在页面上点「采纳写回」之前,正文一个字节都不会动。

**人在回路**:助手没有任何直接改正文的接口,落笔只由你点确认。数字与引文始终钉在账本上——
账上没有的值,助手不许凭空写进正文。

## 它解决什么

论文里最容易坏掉的是三件事:数字与账本对不上、引文与原文对不上、中英文两稿说法不一致。
FactScribe 把它们变成可核对的读数:

- 正文里每个数字、每条引文都绑定到账本条目,带出处与定位;
- 指纹闸保证你看到的差异卡对应的文件没有被别处改过——改过就拒写;
- 双语稿逐条对账事实与参考文献,漂移会被报出来。

## 能力清单

**页面**(路由 `/workbench`)

- 项目与稿盘清单(一个项目可有多张语言盘,如 `paper` / `paper-zh`);
- 章节渲染:`\fact{}`、`\cite{}` 与绑定数字显示为不可误碰的芯片;
- 检查报告(摘要+发现)、文风闸读数、双语对账、证据锁、写作简报、版式;
- 事实账本查询、知识库检索;
- 助手面板跑宿主自己的模型,界面中/EN 可切。

**助手工具**(17 个,MCP)

只读 12 个:`fs_status`、`fs_get_outline`、`fs_read_section`、`fs_get_report`、
`fs_get_style`、`fs_mirror_check`、`fs_get_evidence_status`、`fs_get_brief`、`fs_get_venue`、
`fs_query_facts`、`fs_search_kb`、`fs_list_proposals`。

只提提议 5 个:`fs_propose_edit`、`fs_propose_evidence_freeze`、`fs_propose_evidence_unfreeze`、
`fs_propose_add_fact`、`fs_propose_export_bundle`。

## 安装

把本目录(含隐藏的 `.minimax-plugin/`)复制到 MiniMax Code 的插件目录,命名为 `factscribe/`
(默认 `~/.minimax/plugins/factscribe/`),重启 MiniMax Code,对助手说「打开 FactScribe 论文工作台」。

MiniMax Code 3.1.11 起也可以直接从 Git 仓库导入:贴仓库地址、选中包目录、核对预览即可。

首次打开会让你填**论文根目录**:含 `factscribe.toml` 的目录会被当作论文项目,之后可在设置页改。

## 测试环境

- MiniMax Code 3.1.16,macOS 26.6.2(arm64)。从本目录安装、经助手打开、页面渲染正常,
17 个 MCP 工具在宿主 MCP 运行时上逐个实调通过。
- 同一台机器上的 Node 26.7 与 Python 3.14。Python 引擎已随包 vendor,不用装任何东西。
- 最低客户端版本:3.1.2。本包声明 `agentAccess: ["session.run"]`(该能力需要 3.1.2);
没有声明 `engines` 下限,所以 3.1.2 起的客户端都能装,只是客户端不提供模型目录时
面板里少一个模型下拉。
- **未验证**:Windows 与 Linux 宿主。包内没有平台专属二进制、Node 入口只用内置模块,
但没有在这两个平台上实跑过。

## 数据与访问

- **读取的文件**:你配置的论文根目录(及其下三层),用于发现项目、渲染章节、算检查报告、
列知识库文件;以及本包自身的载荷目录(运行时只读)。
- **写入的文件**:插件私有 `dataDir`——`config.json`(论文根目录)、`proposals/`(提议单记录)、
`custom-models.json`(你自己填的 API Key,权限 0600)。你的论文目录里只有你点了才写:
`sections/*.tex`(原子写+留 `.bak`,文件被别处改过就拒写)与 `facts/draft/`(草稿导入)。
另外「打开」一个稿盘会在该盘的 `factscribe.toml` 里记 `last_opened`。
- **网络 host**:默认没有。Node 服务与 Python 引擎只绑回环(`127.0.0.1`)。若你在面板里
自加自定义模型,Node 薄壳会把你填的 OpenAI 兼容端点当作目标;面板里的助手回合由宿主代跑,
走你在 MiniMax Code 上的账号与额度。
- **拉起的进程**:`python3 -B -m factscribe workbench --root <你的根目录> --port 0 --json
--no-browser`(引擎,MiniApp 停止时被杀)、`factscribe audit`(只读重跑检查报告)、
`tectonic`(只用于可选的 PDF 渲染按钮)、macOS `open`(只用于「打开目录」按钮)。
- **Agent 回合**:面板通过 `agentAccess: ["session.run"]` 跑宿主 Agent 回合,用的是 MiniMax Code
自己配的模型、宿主账号与额度;插件不读你的 API key、不读宿主配置。
- **读取的对话**:没有。本包不声明 `session.read`,因此不能列出、读取或观察你的任何对话;
每个回合都跑在 MiniApp 自己起的会话里。
- **调用的工具**:没有。本包不声明 `toolAccess`,因此从不调用宿主 MCP 工具或 Connector;
面板里模型若要调工具,一律回绝,并被告知只依据材料回答。
- **麦克风/摄像头/通知**:不使用。
- **宿主导航读取**:不使用。
- **状态存放**:宿主创建的插件私有数据目录(本机为
`~/.minimax/v2/plugin-data/liveboards/factscribe/`)。这个位置请当作不透明:插件只读自己的
`config.json`、`proposals/`、`custom-models.json`,此外不写该目录以外的任何地方,
除了你自己的论文目录。

## MCP 工具与占位地址

本包在 `servers.mcp.json` 里声明了一个 MCP server `factscribe`,并在
`miniapp/miniapp.json` 里用 `mcpEndpoints` 指向它。`servers.mcp.json` 里的 URL
(`http://127.0.0.1:9/mcp/factscribe`)是 MiniMax Code 为「MiniApp 自带 MCP server」规定的
fail-closed 占位地址:端口 9 永远没人应答,宿主采纳这个 MiniApp 时会把它改写成当前运行实例的地址。
两处声明必须成对——宿主会校验 `mcpEndpoints.server` 必须在 `plugin.json.mcpServers` 里声明过。
包内没有声明任何第三方远程 MCP。

## 文件

```text
.minimax-plugin/plugin.json 插件清单
package.json MiniApp 声明
servers.mcp.json 由本 MiniApp 提供的 MCP server
icon.png 插件图标
miniapp/miniapp.json 载荷根、Node 入口、页面路由、MCP 端点
miniapp/client/ 页面:index.html、app.js、app.css
miniapp/node/server.mjs Node 入口:start(context) -> { dispose }
miniapp/node/engine/ vendor 的 FactScribe 引擎(Python)
```

## 许可证

[MIT](./LICENSE)
Binary file added plugins/unclemoc/factscribe/docs/workbench.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plugins/unclemoc/factscribe/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading