We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/doobidoo/mcp-memory-service'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
download_model_with_timeout.py•749 B
#!/usr/bin/env python3
"""
Download HuggingFace embedding model with error handling.
Sets SKIP_MODEL_TESTS=true in GITHUB_ENV on failure.
"""
import sys
import os
try:
print('Downloading embedding model...')
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('all-MiniLM-L6-v2')
print('✓ Model cached successfully')
except Exception as e:
print(f'⚠️ Model download failed: {e}', file=sys.stderr)
print('Setting SKIP_MODEL_TESTS=true')
# Write to GITHUB_ENV if available
github_env = os.environ.get('GITHUB_ENV')
if github_env:
with open(github_env, 'a') as f:
f.write('SKIP_MODEL_TESTS=true\n')
sys.exit(0) # Exit successfully to continue workflow