Skip to content

Commit 5760da4

Browse files
Add Dockerfile and smithery.yaml
1 parent 030c0fb commit 5760da4

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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"]

smithery.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
})

0 commit comments

Comments
 (0)