Luna-Services

Drago-03/Luna-Services

3.2

If you are the rightful owner of Luna-Services and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Luna-service is a comprehensive MCP server designed to automate workflows, manage documentation, and streamline development processes.

Luna Services - Universal MCP System (BETA)

AI-Powered Development Assistant with AutoMCP Compatibility & Multi-IDE Support

Luna-Services is a comprehensive Universal Model Context Protocol (MCP) system that provides intelligent development assistance powered by Google Gemini AI, Supabase database backend, and multi-modal processing. Now fully compatible with AutoMCP by NapthaAI for seamless integration with MCP clients like Cursor and Claude Desktop.

🚀 Features

  • AutoMCP Compatible: Full compatibility with AutoMCP framework for standardized MCP server deployment
  • Universal MCP Integration: Complete Model Context Protocol implementation with Google Gemini 2.5 Flash
  • Naptha MCPaaS Ready: Deploy directly to Naptha's MCP-as-a-Service platform
  • Supabase Backend: Modern PostgreSQL database with real-time capabilities and Row Level Security
  • Voice-Enabled Development: Natural language voice commands for code generation and assistance
  • Multi-Modal Processing: Handle text, code, voice, and file inputs seamlessly
  • Real-time Code Generation: AI-powered code assistance with context awareness
  • Clerk + Supabase Authentication: Dual authentication system with secure user management
  • Intelligent Dashboard: Real-time activity tracking and project insights
  • Enterprise Ready: Scalable architecture with Docker support and monitoring

🔗 AutoMCP Integration

Luna Services is now fully compatible with the AutoMCP ecosystem:

  • MCP Server: Standardized MCP server implementation (run_mcp.py)
  • Client Integration: Works with Cursor IDE, Claude Desktop, and other MCP clients
  • MCPaaS Deployment: One-click deployment to Naptha's cloud platform
  • GitHub Integration: Direct execution from GitHub repositories

Quick AutoMCP Start

# Install AutoMCP
pip install naptha-automcp

# Run the MCP server
python run_mcp.py

# Or use AutoMCP CLI
automcp serve -t sse

# Deploy to Naptha MCPaaS
# Visit https://labs.naptha.ai/ and connect your GitHub repo

For detailed AutoMCP integration instructions, see .

🏗️ Architecture

  • Frontend: React 18 + TypeScript + Chakra UI + Vite
  • Backend: FastAPI + Python 3.11+ + Universal MCP Protocol
  • Database: Supabase (PostgreSQL) + Redis for caching
  • AI Integration: Google Gemini 2.0 Flash + LangChain + Voice Processing
  • Authentication: Clerk Authentication + Supabase Auth with tier-based access
  • Containerization: Docker + Docker Compose with NVIDIA GPU support
  • Voice Processing: NVIDIA Riva (optional) for advanced TTS/ASR

🗄️ Database Integration

Luna Services uses Supabase as its primary database backend, providing:

  • PostgreSQL Database: Robust relational database with JSON support
  • Real-time Subscriptions: Live updates for collaborative features
  • Row Level Security: Fine-grained access control at the database level
  • Auto-generated APIs: RESTful and GraphQL APIs for database operations
  • Authentication: Built-in user management and session handling
  • Storage: File and media storage capabilities

Database Schema

TablePurposeFeatures
usersUser profiles and metadataExtends Supabase auth.users
projectsProject managementJSONB settings, status tracking
project_membersTeam membershipRole-based access control
automation_jobsAutomation workflowsScheduling, parameters
job_executionsExecution historyLogs, status, performance
api_keysAPI access managementScoped permissions

🚀 Quick Start

Prerequisites

  • Node.js 18+ (Required for frontend)
  • Python 3.9+ (Required for backend)
  • Supabase Account (Free tier available)
  • Docker & Docker Compose (Recommended for full deployment)
  • Git (For version control)

Option 1: Automated Setup (Recommended)

# Clone the repository
git clone https://github.com/Drago-03/Luna-Services.git
cd Luna-Services

# Run the comprehensive setup script
./scripts/setup-supabase-complete.sh

