Connects an agent to a running Next.js 16+ dev server for errors, routes, and logs.

How it works

Foe: Error Imp, a crash report from a live app.

Foes

  • Error Imp

Party · Context

  • PaladinYour agent100/100
  1. Error Imp

    The Error Imp blocks the way.

    What really happensIt stands for a crash report from a live app.

    Paladin: Context 100/100.

  2. Crash

    The imp hurls a stack trace.

    What really happensThe running app throws an error the agent has to trace.

    Paladin takes 12. Paladin: Context 88/100.

  3. Next.js DevTools MCP

    The Next DevTools orb finds the dev server already in the fight.

    What really happensnext-devtools-mcp discovers a running Next.js 16+ server and its /_next/mcp endpoint.

    Error Imp takes 29.

  4. Next.js DevTools MCP

    It calls the server and the Error Imp's trail lights up.

    What really happensnextjs_index lists servers. nextjs_call can run get_errors, get_routes, get_logs, and get_page_metadata.

    Error Imp takes 13.

  5. Crash

    The Error Imp uses Crash.

    Paladin takes 12. Paladin: Context 76/100.

  6. Next.js DevTools MCP

    The hero strikes the mismatch the running app reported.

    What really happensget_errors includes build errors and browser runtime errors with source-mapped stacks. Some page tools need the page open.

    Error Imp takes 32.

  7. Next.js DevTools MCP

    The Error Imp drops a stack that points at the real file.

    What really happensYou get the dev server's current errors, routes, and log path, without running a separate production build.

    Error Imp takes 26. Error Imp falls.

  8. Victory

    The Error Imp falls.

Learn this spell

Claude Code

claude mcp add next-devtools npx next-devtools-mcp@latest

Codex

codex mcp add next-devtools -- npx next-devtools-mcp@latest

Notes

Needs Node.js 20.19 or newer and a running Next.js 16+ dev server. The endpoint is /_next/mcp unless experimental.mcpServer is false. nextjs_index finds servers; nextjs_call runs get_errors, get_routes, get_logs, and similar tools. get_page_metadata needs the page open in a browser. nextjs_docs and browser_eval only point at local Next.js docs and the agent-browser CLI. Sends anonymous usage telemetry; set NEXT_TELEMETRY_DISABLED=1 to opt out. MIT is declared in package.json; the repo has no LICENSE file. Package version 0.4.1.

This spell has no recorded sessions in the curator's logs. Tried it? Send a spell report.