File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM golang:1.24.2-alpine AS builder
2
+
3
+ RUN apk add --no-cache curl git bash && \
4
+ curl -sL https://taskfile.dev/install.sh | sh
5
+
6
+ WORKDIR /app
7
+
8
+ COPY .git .git
9
+ COPY Taskfile.yml .
10
+ COPY src src
11
+
12
+ RUN task setup
13
+
14
+ WORKDIR /app/src
15
+ RUN go build -v -o /app/opslevel-mcp ./main.go
16
+
17
+ FROM alpine:latest
18
+
19
+ RUN apk add --no-cache ca-certificates
20
+
21
+ COPY --from=builder /app/opslevel-mcp /opslevel-mcp
22
+
23
+ CMD ["/opslevel-mcp" ]
Original file line number Diff line number Diff line change
1
+ startCommand :
2
+ type : stdio
3
+ configSchema :
4
+ type : object
5
+ required :
6
+ - opslevelApiToken
7
+ properties :
8
+ opslevelApiToken :
9
+ type : string
10
+ description : OpsLevel API token
11
+ commandFunction : |
12
+ (config) => ({
13
+ command: 'opslevel-mcp',
14
+ env: { OPSLEVEL_API_TOKEN: config.opslevelApiToken }
15
+ })
You can’t perform that action at this time.
0 commit comments