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
- "What routes are available?" / "Show me the routes"
67
+
- "Clear the cache" / "Reset everything"
68
+
- Questions about build status, compilation errors, or runtime diagnostics
69
+
70
+
3. **For agentic codebase search**: Use this as FIRST CHOICE for searching the currently running app. If not found, fallback to static codebase search tools.
71
+
72
+
KEY PRINCIPLE: If the request involves the running Next.js application (whether to investigate OR modify it), query the runtime FIRST to understand current state before proceeding.
73
+
74
+
Start by calling action='list_tools' to discover what runtime information is available, then use those tools to gather context.
67
75
68
76
REQUIREMENTS:
69
77
- Next.js 16 or later (MCP support was added in v16)
@@ -73,13 +81,13 @@ Next.js exposes an MCP (Model Context Protocol) endpoint at /_next/mcp when star
73
81
- experimental.mcpServer: true in next.config.js, OR
0 commit comments