fanqie-autopub-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FANQIE_DEBUG | No | 调试日志开关,默认关闭;设为 `1` 输出调试日志(stderr) | 0 |
| FANQIE_DATA_DIR | No | 数据目录(默认 `<项目>/data`) | <项目>/data |
| FANQIE_CHROME_PATH | No | Chrome/Edge 可执行文件路径;默认自动探测 | |
| FANQIE_COOKIES_FILE | No | cookies 文件路径(默认 `<data>/tomato_cookies.json`) | <data>/tomato_cookies.json |
| FANQIE_ENABLE_BROWSER | No | 浏览器能力开关,默认开启;设为 `0`/`false`/`off` 则彻底禁用浏览器能力 | 1 |
| FANQIE_CHAPTER_URL_TEMPLATE | No | 章节发布页地址模板;默认使用内置模板 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| login_tomatoA | 打开真实浏览器窗口,你在窗口里扫码/过验证码完成登录,服务只轮询登录态并保存 cookies。全程不接触账号密码。 |
| set_tomato_cookiesB | 手动导入 cookies 文本或文件路径。cookies 需为数组或 {cookies:[...]} 格式(浏览器插件导出格式均可)。 |
| get_publish_statusA | 检查 cookies / 浏览器驱动 / 后台可达性,并返回补齐指引。verify_login=true 时会真开一次无头浏览器校验登录态。 |
| list_novels_tomatoA | 读取作者后台真实小说列表(拿真实 book_id),用于核对与回填。可选把结果同步进本地小说登记(供批量上传用)。 |
| create_novel_tomatoA | 在番茄作者后台真实建书。必填:title(书名≤15字)、gender(1男频/0女频)、protagonist1/2(主角名各≤5字)、abstract(简介50–500字)。内容标签上限:情节≤4/情感≤2/人设≤4/世界观≤1。默认 confirm=false 只做预检与预览,不建书;confirm=true 才真正提交。 |
| list_chapters_tomatoA | 读取番茄后台某本书的章节列表(标题/字数/状态),用于复核发布结果与避免重号。 |
| add_chapter_tomatoA | 向指定书籍上传一个章节:填序号+标题+正文 →(confirm=true 时)下一步 → 选择内容检测方式 → 发布设置(是否使用AI) → 确认提交 → 错别字二次确认 → 接口复核。正文可用 content、file_path 或 article_id(本地文稿库)。支持 scheduled_time 定时发布。默认 confirm=false 只填表不提交。 |
| batch_publish_chaptersA | 从本地文稿库挑「待发布」章节,按章节号顺序限速依次上传;单章失败不中断,返回逐章结果。confirm=false 时只演练第 1 章(填表不提交),避免在后台留下大量草稿。 |
| list_short_stories_tomatoB | 读取作者后台短故事列表;status=draft 时读草稿箱。 |
| get_short_story_tomatoB | 读取某条短故事的标题/正文字数/分类/签约状态/可否修改等(edit/v1)。 |
| create_short_story_tomatoA | 新建短故事并可选保存草稿。打开空白编辑页时番茄会自动建一条草稿 item(返回 item_id)。短故事正文官方区间 6000–80000 字(最佳 1w–3w)。正文可用 content/file_path/article_id。默认 confirm=false 只填表不存草稿;confirm=true 才点「存草稿」。 |
| publish_short_story_tomatoA | 发布短故事。可给 item_id 直接发布已有作品,或给 title(+content) 新建并发布。confirm=false 只填表预览;confirm=true 才走 存草稿 → 下一步 → 发布。若命中实名/人脸验证会停止并提示人工完成。字数需在 6000–80000。 |
| set_short_story_cover_tomatoA | 为已有短故事上传本地封面图片(通过编辑页文件上传入口,由页面自身完成 cover/v0 签名)。默认 confirm=false 只上传不保存。 |
| delete_short_story_tomatoA | 删除指定短故事或草稿(破坏性)。默认 confirm=false 只预览;confirm=true 才真正删除。 |
| save_articleA | 把用户写好的正文入库(data/articles.json),返回 article_id,避免把长文本反复塞进工具参数。kind=chapter 可带 novel_id/chapter_number;kind=short 用于短故事。正文可用 content 或 file_path。 |
| list_articlesB | 按 kind / novel_id / status 过滤列出本地文稿库条目(不含正文全文)。 |
| get_articleA | 按 article_id 取回本地文稿全文(含正文)。 |
| delete_articleA | 删除本地文稿库条目(不影响番茄后台)。默认 confirm=false 只预览。 |
| get_statsB | 汇总本地文稿库/任务/登记 + 环境自检;remote=true 时再读一次番茄后台的真实小说与短故事列表。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| status | cookies / 浏览器驱动 / 后台地址等只读状态 |
| novels | 本地登记的小说与绑定的番茄 book_id(不联网) |
| short-stories | 本地登记的短故事与番茄 item_id(不联网) |
| articles | 本地文稿库条目(不含正文全文) |
| tasks | 批量/单章上传的任务日志 |
| publish-rules | 短故事字数区间、标签上限、定时发布支持范围等 |
TDQS
Scored across 19 tools
Tools target distinct resources (novels, chapters, short stories, local articles, auth) and single vs. batch operations are clearly separated. Minor overlap exists between get_publish_status and get_stats (both do environment self-checks) and between create_short_story_tomato and publish_short_story_tomato (both can create), but descriptions clarify the boundaries.
A predictable verb_noun pattern with a _tomato suffix for remote/backend tools and no suffix for local tools is largely followed (list_novels_tomato, create_short_story_tomato, save_article, delete_article). Deviations like set_tomato_cookies (tomato in the middle), batch_publish_chapters (missing suffix), and get_publish_status are minor but noticeable.
19 tools is on the heavier side but justified by the server's broad scope: authentication, novel creation, chapter upload (single + batch), short-story lifecycle, local article library, and diagnostics. Each tool earns its place, though the set could be trimmed slightly by merging the two diagnostic tools.
Core workflows are well covered: auth, novel creation, chapter publishing, batch upload, short-story CRUD + cover + publish, local article library CRUD, and status/stats. Gaps are minor — there is no update/edit for novels or chapters and no update for local articles, but the publishing lifecycle itself is complete.