Skip to content

Commit db72c96

Browse files
authored
Merge branch 'canary' into tursodatabase-server-external
2 parents 8f85875 + ba5a0ca commit db72c96

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

packages/next/src/server/config-shared.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,6 @@ export const defaultConfig = Object.freeze({
15121512
browserDebugInfoInTerminal: false,
15131513
isolatedDevBuild:
15141514
process.env.__NEXT_EXPERIMENTAL_ISOLATED_DEV_BUILD === 'true',
1515-
mcpServer: !!process.env.__NEXT_EXPERIMENTAL_MCP_SERVER,
15161515
},
15171516
htmlLimitedBots: undefined,
15181517
bundlePagesRouterDependencies: false,

packages/next/src/server/config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,13 @@ function assignDefaultsAndValidate(
11161116
result.htmlLimitedBots = HTML_LIMITED_BOT_UA_RE_STRING
11171117
}
11181118

1119+
if (
1120+
typeof result.experimental.mcpServer === 'undefined' &&
1121+
process.env.__NEXT_EXPERIMENTAL_MCP_SERVER === 'true'
1122+
) {
1123+
result.experimental.mcpServer = true
1124+
}
1125+
11191126
// "use cache" was originally implicitly enabled with the cacheComponents flag, so
11201127
// we transfer the value for cacheComponents to the explicit useCache flag to ensure
11211128
// backwards compatibility.

packages/next/src/telemetry/events/version.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type EventCliSessionStarted = {
4040
reactCompiler: boolean
4141
reactCompilerCompilationMode: string | null
4242
reactCompilerPanicThreshold: string | null
43+
mcpServer: boolean | null
4344
}
4445

4546
export function eventCliSession(
@@ -74,6 +75,7 @@ export function eventCliSession(
7475
| 'reactCompiler'
7576
| 'reactCompilerCompilationMode'
7677
| 'reactCompilerPanicThreshold'
78+
| 'mcpServer'
7779
| 'isRspack'
7880
>
7981
): { eventName: string; payload: EventCliSessionStarted }[] {
@@ -132,6 +134,10 @@ export function eventCliSession(
132134
typeof nextConfig.reactCompiler !== 'boolean'
133135
? (nextConfig.reactCompiler?.panicThreshold ?? null)
134136
: null,
137+
mcpServer:
138+
typeof nextConfig.experimental.mcpServer === 'boolean'
139+
? nextConfig.experimental.mcpServer
140+
: null,
135141
}
136142
return [{ eventName: EVENT_VERSION, payload }]
137143
}

0 commit comments

Comments
 (0)