Skip to content

Commit 7ab5d96

Browse files
chore: pass version through to server
1 parent 8a9f0b0 commit 7ab5d96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cmd/github-mcp-server/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func runStdioServer(cfg runConfig) error {
158158
t, dumpTranslations := translations.TranslationHelper()
159159

160160
// Create
161-
ghServer := github.NewServer(ghClient, cfg.readOnly, t)
161+
ghServer := github.NewServer(ghClient, version, cfg.readOnly, t)
162162
stdioServer := server.NewStdioServer(ghServer)
163163

164164
stdLogger := stdlog.New(cfg.logger.Writer(), "stdioserver", 0)

Diff for: pkg/github/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import (
1515
)
1616

1717
// NewServer creates a new GitHub MCP server with the specified GH client and logger.
18-
func NewServer(client *github.Client, readOnly bool, t translations.TranslationHelperFunc) *server.MCPServer {
18+
func NewServer(client *github.Client, version string, readOnly bool, t translations.TranslationHelperFunc) *server.MCPServer {
1919
// Create a new MCP server
2020
s := server.NewMCPServer(
2121
"github-mcp-server",
22-
"0.0.1",
22+
version,
2323
server.WithResourceCapabilities(true, true),
2424
server.WithLogging())
2525

0 commit comments

Comments
 (0)