Skip to content

docs: update the MCP guide for next-devtools-mcp 0.4 - #99583

Merged
aurorascharff merged 3 commits into
canaryfrom
docs/update-mcp-guide
Oct 2, 2026
Merged

aurorascharff merged 3 commits into
canaryfrom
docs/update-mcp-guide

Conversation

@aurorascharff

@aurorascharff aurorascharff commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bring the MCP guide in line with next-devtools-mcp 0.4.0 and the runtime tools on canary.

  • describe the four connector tools (nextjs_index, nextjs_call, nextjs_docs, browser_eval) and explain that the docs and browser tools point the agent elsewhere instead of doing the work
  • replace the Playwright MCP integration with agent-browser, which next-browser merged into in 16.3
  • list the runtime tools at /_next/mcp using the descriptions registered in packages/next/src/server/mcp/tools, including the previously missing get_request_insights, and correct get_errors (it does not return type errors) and get_server_action_by_id (it does not inspect component hierarchies)
  • add the npx add-mcp next-devtools-mcp@latest install option and note that Skills such as next-dev-loop call /_next/mcp directly
  • rebuild the example transcript with nextjs_index and nextjs_call, replacing the removed nextjs_runtime tool
  • document that the endpoint is enabled by default and can be turned off with experimental.mcpServer: false, and add that to troubleshooting
  • remove the "Using with agents" section, which repeated the capabilities in vaguer terms

Stacked on #99293. Also removes the stale upgrade example, which relied on the upgrade_nextjs_16 tool removed in next-devtools-mcp 0.4.0.

Verification

  • Tool names and descriptions checked against get-or-create-mcp-server.ts and each tool file on canary
  • Connector tools checked against the next-devtools-mcp 0.4.0 README
  • mcpServer default checked in config-shared.ts
  • Prettier and alex pass on the changed file

🤖 Generated with Claude Code

@aurorascharff
aurorascharff added this pull request to stack #99584 October 2, 2026 12:59
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: efe87a3

@aurorascharff
aurorascharff force-pushed the docs/update-mcp-guide branch from 3488d3d to d68bf0e Compare October 2, 2026 13:04
Base automatically changed from jiwon/document-agent-upgrade-guide to canary October 2, 2026 13:12
- describe the four next-devtools-mcp tools and the agent-browser gateway
- list the runtime tools with canary's descriptions, including get_request_insights
- add the add-mcp install option and the experimental.mcpServer switch
- rebuild the example transcript with nextjs_index and nextjs_call

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@aurorascharff
aurorascharff force-pushed the docs/update-mcp-guide branch from d68bf0e to 658dd7c Compare October 2, 2026 13:12
@aurorascharff
aurorascharff marked this pull request as ready for review October 2, 2026 13:17
Copilot AI balanced review requested due to automatic review settings October 2, 2026 13:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Two descriptions conflict with the implemented metadata response and documented direct MCP access path.

Review effort: Balanced
Findings: 2 Low severity

Open (2)
What changed in this PR

Updates the MCP guide for next-devtools-mcp 0.4 and current Next.js runtime tooling.

Changes:

  • Documents connector and runtime MCP tools.
  • Adds installation, direct Skill usage, and configuration guidance.
  • Updates examples and browser automation guidance.
File Description
docs/​01-app/​02-guides/​mcp.mdx Revises MCP setup, capabilities, workflow, examples, and troubleshooting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/01-app/02-guides/mcp.mdx Resolved
Comment thread docs/01-app/02-guides/mcp.mdx Resolved
- limit get_project_metadata to the fields it returns
- scope the connector explanation to agents that use next-devtools-mcp

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@aurorascharff
aurorascharff merged commit 8cb7b04 into canary Oct 2, 2026
57 checks passed
@aurorascharff
aurorascharff deleted the docs/update-mcp-guide branch October 2, 2026 13:31
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants