SuperAPI AI 工具集

weibo-webmcp

通用与其它

查看项目

更新于 10-15 22:14

技能介绍

用途:通过 @webmcp-bridge/local-mcp 内置的 --site weibo 桥接预设,用固定 UXC 链接操作微博,适合需要读取时间线、检查帖子、发布内容等场景。非微博站点应改用 $webmcp-bridge。

前提条件:uxc 与 npx 均在 PATH 中;可访问 https://weibo.com 和 https://s.weibo.com;全新机器或隔离 HOME 下先运行 npx playwright install。微博对登录敏感,未登录 profile 预期出现 bootstrap_then_attach 行为。

主要能力:读取类工具包括 timeline.home.list、post.get、post.replies.list、post.repost.list、user.get、user.posts.list;写入类包括 post.create、comment.create、article.listDrafts、article.draftMarkdown、article.publishMarkdown;搜索类包括 search.weibo 和 search.ai.summary。

使用方式:先确认固定链接 command -v weibo-webmcp-cli,缺失或 profile 不对时运行 skills/weibo-webmcp/scripts/ensure-links.sh;用 weibo-webmcp-cli -h 及各工具 -h 查看 schema;新 profile 先查认证状态 bridge.session.status 和 auth.get,未就绪则 bridge.session.bootstrap 或 weibo-webmcp-cli bridge.session.mode.set '{"mode":"headed"}' 后 weibo-webmcp-cli bridge.open。读取示例:weibo-webmcp-cli timeline.home.list limit=10;post.get '{"url":"https://weibo.com/1648815335/QkMA02KXt"}';user.get screenName=jolestar。写入前优先 dryRun:weibo-webmcp-cli post.create '{"text":"webmcp dry run","dryRun":true}'。输出只按 JSON 解析:成功看 .ok == true 并消费 .data,失败看 .ok == false 及 .error.code、.error.message。默认 --site weibo,默认 profile 路径 ~/.uxc/webmcp-profile/weibo。

限制:微博 profile 需与其他站点隔离;未认证前页面工具不可用;当前不支持点赞、关注、删除内容或账户设置写入;timeline.home.list 为网络优先但可能在专用读取页预热模板;search.weibo 使用服务端渲染结果与页码分页,并非稳定公开 JSON 结果 API;search.ai.summary 可能返回结构化状态而无非空摘要体,summary_unavailable 属有效无摘要状态;详情 URL 使用 uid/mblogid 或 uid/number_id,不应改写为 handle/number_id;手动关闭可见微博窗口会结束 headed 会话,需重新 bridge.open。更多参考见 references/usage-patterns.md 与 scripts/ensure-links.sh。