Content-Length: 298824 | pFad | http://github.com/github/github-mcp-server/commit/7ab5d968e065f13a660cd123c2c5d0be6d8b6dbd

4A chore: pass version through to server · github/github-mcp-server@7ab5d96 · GitHub
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

cmd/github-mcp-server/main.go

Lines changed: 1 addition & 1 deletion
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)

pkg/github/server.go

Lines changed: 2 additions & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/commit/7ab5d968e065f13a660cd123c2c5d0be6d8b6dbd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy