Files
dss/tools/dss_mcp/start.sh
Digital Production Factory 276ed71f31 Initial commit: Clean DSS implementation
Migrated from design-system-swarm with fresh git history.
Old project history preserved in /home/overbits/apps/design-system-swarm

Core components:
- MCP Server (Python FastAPI with mcp 1.23.1)
- Claude Plugin (agents, commands, skills, strategies, hooks, core)
- DSS Backend (dss-mvp1 - token translation, Figma sync)
- Admin UI (Node.js/React)
- Server (Node.js/Express)
- Storybook integration (dss-mvp1/.storybook)

Self-contained configuration:
- All paths relative or use DSS_BASE_PATH=/home/overbits/dss
- PYTHONPATH configured for dss-mvp1 and dss-claude-plugin
- .env file with all configuration
- Claude plugin uses ${CLAUDE_PLUGIN_ROOT} for portability

Migration completed: $(date)
🤖 Clean migration with full functionality preserved
2025-12-09 18:45:48 -03:00

37 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# DSS MCP Server Startup Script
set -e
# Get script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# Change to project root
cd "$PROJECT_ROOT"
# Ensure logs directory exists
mkdir -p "$PROJECT_ROOT/.dss/logs"
# Log startup
echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting DSS MCP Server"
echo "$(date '+%Y-%m-%d %H:%M:%S') - Project root: $PROJECT_ROOT"
echo "$(date '+%Y-%m-%d %H:%M:%S') - Python: $(which python3)"
echo "$(date '+%Y-%m-%d %H:%M:%S') - Python version: $(python3 --version)"
# Check for required dependencies
if ! python3 -c "import mcp" 2>/dev/null; then
echo "$(date '+%Y-%m-%d %H:%M:%S') - ERROR: MCP library not found. Install with: pip install mcp"
exit 1
fi
if ! python3 -c "import httpx" 2>/dev/null; then
echo "$(date '+%Y-%m-%d %H:%M:%S') - WARNING: httpx not found. Install with: pip install httpx"
echo "$(date '+%Y-%m-%d %H:%M:%S') - Debug tools will not work without httpx"
fi
# Start MCP server
echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting MCP server on ${DSS_MCP_HOST:-0.0.0.0}:${DSS_MCP_PORT:-3457}"
exec python3 -m tools.dss_mcp.server