ecomcp / docs /QUICK_REFERENCE.md
vinhnx90's picture
Project liftoff
0f6d44d

A newer version of the Gradio SDK is available: 6.1.0

Upgrade

EcoMCP Quick Reference

Fast access to key deployment & submission info


πŸš€ Deploy to HuggingFace Spaces (5 mins)

# 1. Create Space at https://huggingface.co/spaces
# 2. Clone it
git clone https://huggingface.co/spaces/[your-username]/ecomcp
cd ecomcp

# 3. Copy files
cp -r /path/to/ecomcp/src .
cp -r /path/to/ecomcp/docs .
cp /path/to/ecomcp/run_ui.py .
cp /path/to/ecomcp/requirements.txt .
cp SPACE_README_TEMPLATE.md README.md

# 4. Edit README.md with your info
nano README.md  # Update title, links, etc.

# 5. Push
git add .
git commit -m "Deploy EcoMCP"
git push origin main

# 6. Add API key secret
# Settings β†’ Repository secrets β†’ Add OPENAI_API_KEY

πŸ“‹ Pre-Submission Checklist

  • Space deployed and public
  • README.md has correct metadata (emoji, tags, sdk, app_file)
  • Track tag added: building-mcp-track-enterprise
  • OPENAI_API_KEY secret configured
  • All 5 tools working
  • Demo video (1-5 mins) recorded and linked
  • Social media post created and linked
  • No hardcoded API keys in code

πŸ“– Documentation Structure

Priority 1 (Essential)
β”œβ”€β”€ docs/DEPLOYMENT_GUIDE.md          β†’ Start here for HF Spaces
β”œβ”€β”€ docs/QUICK_START.md               β†’ 2-minute setup
└── HACKATHON_SUBMISSION_CHECKLIST.md β†’ Pre-submission

Priority 2 (Reference)
β”œβ”€β”€ docs/DEVELOPER_GUIDE.md           β†’ Architecture details
β”œβ”€β”€ docs/STRUCTURE.md                 β†’ Project layout
β”œβ”€β”€ docs/HUGGINGFACE_SPACES_SETUP.md β†’ Detailed HF guide
└── docs/CLAUDE_DESKTOP_SETUP.md      β†’ Desktop integration

Submission Templates
β”œβ”€β”€ SPACE_README_TEMPLATE.md          β†’ Copy to HF Space README
└── README.md                         β†’ Main documentation

🎯 The 5 Tools

Tool Purpose Input Output
Analyze Product Market insights Product name, category Analysis with positioning
Analyze Reviews Sentiment & insights Customer reviews Sentiment breakdown, recommendations
Generate Listing Product copy Product info Copy in multiple tones
Price Recommendation Pricing strategy Cost, margin Recommended price, strategy
Competitor Analysis Market positioning Product details Competitive landscape

πŸ“ Files You Need

Minimum for HF Space:

ecomcp/
β”œβ”€β”€ run_ui.py           ← Entry point
β”œβ”€β”€ requirements.txt    ← Dependencies
β”œβ”€β”€ README.md           ← Use SPACE_README_TEMPLATE.md
└── src/                ← All your code

For complete submission:

ecomcp/
β”œβ”€β”€ run_ui.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ README.md
β”œβ”€β”€ src/
β”œβ”€β”€ docs/               ← All guides
└── tests/              ← Optional

πŸ”‘ Environment Variables

Required:

OPENAI_API_KEY=sk-your-key-here

Optional (defaults work fine):

OPENAI_MODEL=gpt-4
OPENAI_MAX_TOKENS=800
OPENAI_TEMPERATURE=0.7

πŸ§ͺ Test Locally First

# Setup
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Run
export OPENAI_API_KEY="your-key"
python3 run_ui.py

# Visit: http://localhost:7860

πŸ“ README.md Frontmatter

Copy this exact YAML for HF Space:

---
title: EcoMCP - E-commerce MCP Server
emoji: πŸ’Ό
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.26.0
app_file: run_ui.py
pinned: true
tags:
  - building-mcp-track-enterprise
  - mcp
  - ecommerce
  - openai
---

🎬 Demo Video Checklist

  • 1-5 minutes long
  • Shows all 5 tools
  • Shows actual tool outputs
  • Clear audio
  • Professional presentation
  • Uploaded to public platform (YouTube, Loom, etc.)
  • Link ready to add to README

πŸ“± Social Media Post Template

πŸš€ Excited to announce EcoMCP! My MCP 1st Birthday Hackathon submission.

Building an MCP server for e-commerce intelligence:
πŸ“¦ Analyze Products
⭐ Analyze Reviews
✍️ Generate Listings
πŸ’° Price Optimization
πŸ” Competitor Analysis

Powered by OpenAI GPT-4/5.1

Try it: [Space Link]
#MCP #AI #Ecommerce #Hackathon

πŸ”’ Security Quick Check

  • No sk- keys in code
  • No .env file committed
  • API key only in HF secrets
  • No sensitive data in comments
  • No test credentials in code

⚑ Performance Targets

Metric Target Notes
Load time <5 sec HF Spaces startup
Tool response 2-5 sec Includes API latency
Memory <300MB Baseline usage
Uptime 99%+ HF Spaces reliability

🚨 Common Issues & Fixes

Issue Fix
"Module not found" Verify src/ exists with __init__.py
API key error Check Repository secrets, restart Space
Tool not showing Refresh browser, clear cache
Slow response Use GPT-3.5-turbo, reduce tokens
Connection timeout Check Space logs, upgrade hardware

πŸ“Š Hackathon Alignment

Track 1: Building MCP βœ…

  • Implements MCP 2024-11-05 spec
  • JSON-RPC 2.0 protocol
  • 5 fully functional tools
  • Production-ready code

Prize Alignment βœ…

  • OpenAI API ($1,000) - Full integration
  • Modal ($2,500) - Deployment ready
  • LlamaIndex ($1,000) - Foundation prepared

πŸ”— Key Links


πŸ“… Submission Deadline

November 30, 2025 at 11:59 PM UTC


βœ… Final Checklist

Before you submit:

Space & Code
β–‘ Space created and public
β–‘ Code pushed successfully
β–‘ Space shows "Built successfully"
β–‘ Interface loads in <5 seconds

Configuration
β–‘ OPENAI_API_KEY secret added
β–‘ README.md with correct metadata
β–‘ Track tag: building-mcp-track-enterprise

Functionality
β–‘ All 5 tools working
β–‘ No errors in console
β–‘ Reasonable response times
β–‘ Graceful error handling

Submission Materials
β–‘ Demo video (1-5 mins) - Recorded & Linked
β–‘ Social media post - Created & Linked
β–‘ Documentation - Complete & Clear

Quality Checks
β–‘ No hardcoded secrets
β–‘ Code is clean & readable
β–‘ Error messages are helpful
β–‘ UI is polished & intuitive

Ready to Submit? β†’ YES βœ…

Last Updated: November 27, 2025

Questions? Check the full guides in /docs or join Discord