wechat-writer-mcp

v0.1.1
io.github.datoushiwo/wechat-writer-mcp Checked 1 day ago Published 3 months ago

面向技术博主的 AI 内容加工流水线 MCP —— 从原始素材到公众号草稿箱

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

import_source

导入原始内容(本地 markdown 文件或 URL 网页),准备进行公众号加工。返回 raw_markdown 和元数据。

ParameterTypeDescription
source_type *string来源类型:file 读取本地文件,url 抓取网页正文
pathstring本地文件路径(source_type=file 时必填)
urlstring网页 URL(source_type=url 时必填)

transform_for_wechat

将 markdown 内容转换为公众号适配的 HTML 格式。自动段落切分、代码块处理、超链接转脚注、添加头尾模板,并生成 3 个标题候选。

ParameterTypeDescription
raw_markdown *string原始 markdown 内容
apply_templateboolean是否应用头尾模板
titlestring文章原标题(用于生成标题候选)

estimate_originality

对内容做原创度自评,辅助决策是否点"原创"标记。基于用户自己的历史草稿做比对,不能替代微信官方查重。

ParameterTypeDescription
content *string待检查的文章内容(markdown 或纯文本)
check_against_historyboolean是否与草稿箱历史内容比对

save_to_wechat_draft

将加工好的内容存入公众号草稿箱。永远只存草稿,不会自动群发/发布。存入后需手动到公众号后台发布。

ParameterTypeDescription
html_content *string文章 HTML 正文(transform_for_wechat 的输出)
title *string文章标题
authorstring作者名(默认使用环境变量配置)
content_source_urlstring原文链接(可选)
cover_pathstring封面图片路径(cover_strategy=specified 时使用)
cover_strategystring封面策略:random_from_folder 从目录随机选、specified 指定路径、none 不设封面
digeststring摘要(不超过 120 字)
need_open_commentboolean是否打开评论
only_fans_can_commentboolean是否仅粉丝可评论