返回顶部
x

x-webmcp

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
安全检测
已通过
84
下载量
0
收藏
概述
安装方式
版本历史

x-webmcp

# X WebMCP Use this skill to operate X through the built-in `--site x` bridge preset in `@webmcp-bridge/local-mcp`. For generic bridge setup patterns or non-X sites, switch to `$webmcp-bridge`. ## Prerequisites - `uxc` is installed and available in `PATH`. - `npx` is installed and available in `PATH`. - Network access to `https://x.com`. - On a fresh machine, or under an isolated `HOME`, install Playwright browsers first with `npx playwright install`. - X is auth-sensitive. Expect `bootstrap_then_attach` behavior when the profile is not signed in yet. ## Core Workflow 1. Ensure the fixed X link exists: - `command -v x-webmcp-cli` - if missing or pointed at the wrong profile, run `skills/x-webmcp/scripts/ensure-links.sh` 2. Inspect the bridge and tool schema before calling tools: - `x-webmcp-cli -h` - `x-webmcp-cli timeline.home.list -h` - `x-webmcp-cli grok.chat -h` - `x-webmcp-cli article.publishMarkdown -h` 3. Check authentication state first when the profile is new or looks stale: - `x-webmcp-cli bridge.session.status` - `x-webmcp-cli auth.get` - if the session is not ready, start bootstrap or switch to headed: - `x-webmcp-cli bridge.session.bootstrap` - `x-webmcp-cli bridge.session.mode.set '{"mode":"headed"}'` - `x-webmcp-cli bridge.open` 4. Use read tools for timelines, conversations, and profiles: - `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` 5. Use write tools only after reading help and confirming user intent: - `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}'` 6. Use Grok through the same authenticated X session: - `x-webmcp-cli grok.chat '{"prompt":"Summarize this thread","timeoutMs":180000}'` - for uploads, pass absolute local file paths in `attachmentPaths` 7. Parse JSON output only: - success path: `.ok == true`, consume `.data` - failure path: `.ok == false`, inspect `.error.code` and `.error.message` ## Default Target The built-in preset uses: ```bash --site x ``` The default profile path is: ```bash ~/.uxc/webmcp-profile/x ``` Refresh the link with: ```bash skills/x-webmcp/scripts/ensure-links.sh ``` ## Guardrails - Keep the X profile isolated from other sites. - X uses `bootstrap_then_attach`; do not expect page tools to work until the managed profile is authenticated. - Prefer explicit `bridge.session.mode.set` over relaunching the command to change runtime mode. - `grok.chat` and article publishing can take a long time. Increase `timeoutMs` instead of retrying aggressively. - For local uploads such as `attachmentPaths`, `markdownPath`, or `coverImagePath`, always use absolute filesystem paths. - Use `dryRun` for destructive or public write tools first when available. - If the user closes the visible X window manually, the headed owner session ends. Run `x-webmcp-cli bridge.open` again if you still need a visible session on the same profile. ## References - Common command patterns: - `references/usage-patterns.md` - Link creation helper: - `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

下载 Zip 包

⬇ 下载 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-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部