Skip to content

Header search doesn't surface MCP server catalog results #20

Description

@a-effort

Summary

The header quick-search (HeaderQuickNav.tsx) never shows catalog entries because it never asks the backend to search them, and today the backend can't anyway.

Blocked on

IBM/mcp-context-forge#6212: catalog must exist as a searchable entity_type on /v1/search first.

Proposed fix (once unblocked)

  • src/api/search.ts: add "catalog" to the SearchEntityType union.
  • src/components/layout/HeaderQuickNav.tsx:
    • Add "catalog" to BASE_SEARCH_ENTITY_TYPES.
    • Add catalog: "/app/server-catalog" to ENTITY_ROUTE.
    • Add catalog: "navigation.serverCatalog" to ENTITY_LABEL_KEY (reuses the existing sidebar label).

No change needed in ServerCatalog.tsx: it already reads ?search= from the URL on load (useCatalogFilters/parseFilters), so a catalog result click already deep-links correctly once the entity type exists.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions