Skip to content

[Bug]: Search filter should also match server title, not just name #2069

@peppescg

Description

@peppescg

Description

The search filter in the MCP servers grid (GridCardsMcpServers) only matches against name and package, but does not match against title. Since the server card displays the title as the primary label (and the title is often more human-readable than the internal name), users searching for a server by what they see on screen may not find it.

Current behavior

In renderer/src/features/mcp-servers/components/grid-cards-mcp-server.tsx, the filter logic checks:

const name = mcpServer.name?.toLowerCase() || ''
const image = mcpServer.package?.toLowerCase() || ''
if (!name.includes(searchTerm) && !image.includes(searchTerm)) {
  return false
}

Only name and package are searched. The title field (which is the user-facing display name) is ignored.

Expected behavior

The search filter should also match against mcpServer.title so that typing the display name of a server finds it.

Steps to reproduce

  1. Run a server that has a title different from its name
  2. Search for the server using its title text
  3. The server card is not shown in the results

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingauto-fixAutomated bug fix by Bug Fix Agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions