@@ -16,7 +16,6 @@ import (
1616 "time"
1717
1818 "github.com/github/github-mcp-server/internal/ghmcp"
19- "github.com/github/github-mcp-server/pkg/github"
2019 "github.com/github/github-mcp-server/pkg/translations"
2120 gogithub "github.com/google/go-github/v74/github"
2221 mcpClient "github.com/mark3labs/mcp-go/client"
@@ -141,17 +140,20 @@ func setupMCPClient(t *testing.T, options ...clientOption) *mcpClient.Client {
141140 }
142141
143142 // Add toolsets environment variable to the Docker arguments
144- if len (opts .enabledToolsets ) > 0 {
145- args = append (args , "-e" , "GITHUB_TOOLSETS" )
143+ // Default to "all" if no specific toolsets are configured
144+ enabledToolsets := opts .enabledToolsets
145+ if len (enabledToolsets ) == 0 {
146+ enabledToolsets = []string {"all" }
146147 }
148+ args = append (args , "-e" , "GITHUB_TOOLSETS" )
147149
148150 // Add the image name
149151 args = append (args , "github/e2e-github-mcp-server" )
150152
151153 // Construct the env vars for the MCP Client to execute docker with
152154 dockerEnvVars := []string {
153155 fmt .Sprintf ("GITHUB_PERSONAL_ACCESS_TOKEN=%s" , token ),
154- fmt .Sprintf ("GITHUB_TOOLSETS=%s" , strings .Join (opts . enabledToolsets , "," )),
156+ fmt .Sprintf ("GITHUB_TOOLSETS=%s" , strings .Join (enabledToolsets , "," )),
155157 }
156158
157159 if host != "" {
@@ -168,8 +170,8 @@ func setupMCPClient(t *testing.T, options ...clientOption) *mcpClient.Client {
168170 // not in scope for using the MCP server directly. This probably indicates that we should refactor
169171 // so that there is a shared setup mechanism, but let's wait till we feel more friction.
170172 enabledToolsets := opts .enabledToolsets
171- if enabledToolsets == nil {
172- enabledToolsets = github . DefaultTools
173+ if len ( enabledToolsets ) == 0 {
174+ enabledToolsets = [] string { "all" }
173175 }
174176
175177 ghServer , err := ghmcp .NewMCPServer (ghmcp.MCPServerConfig {
@@ -190,7 +192,7 @@ func setupMCPClient(t *testing.T, options ...clientOption) *mcpClient.Client {
190192 })
191193
192194 // Initialize the client
193- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
195+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
194196 defer cancel ()
195197
196198 request := mcp.InitializeRequest {}
0 commit comments