Skip to content

Conversation

@huozhi
Copy link
Member

@huozhi huozhi commented Jan 22, 2026

No description provided.

@huozhi huozhi changed the title json mcp json mcp response Jan 22, 2026
@nextjs-bot
Copy link
Collaborator

Failing test suites

Commit: 4d0a001 | About building and testing Next.js

pnpm test-dev test/development/mcp-server/mcp-server-get-errors.test.ts (job)

  • mcp-server get_errors tool > should capture next.config errors and clear when fixed (DD)
Expand output

● mcp-server get_errors tool › should capture next.config errors and clear when fixed

expect(received).toHaveLength(expected)

Matcher error: received value must have a length property whose value must be a number

Received has value: undefined

  226 |       const fixedErrorsText = await callGetErrors(sessionId)
  227 |       const fixedErrors = JSON.parse(fixedErrorsText)
> 228 |       expect(fixedErrors.configErrors).toHaveLength(0)
      |                                        ^
  229 |       expect(fixedErrors.sessionErrors).toHaveLength(0)
  230 |     })
  231 |   })

  at toHaveLength (development/mcp-server/mcp-server-get-errors.test.ts:228:40)
  at retry (lib/next-test-utils.ts:831:14)
  at Object.<anonymous> (development/mcp-server/mcp-server-get-errors.test.ts:224:5)

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

JSON.stringify formatting is inconsistent across MCP tools - some use pretty-printing with indentation while others use compact format

Fix on Vercel

@nextjs-bot
Copy link
Collaborator

nextjs-bot commented Jan 22, 2026

Stats from current PR

✅ No significant changes detected

📊 All Metrics
📖 Metrics Glossary

Dev Server Metrics:

  • Listen = TCP port starts accepting connections
  • First Request = HTTP server returns successful response
  • Cold = Fresh build (no cache)
  • Warm = With cached build artifacts

Build Metrics:

  • Fresh = Clean build (no .next directory)
  • Cached = With existing .next directory

Change Thresholds:

  • Time: Changes < 50ms AND < 10%, OR < 2% are insignificant
  • Size: Changes < 1KB AND < 1% are insignificant
  • All other changes are flagged to catch regressions

⚡ Dev Server

Metric Canary PR Change Trend
Cold (Listen) 456ms 455ms ▁▁▁▁▁
Cold (Ready in log) 437ms 438ms ▁▁▁▁▁
Cold (First Request) 1.223s 1.188s ▂▁▃▃▃
Warm (Listen) 457ms 456ms ▁▂▁▁▁
Warm (Ready in log) 442ms 442ms ▁▁▁▁▁
Warm (First Request) 341ms 342ms ▁▂▂▂▁

⚡ Production Builds

Metric Canary PR Change Trend
Fresh Build 4.292s 4.388s ▁▂▁▁▁
Cached Build 4.359s 4.365s ▁▁▁▁▁
📦 Production Builds (Webpack) (Legacy)

📦 Production Builds (Webpack)

Metric Canary PR Change Trend
node_modules Size 461 MB 461 MB ▁▁▁▁▁
📦 Bundle Sizes

Bundle Sizes

⚡ Turbopack

Client

Main Bundles: **432 kB** → **432 kB** ✅ -32 B

82 files with content-based hashes (individual files not comparable between builds)

Server

Middleware
Canary PR Change
middleware-b..fest.js gzip 762 B 768 B
Total 762 B 768 B ⚠️ +6 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 450 B 451 B
Total 450 B 451 B ⚠️ +1 B

🔄 Shared (bundler-independent)

Runtimes
Canary PR Change
app-page-exp...dev.js gzip 306 kB 306 kB
app-page-exp..prod.js gzip 163 kB 163 kB
app-page-tur...dev.js gzip 306 kB 306 kB
app-page-tur..prod.js gzip 163 kB 163 kB
app-page-tur...dev.js gzip 303 kB 303 kB
app-page-tur..prod.js gzip 161 kB 161 kB
app-page.run...dev.js gzip 303 kB 303 kB
app-page.run..prod.js gzip 161 kB 161 kB
app-route-ex...dev.js gzip 69.4 kB 69.4 kB
app-route-ex..prod.js gzip 48.2 kB 48.2 kB
app-route-tu...dev.js gzip 69.5 kB 69.5 kB
app-route-tu..prod.js gzip 48.2 kB 48.2 kB
app-route-tu...dev.js gzip 69.1 kB 69.1 kB
app-route-tu..prod.js gzip 48 kB 48 kB
app-route.ru...dev.js gzip 69 kB 69 kB
app-route.ru..prod.js gzip 48 kB 48 kB
dist_client_...dev.js gzip 324 B 324 B
dist_client_...dev.js gzip 326 B 326 B
dist_client_...dev.js gzip 318 B 318 B
dist_client_...dev.js gzip 317 B 317 B
pages-api-tu...dev.js gzip 42.5 kB 42.5 kB
pages-api-tu..prod.js gzip 32.3 kB 32.3 kB
pages-api.ru...dev.js gzip 42.5 kB 42.5 kB
pages-api.ru..prod.js gzip 32.3 kB 32.3 kB
pages-turbo....dev.js gzip 51.8 kB 51.8 kB
pages-turbo...prod.js gzip 38.8 kB 38.8 kB
pages.runtim...dev.js gzip 51.8 kB 51.8 kB
pages.runtim..prod.js gzip 38.8 kB 38.8 kB
server.runti..prod.js gzip 62.3 kB 62.3 kB
Total 2.73 MB 2.73 MB ⚠️ +4 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants