Skip to content

Commit 35bd41a

Browse files
fix(ci): Fix dev-local target in the Makefile (#259)
<!-- Provide a brief summary of your changes --> Hi Folks, thanks for the great work on MCP Registry! While running it locally, I noticed a bug with the `make dev-local` command. ``` $ make dev-local go run ./cmd/registry/main.go # command-line-arguments cmd/registry/main.go:29:36: undefined: Version cmd/registry/main.go:30:34: undefined: GitCommit ``` ## Motivation and Context <!-- Why is this change needed? What problem does it solve? --> Command for running MCP Registry locally is broken. ## How Has This Been Tested? <!-- Have you tested this in a real application? Which scenarios were tested? --> ## Breaking Changes <!-- Will users need to update their code or configurations? --> ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [x] I have added appropriate error handling - [x] I have added or updated documentation as needed ## Additional context <!-- Add any other context, implementation notes, or design decisions --> cc @domdomegg @sridharavinash @tadasant Signed-off-by: Andrey Velichkevich <[email protected]> Co-authored-by: adam jones <[email protected]>
1 parent ff3edee commit 35bd41a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dev-compose: ## Start development environment with Docker Compose (builds image
5858
docker compose up --build
5959

6060
dev-local: ## Run registry locally (requires MongoDB)
61-
go run cmd/registry/main.go
61+
go run ./cmd/registry
6262

6363
# Cleanup
6464
clean: ## Clean build artifacts and coverage files

scripts/test_endpoints.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo "=================================================="
88
echo "This script expects the MCP Registry server to be running locally."
99
echo "Please ensure the server is started using one of the following methods:"
1010
echo " • Docker Compose: docker compose up"
11-
echo " • Direct execution: go run cmd/registry/main.go"
11+
echo " • Direct execution: go run ./cmd/registry"
1212
echo " • Built binary: ./build/registry"
1313
echo "=================================================="
1414
echo ""

scripts/test_publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo "=================================================="
88
echo "This script expects the MCP Registry server to be running locally."
99
echo "Please ensure the server is started using one of the following methods:"
1010
echo " • Docker Compose: docker compose up"
11-
echo " • Direct execution: go run cmd/registry/main.go"
11+
echo " • Direct execution: go run ./cmd/registry"
1212
echo " • Built binary: ./build/registry"
1313
echo ""
1414
echo "REQUIRED: Set the BEARER_TOKEN environment variable with a valid GitHub token"

0 commit comments

Comments
 (0)