Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update pkg/github/server.go
Co-authored-by: Copilot <[email protected]>
  • Loading branch information
omgitsads and Copilot authored Apr 11, 2025
commit 42e63b3e2c631ee2c9d71ff0983c5985a95b6d60
7 changes: 5 additions & 2 deletions pkg/github/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ type GetClientFn func(context.Context) (*github.Client, error)
// NewServer creates a new GitHub MCP server with the specified GH client and logger.
func NewServer(getClient GetClientFn, version string, readOnly bool, t translations.TranslationHelperFunc, opts ...server.ServerOption) *server.MCPServer {
// Add default options
opts = append(opts, server.WithResourceCapabilities(true, true))
opts = append(opts, server.WithLogging())
defaultOpts := []server.ServerOption{
server.WithResourceCapabilities(true, true),
server.WithLogging(),
}
opts = append(defaultOpts, opts...)

// Create a new MCP server
s := server.NewMCPServer(
Expand Down