#!/bin/bash

# 检查所有服务状态

# 设置工作目录为 ~/.evolve
cd ~/.evolve

echo "📊 检查服务状态..."

# 检查Neo4j
if pgrep -f "neo4j" > /dev/null; then
    echo "🟢 Neo4j: 运行中"
else
    echo "🔴 Neo4j: 已停止"
fi

# 检查LMCE
if pgrep -f "start-lmce.py" > /dev/null; then
    echo "🟢 LMCE API: 运行中"
else
    echo "🔴 LMCE API: 已停止"
fi

# 检查MCP Server
if pgrep -f "start-mcp.py" > /dev/null; then
    echo "🟢 MCP Server: 运行中"
else
    echo "🔴 MCP Server: 已停止"
fi
