Skip to content

Commit 61db07d

Browse files
committed
Remove extra config fields from HTTP server config
1 parent ed37e6f commit 61db07d

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

pkg/http/handler.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ func (s *HttpMcpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
6060
ghServer, err := github.NewMCPServer(&github.MCPServerConfig{
6161
Version: s.config.Version,
6262
Host: s.config.Host,
63-
EnabledToolsets: s.config.EnabledToolsets,
64-
EnabledTools: s.config.EnabledTools,
65-
EnabledFeatures: s.config.EnabledFeatures,
66-
DynamicToolsets: s.config.DynamicToolsets,
67-
ReadOnly: s.config.ReadOnly,
6863
Translator: s.t,
6964
ContentWindowSize: s.config.ContentWindowSize,
7065
Logger: s.logger,

pkg/http/server.go

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,6 @@ type HTTPServerConfig struct {
2424
// GitHub Host to target for API requests (e.g. github.com or github.enterprise.com)
2525
Host string
2626

27-
// EnabledToolsets is a list of toolsets to enable
28-
// See: https://github.com/github/github-mcp-server?tab=readme-ov-file#tool-configuration
29-
EnabledToolsets []string
30-
31-
// EnabledTools is a list of specific tools to enable (additive to toolsets)
32-
// When specified, these tools are registered in addition to any specified toolset tools
33-
EnabledTools []string
34-
35-
// EnabledFeatures is a list of feature flags that are enabled
36-
// Items with FeatureFlagEnable matching an entry in this list will be available
37-
EnabledFeatures []string
38-
39-
// Whether to enable dynamic toolsets
40-
// See: https://github.com/github/github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery
41-
DynamicToolsets bool
42-
43-
// ReadOnly indicates if we should only register read-only tools
44-
ReadOnly bool
45-
4627
// ExportTranslations indicates if we should export translations
4728
// See: https://github.com/github/github-mcp-server?tab=readme-ov-file#i18n--overriding-descriptions
4829
ExportTranslations bool
@@ -84,7 +65,7 @@ func RunHTTPServer(cfg HTTPServerConfig) error {
8465
slogHandler = slog.NewTextHandler(logOutput, &slog.HandlerOptions{Level: slog.LevelInfo})
8566
}
8667
logger := slog.New(slogHandler)
87-
logger.Info("starting server", "version", cfg.Version, "host", cfg.Host, "dynamicToolsets", cfg.DynamicToolsets, "readOnly", cfg.ReadOnly, "lockdownEnabled", cfg.LockdownMode)
68+
logger.Info("starting server", "version", cfg.Version, "host", cfg.Host, "lockdownEnabled", cfg.LockdownMode)
8869

8970
apiHost, err := utils.ParseAPIHost(cfg.Host)
9071
if err != nil {

0 commit comments

Comments
 (0)