Skip to content

Commit 681e7f9

Browse files
committed
feat: mcp go
1 parent 84c2db9 commit 681e7f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+261
-1188
lines changed

mcp_go/Dockerfile

Lines changed: 0 additions & 28 deletions
This file was deleted.

mcp_go/README.md

Lines changed: 0 additions & 253 deletions
This file was deleted.

mcp_server/.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

mcp_server/Dockerfile

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1-
FROM ghcr.io/astral-sh/uv:python3.13-alpine
1+
FROM golang:1.24-alpine AS builder
22

3-
COPY requirements.txt /app/requirements.txt
3+
WORKDIR /app
4+
5+
RUN apk add --no-cache git
6+
7+
COPY go.mod go.sum ./
8+
9+
RUN go mod download
10+
11+
COPY . .
12+
13+
RUN CGO_ENABLED=0 go build -o mcp-server .
14+
15+
FROM alpine:latest
416

517
WORKDIR /app
618

7-
RUN uv pip sync requirements.txt --system -i https://pypi.tuna.tsinghua.edu.cn/simple
19+
RUN apk add --no-cache ca-certificates tzdata
20+
21+
COPY --from=builder /app/mcp-server .
22+
COPY --from=builder /app/config.yaml .
23+
24+
ENV TZ=Asia/Shanghai
825

9-
COPY . /app
26+
EXPOSE 5678
1027

11-
CMD ["python", "__main__.py"]
28+
CMD ["./mcp-server"]

0 commit comments

Comments
 (0)