Skip to main content
Glama

MCP Market Statistics Server

by whdghk1907
Makefile2.47 kB
# Makefile for MCP Market Statistics Server .PHONY: help install test lint format clean build docker-build docker-run # Default target help: ## Show this help message @echo 'Usage: make [target]' @echo '' @echo 'Targets:' @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST) # Development setup install: ## Install development dependencies python -m pip install --upgrade pip pip install -r requirements.txt pip install asyncpg redis safety bandit install-dev: install ## Install development dependencies including testing tools pip install pre-commit pre-commit install # Code quality lint: ## Run code linting flake8 src tests --max-line-length=88 --extend-ignore=E203,W503 black --check src tests isort --check-only src tests format: ## Format code black src tests isort src tests security: ## Run security checks safety check --file requirements.txt bandit -r src/ -f json -o bandit-report.json # Testing test: ## Run tests pytest tests/ -v test-cov: ## Run tests with coverage pytest tests/ -v --cov=src --cov-report=xml --cov-report=html --cov-report=term-missing test-integration: ## Run integration tests (requires running services) pytest tests/ -v -k "integration" --cov=src # Building build: ## Build Python package python -m build docker-build: ## Build Docker image docker build -t mcp-market-statistics:latest . docker-run: docker-build ## Run Docker container docker run --rm -p 8000:8000 \ -e TIMESCALE_DB_HOST=host.docker.internal \ -e REDIS_HOST=host.docker.internal \ mcp-market-statistics:latest # Database setup db-setup: ## Set up TimescaleDB schema python -c "from src.utils.database import setup_schema; import asyncio; asyncio.run(setup_schema())" # Cleanup clean: ## Clean up build artifacts rm -rf build/ rm -rf dist/ rm -rf *.egg-info/ rm -rf .pytest_cache/ rm -rf htmlcov/ rm -f coverage.xml rm -f bandit-report.json find . -type d -name __pycache__ -exec rm -rf {} + find . -type f -name "*.pyc" -delete clean-docker: ## Clean up Docker images docker rmi mcp-market-statistics:latest || true docker system prune -f # Development commands dev-server: ## Run development server python -m src.server --debug dev-collect: ## Run data collection test python -m src.collectors.market_collector --test # CI/CD helpers ci-test: lint security test-cov ## Run full CI test suite pre-commit: lint format security ## Run pre-commit checks

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/whdghk1907/mcp-market-statistics'

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