Skip to content

Commit 7ebdc56

Browse files
committed
update bin name alias to mcpt
1 parent 03e484c commit 7ebdc56

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RED=\033[0;31m
66
NC=\033[0m # No Color
77

88
BINARY_NAME=mcp
9+
ALIAS_NAME=mcpt
910
VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
1011
BUILD_TIME=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
1112
LDFLAGS=-ldflags "-X main.Version=$(VERSION) -X main.BuildTime=$(BUILD_TIME)"
@@ -43,6 +44,13 @@ build-all: clean
4344
install:
4445
@echo "$(BLUE)Installing $(BINARY_NAME)...$(NC)"
4546
go install $(LDFLAGS) ./cmd/mcptools
47+
@echo "$(BLUE)Creating $(ALIAS_NAME) alias...$(NC)"
48+
@if [ -f "$(shell go env GOPATH)/bin/$(BINARY_NAME)" ]; then \
49+
ln -sf "$(shell go env GOPATH)/bin/$(BINARY_NAME)" "$(shell go env GOPATH)/bin/$(ALIAS_NAME)"; \
50+
echo "$(GREEN)Alias $(ALIAS_NAME) created successfully in $(shell go env GOPATH)/bin/$(NC)"; \
51+
else \
52+
echo "$(RED)Warning: $(BINARY_NAME) binary not found in $(shell go env GOPATH)/bin/$(NC)"; \
53+
fi
4654

4755
clean:
4856
@echo "$(RED)Cleaning build artifacts...$(NC)"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ brew tap f/mcptools
3030
brew install mcp
3131
```
3232

33+
> ❕ The binary is installed as `mcp` but can also be accessed as `mcpt` to avoid conflicts with other tools that might use the `mcp` command name.
34+
3335
### From Source
3436

3537
```bash
3638
go install github.com/f/mcptools/cmd/mcptools@latest
3739
```
3840

41+
The binary will be installed as `mcptools` but can be aliased to `mcpt` for convenience and to avoid conflicts with other tools that might use the `mcp` command name.
42+
3943
## Usage
4044

4145
MCP is a command line interface for interacting with MCP servers.

0 commit comments

Comments
 (0)