Skip to content

Commit cc796ed

Browse files
committed
Update for Smithery.ai compatibility
1 parent fdfa912 commit cc796ed

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ COPY . ./
1717
RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
1818
-o github-mcp-server cmd/github-mcp-server/main.go
1919

20-
# Make a stage to run the app
21-
FROM gcr.io/distroless/base-debian12
20+
# Make a stage to run the app - using debian:12-slim instead of distroless
21+
# This provides a shell that Smithery.ai requires
22+
FROM debian:12-slim
2223
# Set the working directory
2324
WORKDIR /server
2425
# Copy the binary from the build stage
2526
COPY --from=build /build/github-mcp-server .
2627
# Command to run the server
27-
ENTRYPOINT ["./github-mcp-server"]
28-
CMD ["stdio"]
28+
CMD ["./github-mcp-server", "stdio"]

smithery.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Smithery.ai configuration for GitHub MCP Server
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
# JSON Schema defining the configuration options for the MCP.
6+
# Update this with any configuration options your MCP server requires
7+
type: object
8+
properties: {}
9+
additionalProperties: false
10+
commandFunction: |-
11+
(config) => ({
12+
"command": "./github-mcp-server",
13+
"args": [
14+
"stdio"
15+
],
16+
"env": {}
17+
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy