diff --git a/Makefile b/Makefile index e4dfc35..59c3fe2 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,10 @@ build: @echo "$(YELLOW)Building $(BINARY_NAME)...$(NC)" go build -ldflags "-X main.Version=$(VERSION)" -o bin/$(BINARY_NAME) ./cmd/mcptools +install-templates: + mkdir -p $(HOME)/.mcpt/templates + cp -r templates/* $(HOME)/.mcpt/templates/ + test: check-go @echo "$(YELLOW)Running tests...$(NC)" go test -v ./... diff --git a/README.md b/README.md index 8acdc5f..fd2decc 100644 --- a/README.md +++ b/README.md @@ -316,7 +316,7 @@ mcp tools node build/index.js Project templates are stored in either: - Local `./templates/` directory -- User's home directory: `~/.mcputils/templates/` +- User's home directory: `~/.mcpt/templates/` - Next to the MCP Tools executable When installing via Homebrew, templates are automatically installed to your home directory. But if you use source install, you need to run `make install-templates`. diff --git a/templates/README.md b/templates/README.md index cba322f..60240d0 100644 --- a/templates/README.md +++ b/templates/README.md @@ -7,7 +7,7 @@ This directory contains templates for creating MCP (Model Context Protocol) serv The templates will be automatically found if they are in one of these locations: 1. `./templates/`: Local project directory -2. `~/.mcputils/templates/`: User's home directory +2. `~/.mcpt/templates/`: User's home directory 3. Next to the executable in the installed location To install templates to your home directory: