wechat-writer-mcp
v0.1.1面向技术博主的 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 和元数据。
| Parameter | Type | Description |
|---|---|---|
source_type * | string | 来源类型:file 读取本地文件,url 抓取网页正文 |
path | string | 本地文件路径(source_type=file 时必填) |
url | string | 网页 URL(source_type=url 时必填) |
transform_for_wechat
将 markdown 内容转换为公众号适配的 HTML 格式。自动段落切分、代码块处理、超链接转脚注、添加头尾模板,并生成 3 个标题候选。
| Parameter | Type | Description |
|---|---|---|
raw_markdown * | string | 原始 markdown 内容 |
apply_template | boolean | 是否应用头尾模板 |
title | string | 文章原标题(用于生成标题候选) |
estimate_originality
对内容做原创度自评,辅助决策是否点"原创"标记。基于用户自己的历史草稿做比对,不能替代微信官方查重。
| Parameter | Type | Description |
|---|---|---|
content * | string | 待检查的文章内容(markdown 或纯文本) |
check_against_history | boolean | 是否与草稿箱历史内容比对 |
save_to_wechat_draft
将加工好的内容存入公众号草稿箱。永远只存草稿,不会自动群发/发布。存入后需手动到公众号后台发布。
| Parameter | Type | Description |
|---|---|---|
html_content * | string | 文章 HTML 正文(transform_for_wechat 的输出) |
title * | string | 文章标题 |
author | string | 作者名(默认使用环境变量配置) |
content_source_url | string | 原文链接(可选) |
cover_path | string | 封面图片路径(cover_strategy=specified 时使用) |
cover_strategy | string | 封面策略:random_from_folder 从目录随机选、specified 指定路径、none 不设封面 |
digest | string | 摘要(不超过 120 字) |
need_open_comment | boolean | 是否打开评论 |
only_fans_can_comment | boolean | 是否仅粉丝可评论 |