Skip to content

fix(xiaohongshu): switch from Docker MCP to xhs-cli (pipx install)#236

Merged
Panniantong merged 1 commit intomainfrom
fix/xhs-switch-to-cli
Mar 31, 2026
Merged

fix(xiaohongshu): switch from Docker MCP to xhs-cli (pipx install)#236
Panniantong merged 1 commit intomainfrom
fix/xhs-switch-to-cli

Conversation

@Panniantong
Copy link
Copy Markdown
Owner

Summary

  • Docker + Cookie import → pipx install xiaohongshu-cli + xhs login
  • Tier 2 → Tier 1 (no more Docker needed)
  • xhs-cli (jackwener, 1,477 stars) auto-extracts cookies from browser
  • Full feature set: search, read, comment, post, hot, feed, user, favorites

Test plan

  • pytest tests/ -v — 77 passed
  • xhs --help shows all 25+ commands
  • xhs status returns structured YAML

Docker + Cookie import → `pipx install xiaohongshu-cli` + `xhs login`.
Tier downgraded from 2 to 1. xhs-cli (1,477 stars) auto-extracts
cookies from browser, supports search/read/comment/post/hot/feed.

- xiaohongshu.py: check() detects `xhs` binary, parses `xhs status`
- cli.py: install via pipx instead of Docker
- skill/references/social.md: updated XHS commands
- tests: 3 new tests for CLI-based check()
- 77 tests passing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Panniantong Panniantong merged commit bc2d554 into main Mar 31, 2026
8 checks passed
@Panniantong Panniantong deleted the fix/xhs-switch-to-cli branch March 31, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant