We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChiragPatankar/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
PUSH_TO_HF.mdβ’1.78 KiB
# π Push Files to Hugging Face Space
## Quick Steps
### 1. Get Hugging Face Token
1. Go to: https://huggingface.co/settings/tokens
2. Click **"New token"**
3. **Name**: `RAG Backend Deploy`
4. **Type**: **Write** (needed to push files)
5. **Copy the token** (you'll only see it once!)
### 2. Push Using Token
**Option A: One-time push (replace YOUR_TOKEN)**
```bash
cd D:\project\rag-backend
git push https://YOUR_TOKEN@huggingface.co/spaces/ChiragPatankar/RAG_backend main
```
**Option B: Set up remote with token (replace YOUR_TOKEN)**
```bash
cd D:\project\rag-backend
git remote set-url hf https://YOUR_TOKEN@huggingface.co/spaces/ChiragPatankar/RAG_backend
git push hf main
```
**Option C: Use Git Credential Helper (Recommended)**
```bash
cd D:\project\rag-backend
# First time: enter token when prompted
git push hf main
# Username: ChiragPatankar
# Password: <paste your token>
```
### 3. Alternative: Use HF CLI
```bash
# Install HF CLI
pip install huggingface_hub
# Login
huggingface-cli login
# Then push
git push hf main
```
## β After Push
1. **Files will appear** in your Space's "Files" tab
2. **Auto-deploy starts** automatically
3. **Check "Logs"** tab for build progress
4. **Wait 5-10 minutes** for first build
## π Security Note
- β οΈ **Never commit tokens to git**
- β Use environment variables or credential helper
- β Revoke old tokens if compromised
## π Troubleshooting
**"Authentication failed"**
β Make sure token has **Write** permission
**"Repository not found"**
β Check Space name: `ChiragPatankar/RAG_backend`
**"Permission denied"**
β Token might be expired, generate a new one
---
**Quick Command (after getting token):**
```bash
cd D:\project\rag-backend
git push https://YOUR_TOKEN@huggingface.co/spaces/ChiragPatankar/RAG_backend main
```