18 lines
322 B
Bash
18 lines
322 B
Bash
#!/bin/bash
|
|
|
|
# Webscraper MCP server runner
|
|
|
|
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
|
|
|
|
# Add ~/.local/bin to PATH for uv
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
# Sync dependencies if .venv doesn't exist
|
|
if [ ! -d ".venv" ]; then
|
|
uv sync
|
|
fi
|
|
|
|
# Run the server
|
|
cd "$BASEDIR"
|
|
uv run src/server.py
|