xiaohongshu-login

小红书 MCP 登录流程。当用户需要登录小红书、小红书登录过期、或需要获取小红书登录二维码时使用此 skill。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "xiaohongshu-login" with this command: npx skills add fe-room/xiaohongshu-login

小红书登录

检查登录状态

mcporter call xiaohongshu-mcp.check_login_status

获取登录二维码

Step 1: 调用 MCP 获取二维码

mcporter call xiaohongshu-mcp.get_login_qrcode --output json

注意: mcporter 输出的 JSON 格式不标准(属性名无引号),需要用正则提取 base64。

Step 2: 保存二维码图片

// 用 Node.js 提取并保存
const { execSync } = require('child_process');
const fs = require('fs');

const result = execSync('mcporter call xiaohongshu-mcp.get_login_qrcode --output json', { encoding: 'utf8' });

// 正则提取 base64(绕过 JSON 解析问题)
const match = result.match(/data: '([^']+)'/);
if (match) {
  const buffer = Buffer.from(match[1], 'base64');
  fs.writeFileSync('/Users/chen/.openclaw/workspace/xhs_login.png', buffer);
}

Step 3: 显示图片(最可靠)

# 用 read 工具直接显示图片,确保用户能看到
read /Users/chen/.openclaw/workspace/xhs_login.png

Step 4: 发送给用户

# 通过飞书发送(备用,可能不稳定)
message action=send channel=feishu filePath=/Users/chen/.openclaw/workspace/xhs_login.png

完整流程

  1. check_login_status - 检查是否已登录
  2. get_login_qrcode - 获取二维码
  3. 正则提取 base64 → 保存为 PNG
  4. read 工具显示图片 ← 最重要,确保用户能看到
  5. message 发送(可选)

常见问题

飞书图片不显示

  • 本地文件路径在飞书可能不渲染
  • 解决:先用 read 工具显示,让用户直接查看

JSON 解析失败

  • mcporter --output json 输出格式不标准
  • 解决:用正则 /data: '([^']+)'/ 提取 base64

图片不完整

  • 可能是 base64 提取不完整
  • 解决:确保正则匹配完整,检查文件大小

重置登录

mcporter call xiaohongshu-mcp.delete_cookies

删除后需要重新登录。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Fast Douyin Publish

抖音视频自动发布助手。一键上传视频到抖音,支持自动文案生成和标签优化。

Registry SourceRecently Updated
General

Skills Finder

Intelligent skill matcher that searches multiple skill marketplaces (ClawHub & Skills.sh) in real-time. Supports ANY language for user input, multi-step skil...

Registry SourceRecently Updated
General

Claw Self Improving Plus

Turn raw mistakes, corrections, discoveries, and repeated decisions into structured learnings and promotion candidates. Use when the user wants a conservativ...

Registry SourceRecently Updated