File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1512,7 +1512,6 @@ export const defaultConfig = Object.freeze({
1512
1512
browserDebugInfoInTerminal : false ,
1513
1513
isolatedDevBuild :
1514
1514
process . env . __NEXT_EXPERIMENTAL_ISOLATED_DEV_BUILD === 'true' ,
1515
- mcpServer : ! ! process . env . __NEXT_EXPERIMENTAL_MCP_SERVER ,
1516
1515
} ,
1517
1516
htmlLimitedBots : undefined ,
1518
1517
bundlePagesRouterDependencies : false ,
Original file line number Diff line number Diff line change @@ -1116,6 +1116,13 @@ function assignDefaultsAndValidate(
1116
1116
result . htmlLimitedBots = HTML_LIMITED_BOT_UA_RE_STRING
1117
1117
}
1118
1118
1119
+ if (
1120
+ typeof result . experimental . mcpServer === 'undefined' &&
1121
+ process . env . __NEXT_EXPERIMENTAL_MCP_SERVER === 'true'
1122
+ ) {
1123
+ result . experimental . mcpServer = true
1124
+ }
1125
+
1119
1126
// "use cache" was originally implicitly enabled with the cacheComponents flag, so
1120
1127
// we transfer the value for cacheComponents to the explicit useCache flag to ensure
1121
1128
// backwards compatibility.
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ type EventCliSessionStarted = {
40
40
reactCompiler : boolean
41
41
reactCompilerCompilationMode : string | null
42
42
reactCompilerPanicThreshold : string | null
43
+ mcpServer : boolean | null
43
44
}
44
45
45
46
export function eventCliSession (
@@ -74,6 +75,7 @@ export function eventCliSession(
74
75
| 'reactCompiler'
75
76
| 'reactCompilerCompilationMode'
76
77
| 'reactCompilerPanicThreshold'
78
+ | 'mcpServer'
77
79
| 'isRspack'
78
80
>
79
81
) : { eventName : string ; payload : EventCliSessionStarted } [ ] {
@@ -132,6 +134,10 @@ export function eventCliSession(
132
134
typeof nextConfig . reactCompiler !== 'boolean'
133
135
? ( nextConfig . reactCompiler ?. panicThreshold ?? null )
134
136
: null ,
137
+ mcpServer :
138
+ typeof nextConfig . experimental . mcpServer === 'boolean'
139
+ ? nextConfig . experimental . mcpServer
140
+ : null ,
135
141
}
136
142
return [ { eventName : EVENT_VERSION , payload } ]
137
143
}
You can’t perform that action at this time.
0 commit comments