Search leaves out the 404 page: searchContent, the search route, MCP search_content

searchContent / listContent read Site settings once (depth 0, homepage + notFound)
and skip unlistedPageIds; createSearchRoute and the MCP route pass settingsSlug.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 15:31:43 +01:00
co-authored by Claude Opus 5.5
parent 3645e61f7d
commit 6b2c9b3cc6
7 changed files with 58 additions and 9 deletions
+1
View File
@@ -246,6 +246,7 @@ export function createMcpRoute(args: CreateMcpRouteArgs) {
locale,
payload,
query,
settingsSlug,
summaryField,
}), locale)
if (results.length === 0) {return `No pages matched "${query}".`}