Spaces:
Running
Running
Download scripts/mcp_entrypoint.sh from LeoWalker/learningfocused-mcp: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/LeoWalker/learningfocused-mcp/resolve/main/scripts/mcp_entrypoint.sh
- Command line
-
hf download hf://spaces/LeoWalker/learningfocused-mcp/scripts/mcp_entrypoint.sh
-
curl -L -o mcp_entrypoint.sh https://huggingface.co/spaces/LeoWalker/learningfocused-mcp/resolve/main/scripts/mcp_entrypoint.sh
378 Bytes
| # Space / Cloud Run entrypoint: hydrate chroma, then serve /mcp. | |
| # Extra args replace the MCP server (HF Jobs pass `python -m src.pipeline.daily_ingest`). | |
| # Does not --reset-chroma, re-embed, or touch Neo4j. | |
| set -eu | |
| if [ "$#" -gt 0 ]; then | |
| exec "$@" | |
| fi | |
| if [ "${HYDRATE_CHROMA:-1}" = "1" ]; then | |
| python -m src.mcp_server.hydrate | |
| fi | |
| exec python -m src.mcp_server | |