Install
openclaw skills install xiaohongshu-login小红书 MCP 登录流程。当用户需要登录小红书、小红书登录过期、或需要获取小红书登录二维码时使用此 skill。
openclaw skills install xiaohongshu-loginmcporter call xiaohongshu-mcp.check_login_status
mcporter call xiaohongshu-mcp.get_login_qrcode --output json
注意: mcporter 输出的 JSON 格式不标准(属性名无引号),需要用正则提取 base64。
// 用 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);
}
# 用 read 工具直接显示图片,确保用户能看到
read /Users/chen/.openclaw/workspace/xhs_login.png
# 通过飞书发送(备用,可能不稳定)
message action=send channel=feishu filePath=/Users/chen/.openclaw/workspace/xhs_login.png
check_login_status - 检查是否已登录get_login_qrcode - 获取二维码--output json 输出格式不标准/data: '([^']+)'/ 提取 base64mcporter call xiaohongshu-mcp.delete_cookies
删除后需要重新登录。