.PHONY: help build run run-local down inspect ci-lint-test

LOCAL_COMPOSE = -f docker-compose.yaml -f docker-compose.local.yaml

help:
	@echo "Available targets:"
	@echo "  make build     - Build the image (one image, all configs bundled)"
	@echo "  make run       - Run on :8080 with the QA config (needs .env)"
	@echo "  make run-local - Run on :8080 with the local config (needs .env + a reachable router)"
	@echo "  make down      - Stop and remove the running compose containers"
	@echo "  make inspect   - Open MCP Inspector (connection pre-filled from inspector.config.json)"

build:
	docker compose build

run:
	docker compose up

run-local:
	docker compose $(LOCAL_COMPOSE) up --build -d

down:
	docker compose down
	docker compose $(LOCAL_COMPOSE) down

inspect:
	npx @modelcontextprotocol/inspector --config inspector.config.json --server apollo-mcp

ci-lint-test:
	echo 'nothing yet.'
