feat(Makefile): add initial Makefile with help and run-inspector targets

- Introduce a Makefile to streamline project commands
- Add help target to display available commands
- Include run-inspector target for running the MCP inspector
This commit is contained in:
Sooty 2025-10-21 20:05:15 +01:00
parent bf53cc2ef4
commit 02a5c47a27
1 changed files with 14 additions and 0 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
.PHONY: help
.DEFAULT_GOAL := help
# initialise .env file for all targets if it exists
-include .env
help: ## Show this help.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# Document each target that should appear in help using a comment placed after the target's colon, starting with '##' (as shown above).
# Targets without such a comment will not appear in the help output.
run-inspector: ## Run the MCP inspector.
@npx @modelcontextprotocol/inspector -e DISCORD_TOKEN=$(DISCORD_TOKEN)