Files
Template-MCP/Makefile
T
Jonathan Miller 91b78f8da1 feat: initial MCP server template with placeholder-driven scaffolding
Template repository for creating MokoStandards-compliant MCP servers.
Includes 4-file src/ structure (index, client, config, types), setup
wizard, example tools, 12 CI/CD workflows, full docs, and {{placeholder}}
tokens for search-and-replace customization.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-07 14:39:19 -05:00

57 lines
1.3 KiB
Makefile

# MCP Server Makefile
# Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
# SPDX-License-Identifier: GPL-3.0-or-later
PROJECT_NAME := {{PROJECT_NAME}}
PROJECT_VERSION := 1.0.0
NPM := npm
COLOR_RESET := \033[0m
COLOR_GREEN := \033[32m
COLOR_BLUE := \033[34m
.PHONY: help
help: ## Show this help message
@echo "$(COLOR_BLUE)$(PROJECT_NAME) v$(PROJECT_VERSION)$(COLOR_RESET)"
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " $(COLOR_BLUE)%-20s$(COLOR_RESET) %s\n", $$1, $$2}'
@echo ""
.PHONY: install-deps
install-deps: ## Install dependencies
@$(NPM) install
@echo "$(COLOR_GREEN)✓ Dependencies installed$(COLOR_RESET)"
.PHONY: build
build: ## Build TypeScript
@$(NPM) run build
@echo "$(COLOR_GREEN)✓ Build complete$(COLOR_RESET)"
.PHONY: dev
dev: ## Watch and rebuild on changes
@$(NPM) run dev
.PHONY: clean
clean: ## Clean build artifacts
@rm -rf dist
@echo "$(COLOR_GREEN)✓ Cleaned$(COLOR_RESET)"
.PHONY: setup
setup: ## Run interactive setup wizard
@$(NPM) run setup
.PHONY: start
start: ## Start the MCP server
@$(NPM) run start
.PHONY: lint
lint: ## Run linter
@$(NPM) run lint
.PHONY: ci
ci: install-deps build ## Run CI pipeline
@echo "$(COLOR_GREEN)✓ CI pipeline complete$(COLOR_RESET)"
.DEFAULT_GOAL := help