Medium-MCP / deploy /DEPLOY.md
Nikhil Pravin Pise
feat: implement comprehensive improvement plan (Phases 1-5)
e98cc10

Medium-MCP Hugging Face Spaces Deployment

Quick Deploy

  1. Create a new Space on huggingface.co/spaces
  2. Select Docker as the SDK
  3. Clone the Space repo:
    git clone https://huggingface.co/spaces/YOUR_USERNAME/medium-mcp
    
  4. Copy deploy files:
    cp deploy/Dockerfile .
    cp deploy/README.md .
    cp requirements.txt .
    cp -r src/ .
    cp -r mcp/ .
    cp -r ui/ .
    cp app.py .
    cp server.py .
    cp elevenlabs_voices.py .
    
  5. Push to HF:
    git add .
    git commit -m "Initial deployment"
    git push
    

Environment Secrets

Add these in Space Settings β†’ Repository secrets:

  • GROQ_API_KEY
  • ELEVENLABS_API_KEY (optional)
  • GEMINI_API_KEY (optional)

Files Required

β”œβ”€β”€ Dockerfile
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ app.py
β”œβ”€β”€ server.py
β”œβ”€β”€ elevenlabs_voices.py
β”œβ”€β”€ src/
β”œβ”€β”€ mcp/
└── ui/