diff --git a/cmd/github-mcp-server/main.go b/cmd/github-mcp-server/main.go index f3dff6d31..dd4d41a7d 100644 --- a/cmd/github-mcp-server/main.go +++ b/cmd/github-mcp-server/main.go @@ -158,7 +158,7 @@ func runStdioServer(cfg runConfig) error { t, dumpTranslations := translations.TranslationHelper() // Create - ghServer := github.NewServer(ghClient, cfg.readOnly, t) + ghServer := github.NewServer(ghClient, version, cfg.readOnly, t) stdioServer := server.NewStdioServer(ghServer) stdLogger := stdlog.New(cfg.logger.Writer(), "stdioserver", 0) diff --git a/pkg/github/server.go b/pkg/github/server.go index 3ca695589..bf3583b92 100644 --- a/pkg/github/server.go +++ b/pkg/github/server.go @@ -15,11 +15,11 @@ import ( ) // NewServer creates a new GitHub MCP server with the specified GH client and logger. -func NewServer(client *github.Client, readOnly bool, t translations.TranslationHelperFunc) *server.MCPServer { +func NewServer(client *github.Client, version string, readOnly bool, t translations.TranslationHelperFunc) *server.MCPServer { // Create a new MCP server s := server.NewMCPServer( "github-mcp-server", - "0.0.1", + version, server.WithResourceCapabilities(true, true), server.WithLogging()) 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