Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Search, analyze, and interact with Xiaohongshu (RedNote/小红书) content via a local MCP server and shell scripts.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/stop-mcp.sh
1#!/bin/bash2# 停止小红书 MCP 服务34PID_FILE="$HOME/.xiaohongshu/mcp.pid"5XVFB_PID_FILE="$HOME/.xiaohongshu/xvfb.pid"67if [ -f "$PID_FILE" ]; then8PID=$(cat "$PID_FILE")9if kill -0 "$PID" 2>/dev/null; then10kill "$PID"11rm -f "$PID_FILE"12echo "✓ MCP 服务已停止"13else14echo "进程不存在,清理 PID 文件"15rm -f "$PID_FILE"16fi17else18echo "MCP 服务未运行"19fi2021# 清理 Xvfb22if [ -f "$XVFB_PID_FILE" ]; then23XVFB_PID=$(cat "$XVFB_PID_FILE")24if kill -0 "$XVFB_PID" 2>/dev/null; then25kill "$XVFB_PID"26echo "✓ Xvfb 已停止"27fi28rm -f "$XVFB_PID_FILE" "$HOME/.xiaohongshu/xvfb.display"29fi30