weibo-webmcp
SKILL.md
Weibo WebMCP
Use this skill to operate Weibo through the built-in --site weibo bridge preset in @webmcp-bridge/local-mcp.
For generic bridge setup patterns or non-Weibo sites, switch to $webmcp-bridge.
Prerequisites
uxcis installed and available inPATH.npxis installed and available inPATH.- Network access to
https://weibo.comandhttps://s.weibo.com. - On a fresh machine, or under an isolated
HOME, install Playwright browsers first withnpx playwright install. - Weibo is auth-sensitive. Expect
bootstrap_then_attachbehavior when the profile is not signed in yet.
Core Workflow
- Ensure the fixed Weibo link exists:
command -v weibo-webmcp-cli- if missing or pointed at the wrong profile, run
skills/weibo-webmcp/scripts/ensure-links.sh
- Inspect the bridge and tool schema before calling tools:
weibo-webmcp-cli -hweibo-webmcp-cli timeline.home.list -hweibo-webmcp-cli search.weibo -hweibo-webmcp-cli search.ai.summary -h
- Check authentication state first when the profile is new or looks stale:
weibo-webmcp-cli bridge.session.statusweibo-webmcp-cli auth.get- if the session is not ready, start bootstrap or switch to headed:
weibo-webmcp-cli bridge.session.bootstrapweibo-webmcp-cli bridge.session.mode.set '{"mode":"headed"}'weibo-webmcp-cli bridge.open
- Use read tools for timeline, posts, and profiles:
weibo-webmcp-cli timeline.home.list limit=10weibo-webmcp-cli post.get '{"url":"https://weibo.com/1648815335/QkMA02KXt"}'weibo-webmcp-cli post.replies.list '{"id":"5279584255214211"}'weibo-webmcp-cli post.repost.list '{"id":"5279584255214211"}'weibo-webmcp-cli user.get screenName=jolestarweibo-webmcp-cli user.posts.list '{"uid":"1648815335"}'
- Use write tools carefully:
weibo-webmcp-cli post.create '{"text":"webmcp dry run","dryRun":true}'weibo-webmcp-cli comment.create '{"id":"5279584255214211","text":"webmcp dry run","dryRun":true}'weibo-webmcp-cli article.listDraftsweibo-webmcp-cli article.draftMarkdown '{"markdownPath":"/abs/path/article.md"}'weibo-webmcp-cli article.publishMarkdown '{"markdownPath":"/abs/path/article.md","coverImagePath":"/abs/path/cover.png","dryRun":true}'
- Use search tools for public results and AI summaries:
weibo-webmcp-cli search.weibo '{"query":"OpenAI","limit":10}'weibo-webmcp-cli search.ai.summary '{"query":"OpenAI"}'
- Parse JSON output only:
- success path:
.ok == true, consume.data - failure path:
.ok == false, inspect.error.codeand.error.message
- success path:
Default Target
The built-in preset uses:
--site weibo
The default profile path is:
~/.uxc/webmcp-profile/weibo
Refresh the link with:
skills/weibo-webmcp/scripts/ensure-links.sh
Guardrails
- Keep the Weibo profile isolated from other sites.
- Weibo uses
bootstrap_then_attach; do not expect page tools to work until the managed profile is authenticated. - Prefer
dryRun: truebefore any real write operation on a user account. - The current Weibo skill supports posting, commenting, and article drafting/publishing, but does not cover liking, following, deleting content, or account settings writes.
timeline.home.listis network-first but may warm templates in a dedicated read page; do not assume the currently visible tab is the one serving data.search.weibouses server-rendered results with page-number pagination, not a stable public JSON results API.search.ai.summarycan return structured status without a non-empty summary body. Treatsummary_unavailableas a valid no-summary state, not an automatic failure.- Detail URLs returned by the adapter use
uid/mblogidoruid/number_id; do not rewrite them intohandle/number_id. - Prefer explicit
bridge.session.mode.setover relaunching the command to change runtime mode. - If the user closes the visible Weibo window manually, the headed owner session ends. Run
weibo-webmcp-cli bridge.openagain 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
Weekly Installs
1
Repository
holon-run/webmcp-bridgeGitHub Stars
24
First Seen
7 days ago
Security Audits
Installed on
antigravity1