Spaces:
Configuration error
Configuration error
Download scripts/run_mcp_server.sh from Brettapps/Trifecta-Lab: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/Brettapps/Trifecta-Lab/resolve/main/scripts/run_mcp_server.sh
- Command line
-
hf download hf://spaces/Brettapps/Trifecta-Lab/scripts/run_mcp_server.sh
-
curl -L -o run_mcp_server.sh https://huggingface.co/spaces/Brettapps/Trifecta-Lab/resolve/main/scripts/run_mcp_server.sh
409 Bytes
| set -euo pipefail | |
| VENV="$HOME/trifecta-bro-hf-space/.mcp-venv" | |
| PY="$VENV/bin/python" | |
| export PYTHONPATH="$HOME/trifecta-bro-hf-space/src" | |
| exec "$PY" - "$HOME/trifecta-bro-hf-space/src/mcp_server.py" << 'PYEOF' | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parents[0])) | |
| from mcp_server import mcp | |
| import asyncio | |
| asyncio.run(mcp.run_stdio_async()) | |
| PYEOF | |