This script will:

  • ✅ Install all frontend and backend dependencies
  • ✅ Resolve Python dependency conflicts
  • ✅ Set up environment variables with Supabase configuration
  • ✅ Create Python virtual environment
  • ✅ Test the installation
  • ✅ Provide next steps and documentation links

Option 2: Manual Setup

1. Install Dependencies
# Frontend dependencies
npm install

# Backend dependencies
cd backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cd ..
2. Configure Environment
# Copy and edit environment file
cp .env.example .env
# Edit .env with your Supabase credentials
3. Set Up Supabase Database
  1. Create a Supabase project at app.supabase.com
  2. Get your project credentials
  3. Run database migrations from supabase/migrations/
  4. Configure Row Level Security policies

📚 Detailed Setup Guide:

Option 3: Docker Deployment

# Start with Docker Compose
docker-compose up -d

# Or use the start script with Docker
./start.sh --docker
  • ✅ Set up environment configuration
  • ✅ Run health checks
  • ✅ Display all access URLs

Option 2: Docker Deployment

# Start with Docker Compose
./start.sh --docker

# Or use production mode
./start.sh --production --docker

Option 3: Selective Startup

# Start only backend
./start.sh --backend-only

# Start only frontend  
./start.sh --frontend-only

# Start in production mode
./start.sh --production

📱 Access Points

After successful setup, access the system at:

🧪 Testing Your Setup

Verify Database Connection

# Test Supabase connection
python scripts/test-supabase.py

# Expected output:
# ✅ All required environment variables are set
# ✅ Supabase client created successfully
# ✅ Database connection successful
# 🎉 All tests passed! Supabase is properly configured.

Test API Endpoints

# Test backend health
curl http://localhost:8000/health

# Test authentication endpoint
curl http://localhost:8000/api/auth/status

Verify Frontend

  1. Open http://localhost:3000 in your browser
  2. You should see the Luna Services dashboard
  3. Authentication should work with Clerk/Supabase integration

🛠️ Development Workflow

Daily Development

# 1. Check service status
./dev.sh status

# 2. Start services if needed
./start.sh

# 3. Monitor logs
./dev.sh logs --follow

# 4. Test database after changes
python scripts/test-supabase.py

# 5. Restart services after code changes
./dev.sh restart --frontend
./dev.sh restart --backend

# 6. Clean shutdown
./stop.sh

Environment Management

# Update environment variables
cp .env .env.backup
# Edit .env with new values
./dev.sh restart  # Apply changes

# Switch between environments
cp .env.development .env  # Development
cp .env.production .env   # Production

📊 Database Operations

Migrations

# Apply new migrations (Supabase Dashboard)
# 1. Go to SQL Editor in Supabase Dashboard
# 2. Run migration files in order from supabase/migrations/

# Check migration status
supabase db diff --local  # If using Supabase CLI

Backup and Restore

# Backup (through Supabase Dashboard)
# Go to Settings > Database > Backups

# Local backup using CLI
supabase db dump > backup.sql

# Restore from backup
supabase db reset --db-url "your-backup-url"

Monitoring

# View database logs
# Go to Supabase Dashboard > Logs

# Monitor performance
# Go to Supabase Dashboard > Reports

# Check RLS policies
# Go to Supabase Dashboard > Authentication > Policies

� Documentation

Core Documentation

  • - Comprehensive documentation hub
  • - Complete database setup
  • - How to contribute to the project
  • - Complete API documentation

Quick Start Guides

  • - Step-by-step installation
  • - Environment setup
  • - Create your first project
  • - Local development environment

Deployment

  • - Container deployment
  • - Production configuration
  • - Application monitoring
  • - Security best practices

Legal and Policies

  • - How we handle your data
  • - Terms and conditions
  • - Cookie usage policy
  • - Security guidelines and reporting

�🔧 Development

Frontend Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Run tests
npm test

# Lint code
npm run lint

Backend Development

# Set up Python environment
cd backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Start development server
uvicorn app.main:app --reload

# Run tests
pytest

# Lint code
flake8

Database Development

# Test database connection
python scripts/test-supabase.py

# Access Supabase dashboard
# Go to https://app.supabase.com

# View database schema
# Supabase Dashboard > Database > Tables

# Monitor real-time data
# Supabase Dashboard > Database > Replication

🚀 Production Deployment

Docker Production

