Skip to content

Commit 42e63b3

Browse files
omgitsadsCopilot
andauthored
Update pkg/github/server.go
Co-authored-by: Copilot <[email protected]>
1 parent 06a028e commit 42e63b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/github/server.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ type GetClientFn func(context.Context) (*github.Client, error)
1919
// NewServer creates a new GitHub MCP server with the specified GH client and logger.
2020
func NewServer(getClient GetClientFn, version string, readOnly bool, t translations.TranslationHelperFunc, opts ...server.ServerOption) *server.MCPServer {
2121
// Add default options
22-
opts = append(opts, server.WithResourceCapabilities(true, true))
23-
opts = append(opts, server.WithLogging())
22+
defaultOpts := []server.ServerOption{
23+
server.WithResourceCapabilities(true, true),
24+
server.WithLogging(),
25+
}
26+
opts = append(defaultOpts, opts...)
2427

2528
// Create a new MCP server
2629
s := server.NewMCPServer(

0 commit comments

Comments
 (0)