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
"Action to perform: 'discover_servers' finds running Next.js servers, 'list_tools' lists available MCP tools from the Next.js runtime, 'call_tool' calls a specific tool"
14
+
"Action to perform:\n"+
15
+
"- 'discover_servers': Find and list all running Next.js dev servers (use for queries about 'how many', 'show all', 'list', 'running servers')\n"+
16
+
"- 'list_tools': Show available MCP tools/functions from a specific Next.js server (use after discovering servers)\n"+
17
+
"- 'call_tool': Execute a specific Next.js runtime tool (use to interact with Next.js internals)"
"Arguments object to pass to the Next.js MCP tool. MUST be an object (e.g., {param: 'value'}), NOT a string. Only provide this parameter if the tool requires arguments - omit it entirely for tools that take no arguments. Use 'list_tools' to see the inputSchema for each tool."
36
39
),
40
+
41
+
includeUnverified: z
42
+
.boolean()
43
+
.optional()
44
+
.describe(
45
+
"For 'discover_servers' action: Include Next.js servers even if MCP endpoint verification fails. Defaults to false (only show verified MCP-enabled servers)."
46
+
),
37
47
})
38
48
39
49
exportconstnextjsRuntimeTool=tool({
40
-
description: `Interact with a running Next.js development server's MCP endpoint.
50
+
description: `Discover, inspect, and interact with running Next.js development servers and their MCP endpoints.
51
+
52
+
USE THIS TOOL WHEN:
53
+
- User asks about running Next.js servers (e.g., "how many Next.js apps are running?", "show me running servers", "list Next.js apps")
54
+
- User wants to see what servers/apps are active
55
+
- User wants to interact with Next.js runtime capabilities
56
+
- User needs to call Next.js internal tools or APIs
57
+
- User asks about server ports, PIDs, or processes
58
+
59
+
COMMON QUERY EXAMPLES:
60
+
✓ "How many Next.js apps with MCP are running?"
61
+
✓ "Show me all running Next.js servers"
62
+
✓ "List running Next.js development servers"
63
+
✓ "What Next.js apps are currently active?"
64
+
✓ "Are there any Next.js servers running?"
65
+
✓ "What tools are available in the Next.js runtime?"
66
+
✓ "Clear the Next.js cache"
41
67
42
68
REQUIREMENTS:
43
69
- Next.js 16 or later (MCP support was added in v16)
@@ -47,12 +73,12 @@ Next.js exposes an MCP (Model Context Protocol) endpoint at /_next/mcp when star
47
73
- experimental.mcpServer: true in next.config.js, OR
0 commit comments