# Build production images
docker-compose -f docker-compose.yml -f docker-compose.prod.yml build

# Start production services
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

# View logs
docker-compose logs -f

Environment Variables for Production

# Production Supabase Configuration
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-production-anon-key
SUPABASE_SERVICE_KEY=your-production-service-key

# Security Settings
JWT_SECRET_KEY=your-production-jwt-secret
CORS_ORIGINS=["https://yourdomain.com"]
ENVIRONMENT=production
DEBUG=false

# Database Connection (use pooler for production)
DATABASE_URL=postgresql://postgres.project:password@pooler.supabase.com:6543/postgres

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and ensure tests pass
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Open a Pull Request

Development Guidelines

  • Follow the existing code style
  • Write tests for new features
  • Update documentation as needed
  • Ensure all tests pass before submitting
  • Follow the

📊 Project Status

  • Version: 1.0.0 (Development)
  • Status: ✅ Active Development
  • Database: ✅ Supabase Integrated
  • Authentication: ✅ Clerk + Supabase Auth
  • Frontend: ✅ React + TypeScript
  • Backend: ✅ FastAPI + Python
  • Documentation: ✅ Comprehensive Wiki

Recent Updates

  • ✅ Supabase database integration complete
  • ✅ Row Level Security policies implemented
  • ✅ Authentication system working
  • ✅ Real-time features enabled
  • ✅ Comprehensive documentation added
  • ✅ Setup automation scripts created

🔒 Security

Luna Services takes security seriously:

  • Row Level Security: Database-level access control
  • Authentication: Multi-provider authentication system
  • Encryption: Data encrypted in transit and at rest
  • CORS Protection: Configurable cross-origin request protection
  • Rate Limiting: API rate limiting and abuse prevention
  • Security Headers: Comprehensive security headers implemented

Report security issues to: security@luna-services.dev

📞 Support

Community Support

Direct Support

  • Email: support@luna-services.dev
  • Response Time: 24-48 hours for non-urgent issues
  • Enterprise Support: Available for production deployments

Getting Help

  1. Check the for comprehensive guides
  2. Search Issues for existing solutions
  3. Join Discussions for community help
  4. Create a new issue if you can't find a solution

📄 License

This project is licensed under the MIT License - see the file for details.

🙏 Acknowledgments

  • Supabase - For providing an excellent backend-as-a-service platform
  • Google Gemini - For AI capabilities and natural language processing
  • Clerk - For seamless authentication and user management
  • FastAPI - For the high-performance Python web framework
  • React Team - For the excellent frontend framework
  • Open Source Community - For the amazing tools and libraries

Made with ❤️ by the Luna Services Team

For more information, visit our or check out the to get involved!

Last Updated: January 29, 2025
Version: 1.0.0

Backend Development

cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload

Running Tests

# Frontend tests
npm test

# Backend tests
cd backend
pytest

🐳 Production Deployment

Docker Compose (Recommended)

# Production deployment
docker-compose -f docker-compose.prod.yml up -d

# With SSL certificates
docker-compose -f docker-compose.prod.yml -f docker-compose.ssl.yml up -d

Kubernetes

# Apply Kubernetes manifests
kubectl apply -f k8s/

🔒 Security

Luna-service implements enterprise-grade security:

  • JWT-based authentication
  • Role-based access control (RBAC)
  • API rate limiting
  • Data encryption at rest and in transit
  • Comprehensive audit logging
  • Security headers and CORS protection

🔗 Integrations

GitHub Integration

integrations:
  github:
    enabled: true
    webhook_url: "https://your-domain.com/api/webhooks/github"
    repository: "your-org/your-repo"

Slack Notifications

integrations:
  slack:
    enabled: true
    webhook_url: "https://hooks.slack.com/services/..."
    channel: "#luna-notifications"

Jira Integration

integrations:
  jira:
    enabled: true
    server_url: "https://your-org.atlassian.net"
    project_key: "LUNA"

📊 Monitoring

Luna-service includes comprehensive monitoring:

  • Prometheus metrics endpoint: /api/metrics
  • Health check endpoint: /health
  • Structured logging with request tracing
  • Performance monitoring and alerting

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the file for details.

🆘 Support

🏆 Acknowledgments