forked from zzkarna/vibe-blocks-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.sh
More file actions
executable file
·27 lines (23 loc) · 800 Bytes
/
server.sh
File metadata and controls
executable file
·27 lines (23 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Simple script to run the Vibe Blocks MCP server with uvicorn
# Check if uv is installed
if ! command -v uv &> /dev/null
then
echo "Error: uv is not installed. Please install it first: https://github.com/astral-sh/uv#installation"
exit 1
fi
# Check if uvicorn is installed via uv, install if not
if ! uv pip freeze | grep -q "uvicorn=="
then
echo "uvicorn not found via uv. Installing..."
uv pip install uvicorn
if [ $? -ne 0 ]; then
echo "Failed to install uvicorn. Please install it manually." >&2
exit 1
fi
fi
# Navigate to the script's directory to ensure correct relative paths
cd "$(dirname "$0")"
# Run the server
echo "Starting Vibe Blocks MCP Server (http://localhost:8000)..."
uvicorn src.roblox_mcp.server:app --port 8000 --reload