Skip to content

Commit 8fcfcbc

Browse files
fix linting
1 parent aa76e06 commit 8fcfcbc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/gateway/reload.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ func (g *Gateway) reloadServerCapabilities(ctx context.Context, serverName strin
318318
// updateServerCapabilities updates g.mcpServer with capabilities from the server.
319319
// If toolFilter is non-nil, only tools in the filter will be added.
320320
// This function expects g.capabilitiesMu to be locked by the caller.
321+
//
322+
//nolint:unparam // toolFilter is designed for future use - selective tool activation
321323
func (g *Gateway) updateServerCapabilities(serverName string, oldCaps, newCaps *ServerCapabilities, toolFilter []string) error {
322324
// Get the full capabilities from serverAvailableCapabilities
323325
newServerCaps := g.serverAvailableCapabilities[serverName]

pkg/gateway/run.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (g *Gateway) Run(ctx context.Context) error {
253253
_, _ = req.Session.ListRoots(ctx, &mcp.ListRootsParams{})
254254
},
255255
CompletionHandler: nil,
256-
InitializedHandler: func(ctx context.Context, req *mcp.InitializedRequest) {
256+
InitializedHandler: func(_ context.Context, req *mcp.InitializedRequest) {
257257
clientInfo := req.Session.InitializeParams().ClientInfo
258258
log.Log(fmt.Sprintf("- Client initialized %s@%s %s", clientInfo.Name, clientInfo.Version, clientInfo.Title))
259259

@@ -751,4 +751,3 @@ func (g *Gateway) profileLoadingMiddleware() mcp.Middleware {
751751
}
752752
}
753753
}
754-

0 commit comments

Comments
 (0)