You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: `Search and retrieve Next.js official documentation.
131
+
First searches MCP resources (Next.js 16 knowledge base) for latest information, then falls back to official Next.js documentation if nothing is found.
58
132
Provides access to comprehensive Next.js guides, API references, and best practices.`,
// Step 2: Fallback to official Next.js documentation
64
165
constdocs=awaitgetNextJsDocs()
65
166
66
167
letfiltered=docs
@@ -78,10 +179,10 @@ Provides access to comprehensive Next.js guides, API references, and best practi
78
179
.slice(0,10)
79
180
80
181
if(results.length===0){
81
-
return`No documentation found for "${query}"${category!=="all" ? ` in category "${category}"` : ""}`
182
+
return`No documentation found for "${query}"${category!=="all" ? ` in category "${category}"` : ""} in both MCP resources and official Next.js documentation.`
0 commit comments