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:
co-authored by
Claude Opus 5.5
parent
3645e61f7d
commit
6b2c9b3cc6
@@ -246,6 +246,7 @@ export function createMcpRoute(args: CreateMcpRouteArgs) {
|
||||
locale,
|
||||
payload,
|
||||
query,
|
||||
settingsSlug,
|
||||
summaryField,
|
||||
}), locale)
|
||||
if (results.length === 0) {return `No pages matched "${query}".`}
|
||||
|
||||
Reference in New Issue
Block a user