-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (47 loc) · 1.95 KB
/
Makefile
File metadata and controls
66 lines (47 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: help install dev test lint format clean build run docker-build docker-run
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies with Poetry
poetry install
dev: ## Install development dependencies
poetry install --with dev
test: ## Run tests with pytest
poetry run pytest
test-cov: ## Run tests with coverage report
poetry run pytest --cov=azure_mcp_server --cov-report=html --cov-report=term
lint: ## Run linters (ruff, mypy)
poetry run ruff check src/ tests/
poetry run mypy src/
format: ## Format code with black and ruff
poetry run black src/ tests/
poetry run ruff check --fix src/ tests/
clean: ## Clean build artifacts and cache
rm -rf dist/ build/ *.egg-info .pytest_cache .mypy_cache .coverage htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
build: ## Build distribution packages
poetry build
run: ## Run the server locally
poetry run azure-mcp-server
docker-build: ## Build Docker image
docker build -t azure-mcp-server:latest .
docker-run: ## Run Docker container
docker-compose up -d
docker-stop: ## Stop Docker container
docker-compose down
docker-logs: ## View Docker logs
docker-compose logs -f
setup-env: ## Create .env file from example
cp .env.example .env
@echo "Please edit .env file with your Azure credentials"
azure-setup: ## Interactive Azure setup with login and subscription selection
./scripts/azure-setup.sh
quick-login: ## Quick Azure login and auto-configure .env
./scripts/quick-login.sh
validate: ## Validate configuration
poetry run python -c "from azure_mcp_server.config import get_config; config = get_config(); print('✅ Configuration valid')"
validate-azure: ## Validate Azure credentials and configuration
./scripts/validate-azure.sh