diff --git a/Dockerfile b/Dockerfile index 05fe1ddd2..90c3ab97b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,11 +17,12 @@ COPY . ./ 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)" \ -o github-mcp-server cmd/github-mcp-server/main.go -# Make a stage to run the app -FROM gcr.io/distroless/base-debian12 +# Make a stage to run the app - using debian:12-slim instead of distroless +# This provides a shell that Smithery.ai requires +FROM debian:12-slim # Set the working directory WORKDIR /server # Copy the binary from the build stage COPY --from=build /build/github-mcp-server . # Command to run the server -CMD ["./github-mcp-server", "stdio"] +CMD ["./github-mcp-server", "stdio"] \ No newline at end of file diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 000000000..bfdd52482 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,25 @@ +# Smithery.ai configuration for GitHub MCP Server +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP + type: object + required: + - githubPersonalAccessToken + properties: + githubPersonalAccessToken: + type: string + title: GitHub Personal Access Token + description: The personal access token for accessing the GitHub API. + secret: true # This marks the field as a secret, so it won't be logged + additionalProperties: false + commandFunction: |- + (config) => ({ + "command": "./github-mcp-server", + "args": [ + "stdio" + ], + "env": { + "GITHUB_PERSONAL_ACCESS_TOKEN": config.githubPersonalAccessToken + } + }) \ No newline at end of file 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