Skip to content

Commit d810e83

Browse files
committed
Actually use the config that is passed
1 parent 1fad6c5 commit d810e83

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pkg/http/handler.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,7 @@ func (h *HTTPMcpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
138138
}
139139

140140
func DefaultGitHubMCPServerFactory(r *http.Request, deps github.ToolDependencies, inventory *inventory.Inventory, cfg *github.MCPServerConfig) (*mcp.Server, error) {
141-
return github.NewMCPServer(r.Context(), &github.MCPServerConfig{
142-
Version: cfg.Version,
143-
Translator: cfg.Translator,
144-
ContentWindowSize: cfg.ContentWindowSize,
145-
Logger: cfg.Logger,
146-
RepoAccessTTL: cfg.RepoAccessTTL,
147-
}, deps, inventory)
141+
return github.NewMCPServer(r.Context(), cfg, deps, inventory)
148142
}
149143

150144
func DefaultInventoryFactory(cfg *HTTPServerConfig, t translations.TranslationHelperFunc, staticChecker inventory.FeatureFlagChecker) InventoryFactoryFunc {

0 commit comments

Comments
 (0)