-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.bat
More file actions
45 lines (41 loc) · 1.26 KB
/
Copy pathcompile.bat
File metadata and controls
45 lines (41 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
echo ============================================
echo GitHub MCP Server v4.0 - Build (Windows)
echo ============================================
echo.
REM Verify Go
go version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Go is not installed
exit /b 1
)
echo [1/3] Cleaning dependencies...
go mod tidy
echo [2/3] Compiling for Windows...
REM Read version from VERSION file if present, otherwise default to "dev"
set VERSION=dev
if exist VERSION (
set /p VERSION=<VERSION
)
go build -ldflags="-s -w -X github.com/scopweb/mcp-go-github/internal/server.Version=%VERSION%" -o github-mcp-server-v4.exe ./cmd/github-mcp-server/main.go
if %errorlevel% neq 0 (
echo [ERROR] Compilation failed
exit /b 1
)
echo [3/3] Verifying build...
github-mcp-server-v4.exe --help >nul 2>&1
echo.
echo ============================================
echo Build successful: github-mcp-server-v4.exe
echo ============================================
echo.
echo v4.0 Features:
echo - 26 consolidated tools (85 operations)
echo - Operation parameter pattern (reduces AI confusion)
echo - 4 admin tools with safety system (22 operations)
echo - Git auto-detection + hybrid mode
echo - Multi-profile support
echo.
echo To build for Mac: build-mac.bat
echo.
pause