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/123/detail/abcDEF"}'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 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. - The current Weibo skill is read-only. Do not imply posting, liking, following, or any other write operation.
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.- 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