Upload folder using huggingface_hub
Browse files- Dockerfile +1 -4
- cmd/github-mcp-server/main.go +1 -1
- go.mod +1 -1
Dockerfile
CHANGED
|
@@ -20,11 +20,8 @@ RUN rm -f go.sum \
|
|
| 20 |
&& go mod tidy \
|
| 21 |
&& go mod verify
|
| 22 |
|
| 23 |
-
# Vendor dependencies
|
| 24 |
-
RUN go mod vendor
|
| 25 |
-
|
| 26 |
# Build the Go binary
|
| 27 |
-
RUN CGO_ENABLED=0 GOOS=linux go build -
|
| 28 |
|
| 29 |
# Final stage
|
| 30 |
FROM alpine:latest
|
|
|
|
| 20 |
&& go mod tidy \
|
| 21 |
&& go mod verify
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# Build the Go binary
|
| 24 |
+
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o github-mcp-server ./cmd/github-mcp-server
|
| 25 |
|
| 26 |
# Final stage
|
| 27 |
FROM alpine:latest
|
cmd/github-mcp-server/main.go
CHANGED
|
@@ -12,7 +12,7 @@ import (
|
|
| 12 |
"time"
|
| 13 |
|
| 14 |
"github.com/mark3labs/mcp-go/mcp" // Fixed import path
|
| 15 |
-
"github.com/mark3labs/mcp-go/
|
| 16 |
"github.com/spf13/viper"
|
| 17 |
)
|
| 18 |
|
|
|
|
| 12 |
"time"
|
| 13 |
|
| 14 |
"github.com/mark3labs/mcp-go/mcp" // Fixed import path
|
| 15 |
+
"github.com/mark3labs/mcp-go/mcp/protocol"
|
| 16 |
"github.com/spf13/viper"
|
| 17 |
)
|
| 18 |
|
go.mod
CHANGED
|
@@ -5,7 +5,7 @@ go 1.23.7
|
|
| 5 |
require (
|
| 6 |
github.com/google/go-github/v74 v74.0.0
|
| 7 |
github.com/josephburnett/jd v1.9.2
|
| 8 |
-
github.com/mark3labs/mcp-go v0.
|
| 9 |
github.com/migueleliasweb/go-github-mock v1.3.0
|
| 10 |
github.com/spf13/cobra v1.9.1
|
| 11 |
github.com/spf13/viper v1.20.1
|
|
|
|
| 5 |
require (
|
| 6 |
github.com/google/go-github/v74 v74.0.0
|
| 7 |
github.com/josephburnett/jd v1.9.2
|
| 8 |
+
github.com/mark3labs/mcp-go v0.39.1
|
| 9 |
github.com/migueleliasweb/go-github-mock v1.3.0
|
| 10 |
github.com/spf13/cobra v1.9.1
|
| 11 |
github.com/spf13/viper v1.20.1
|