Skip to main content
Glama

Hue MCP Server

by rmrfslashbin
Makefileโ€ข5.65 kB
.PHONY: help install dev build test test-coverage lint format type-check clean setup dist package # $(PNPM)path PNPM := $(HOME)/Library/pnpm/pnpm # Default target help: ## Show this help @echo "๐ŸŒˆ Hue MCP Server - Build Helper" @echo "" @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' install: ## Install dependencies with pnpm @echo "๐Ÿ“ฆ Installing dependencies..." $(PNPM) install dev: ## Start development server @echo "๐Ÿš€ Starting development server..." $(PNPM) run dev build: clean ## Build for production @echo "๐Ÿ”จ Building for production..." $(PNPM) run build @echo "" @echo "โœ… Build complete!" @echo "" @echo "๐Ÿ“‚ Distribution files are in: ./dist/" @echo " Main entry point: ./dist/index.js" @echo "" @echo "๐Ÿš€ To install globally (recommended):" @echo " sudo ln -sf $(PWD)/dist/index.js /usr/local/bin/hue-mcp" @echo "" @echo "๐Ÿ“‹ Or copy entire project:" @echo " sudo cp -r $(PWD) /usr/local/lib/hue-mcp" @echo " sudo ln -sf /usr/local/lib/hue-mcp/dist/index.js /usr/local/bin/hue-mcp" @echo "" dist: build ## Create distribution and installation instructions @echo "๐Ÿ“ฆ Creating distribution..." @echo "" @echo "โœ… Distribution ready!" @echo "" @echo "๐Ÿš€ Recommended installation (symlink to built project):" @echo " sudo ln -sf $(PWD)/dist/index.js /usr/local/bin/hue-mcp" @echo "" @echo "๐Ÿ“ฆ Alternative - standalone package:" @echo " make package" @echo "" @echo "๐Ÿ“‹ Manual installation:" @echo " 1. Copy project: sudo cp -r $(PWD) /usr/local/lib/hue-mcp" @echo " 2. Install deps: cd /usr/local/lib/hue-mcp && sudo $(PNPM) install --prod" @echo " 3. Link binary: sudo ln -sf /usr/local/lib/hue-mcp/dist/index.js /usr/local/bin/hue-mcp" package: build ## Create standalone distributable package @echo "๐Ÿ“ฆ Creating standalone package with dependencies..." @rm -rf dist-package @mkdir -p dist-package @cp -r dist/* dist-package/ @cp package.json dist-package/ @cp README.md dist-package/ @cp LICENSE dist-package/ @cp pnpm-lock.yaml dist-package/ 2>/dev/null || true @echo "#!/usr/bin/env node" > dist-package/hue-mcp @echo "import './index.js';" >> dist-package/hue-mcp @chmod +x dist-package/hue-mcp @echo "๐Ÿ“ฆ Installing production dependencies..." @cd dist-package && $(PNPM) install --prod --frozen-lockfile @echo "๐Ÿ“ฆ Creating tarball..." @tar -czf hue-mcp-dist.tar.gz -C dist-package . @echo "" @echo "โœ… Standalone package created!" @echo "" @echo "๐Ÿ“ฆ Package: hue-mcp-dist.tar.gz" @echo "๐Ÿš€ To install:" @echo " sudo mkdir -p /usr/local/lib/hue-mcp" @echo " sudo tar -xzf hue-mcp-dist.tar.gz -C /usr/local/lib/hue-mcp" @echo " sudo ln -sf /usr/local/lib/hue-mcp/hue-mcp /usr/local/bin/hue-mcp" test: ## Run tests @echo "๐Ÿงช Running tests..." $(PNPM) run test test-coverage: ## Run tests with coverage @echo "๐Ÿงช Running tests with coverage..." $(PNPM) run test:coverage @echo "" @echo "๐Ÿ“Š Coverage report available at: ./coverage/index.html" lint: ## Run linting @echo "๐Ÿ” Running ESLint..." $(PNPM) run lint lint-fix: ## Run linting with auto-fix @echo "๐Ÿ”ง Running ESLint with auto-fix..." $(PNPM) run lint:fix format: ## Format code with Prettier @echo "๐Ÿ’… Formatting code..." $(PNPM) run format type-check: ## Run TypeScript type checking @echo "๐Ÿ” Running TypeScript type check..." $(PNPM) run typecheck setup: install ## Setup development environment @echo "โš™๏ธ Setting up development environment..." @echo "โœ… Dependencies installed" @echo "" @echo "๐ŸŒˆ Hue MCP Server is ready for development!" @echo "" @echo "Next steps:" @echo " make dev - Start development server" @echo " make test - Run tests" @echo " make build - Build for production" setup-web: ## Launch setup wizard @echo "๐ŸŒ Launching web setup wizard..." $(PNPM) run setup:web setup-cli: ## Launch CLI setup @echo "โšก Launching CLI setup..." $(PNPM) run setup clean: ## Clean build artifacts and caches @echo "๐Ÿงน Cleaning build artifacts..." $(PNPM) run clean @rm -rf coverage @rm -rf node_modules/.cache @rm -rf dist-package @rm -f hue-mcp-dist.tar.gz @echo "โœ… Clean complete" clean-all: clean ## Clean everything including node_modules @echo "๐Ÿงน Deep cleaning (including node_modules)..." @rm -rf node_modules @rm -rf setup-wizard/node_modules @echo "โœ… Deep clean complete" audit: ## Run security audit @echo "๐Ÿ”’ Running security audit..." $(PNPM)audit update: ## Update dependencies @echo "๐Ÿ“ฆ Updating dependencies..." $(PNPM)update check: type-check lint test ## Run all checks (type-check, lint, test) @echo "" @echo "โœ… All checks passed!" ci: install check build ## Run CI pipeline (install, check, build) @echo "" @echo "โœ… CI pipeline complete!" # Development helpers watch-test: ## Run tests in watch mode @echo "๐Ÿ‘€ Running tests in watch mode..." $(PNPM) run test --watch debug: ## Build and show debug info @echo "๐Ÿ› Building with debug info..." @make build @echo "" @echo "Debug Information:" @echo "Node version: $(shell node --version)" @echo "$(PNPM)version: $(shell $(PNPM)--version)" @echo "Dist size: $(shell du -sh dist 2>/dev/null || echo 'not found')" @echo "Main files:" @find dist -name "*.js" -o -name "*.d.ts" | head -10 # Quick actions quick-build: ## Quick build without clean @echo "โšก Quick build..." $(PNPM) run build serve: build ## Build and serve locally for testing @echo "๐ŸŒ Building and serving locally..." @cd dist && python3 -m http.server 8080 || python -m SimpleHTTPServer 8080

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rmrfslashbin/hue-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server