返回顶部
x

x-webmcpX网络连接器

Connect to X and Grok through the built-in local-mcp X adapter and one fixed UXC link. Use when the user wants to read timelines, inspect tweets, post on X, or chat with Grok from an authenticated browser profile.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
104
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

x-webmcp

X WebMCP

使用此技能通过 @webmcp-bridge/local-mcp 中内置的 --site x 桥接预设来操作 X。

如需通用桥接设置模式或非 X 站点,请切换到 $webmcp-bridge。

前置条件

  • - uxc 已安装并位于 PATH 中。
  • npx 已安装并位于 PATH 中。
  • 可访问 https://x.com 的网络连接。
  • 在新机器或隔离的 HOME 环境下,先使用 npx playwright install 安装 Playwright 浏览器。
  • X 对认证敏感。当配置文件尚未登录时,预期会出现 bootstrapthenattach 行为。

核心工作流程

  1. 1. 确保固定的 X 链接存在:
- command -v x-webmcp-cli - 如果缺失或指向错误的配置文件,运行 skills/x-webmcp/scripts/ensure-links.sh
  1. 2. 在调用工具前检查桥接和工具模式:
- x-webmcp-cli -h - x-webmcp-cli timeline.home.list -h - x-webmcp-cli grok.chat -h - x-webmcp-cli article.publishMarkdown -h
  1. 3. 当配置文件是新的或看起来过时时,首先检查认证状态:
- x-webmcp-cli bridge.session.status - x-webmcp-cli auth.get - 如果会话未就绪,启动引导或切换到有头模式: - x-webmcp-cli bridge.session.bootstrap - x-webmcp-cli bridge.session.mode.set {mode:headed} - x-webmcp-cli bridge.open
  1. 4. 使用读取工具获取时间线、对话和个人资料:
- x-webmcp-cli timeline.home.list limit=10 - x-webmcp-cli search.tweets.list {query:playwright,mode:latest,limit:10} - x-webmcp-cli tweet.get {url:https://x.com/.../status/...} - x-webmcp-cli tweet.conversation.get {id:2033895522382319922,limit:10} - x-webmcp-cli user.get username=jack
  1. 5. 仅在阅读帮助并确认用户意图后使用写入工具:
- x-webmcp-cli tweet.create {text:hello from webmcp,dryRun:true} - x-webmcp-cli tweet.reply {id:2033895522382319922,text:reply text,dryRun:true} - x-webmcp-cli article.publishMarkdown {markdownPath:/abs/path/post.md,dryRun:true}
  1. 6. 通过同一已认证的 X 会话使用 Grok:
- x-webmcp-cli grok.chat {prompt:Summarize this thread,timeoutMs:180000} - 对于上传,在 attachmentPaths 中传递绝对本地文件路径
  1. 7. 仅解析 JSON 输出:
- 成功路径:.ok == true,使用 .data - 失败路径:.ok == false,检查 .error.code 和 .error.message

默认目标

内置预设使用:

bash
--site x

默认配置文件路径为:

bash
~/.uxc/webmcp-profile/x

使用以下命令刷新链接:

bash
skills/x-webmcp/scripts/ensure-links.sh

防护措施

  • - 保持 X 配置文件与其他站点隔离。
  • X 使用 bootstrapthenattach;在托管配置文件通过认证之前,不要期望页面工具能正常工作。
  • 优先使用显式的 bridge.session.mode.set,而不是重新启动命令来更改运行时模式。
  • grok.chat 和文章发布可能需要较长时间。增加 timeoutMs 而不是激进地重试。
  • 对于本地上传,如 attachmentPaths、markdownPath 或 coverImagePath,始终使用绝对文件系统路径。
  • 对于破坏性或公开的写入工具,如果可用,请先使用 dryRun。
  • 如果用户手动关闭可见的 X 窗口,有头所有者会话将结束。如果仍需要在同一配置文件上使用可见会话,请再次运行 x-webmcp-cli bridge.open。

参考

  • - 常用命令模式:
- references/usage-patterns.md
  • - 链接创建辅助工具:
- scripts/ensure-links.sh

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 x-webmcp-1776031178 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 x-webmcp-1776031178 技能

通过命令行安装

skillhub install x-webmcp-1776031178

下载

⬇ 下载 x-webmcp v1.0.1(免费)

文件大小: 4.34 KB | 发布时间: 2026-4-13 12:37

v1.0.1 最新 2026-4-13 12:37
Release latest bridge session recovery guidance, X article draft lifecycle support, and Google/Gemini stabilization updates.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部