mcnoaa-tides/Makefile
Ryan Malloy 77ad2a6bd1 Fix MCP endpoint for Claude.ai connector (serve at root path)
FastMCP defaults to /mcp but Claude.ai sends requests to /.
Add MCP_PATH env var to configure the endpoint path, set to /
in docker-compose for the connector subdomain.
2026-02-23 18:25:14 -07:00

39 lines
905 B
Makefile

.PHONY: dev prod build logs down clean restart shell-docs shell-mcp
.DEFAULT_GOAL := dev
dev:
@echo "Starting mcnoaa-tides in development mode..."
APP_ENV=dev docker compose up -d --build
@echo "Docs: https://$(shell grep DOMAIN .env | head -1 | cut -d= -f2)"
@echo "MCP: https://mcp.$(shell grep DOMAIN .env | head -1 | cut -d= -f2)/"
@sleep 2
docker compose logs -f
prod:
@echo "Starting mcnoaa-tides in production mode..."
APP_ENV=prod docker compose up -d --build
@echo "Docs: https://$(shell grep DOMAIN .env | head -1 | cut -d= -f2)"
@echo "MCP: https://mcp.$(shell grep DOMAIN .env | head -1 | cut -d= -f2)/"
@sleep 3
docker compose logs --tail=20
build:
docker compose build
logs:
docker compose logs -f
down:
docker compose down
clean:
docker compose down -v --rmi local
restart: down dev
shell-docs:
docker compose exec docs sh
shell-mcp:
docker compose exec mcp sh