Skip to content
Open
Changes from all commits
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
6 changes: 3 additions & 3 deletions pkg/gateway/mcpadd.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ func (g *Gateway) createMcpAddTool(clientConfig *clientConfig) *ToolRegistration
}
clientNameLower := strings.ToLower(clientName)

// Only activate tools if activate is true AND client name doesn't contain "claude"
// (Claude clients auto-refresh their tool list, so they don't need explicit activation)
shouldActivate := params.Activate && !strings.Contains(clientNameLower, "claude")
// Activate tools if requested - all clients need explicit activation
// (Removed incorrect assumption that Claude auto-refreshes tool list)
shouldActivate := params.Activate // Claude clients also need explicit activation

if shouldActivate {
// Now update g.mcpServer with the new capabilities
Expand Down