Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:44:39 +08:00
commit acd2279239
11 changed files with 1235 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#!/bin/bash
#
# Stop the Subgraph MCP Server
#
# This script stops the subgraph-mcp Docker container and cleans up resources.
set -e
# Default path to subgraph-mcp project
SUBGRAPH_MCP_PATH="${SUBGRAPH_MCP_PATH:-$HOME/Workspace/subgraph-mcp}"
echo "🛑 Stopping Subgraph MCP Server..."
echo " Project path: $SUBGRAPH_MCP_PATH"
# Check if the directory exists
if [ ! -d "$SUBGRAPH_MCP_PATH" ]; then
echo "❌ Error: Directory not found: $SUBGRAPH_MCP_PATH"
echo " Set SUBGRAPH_MCP_PATH environment variable to the correct path"
exit 1
fi
# Change to the project directory
cd "$SUBGRAPH_MCP_PATH"
# Stop the server
docker-compose down
echo "✅ Subgraph MCP Server stopped"