Marketplace nextjs-devtools
install
source · Clone the upstream repo
git clone https://github.com/aiskillstore/marketplace
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/aiskillstore/marketplace "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/92bilal26/nextjs-devtools" ~/.claude/skills/aiskillstore-marketplace-nextjs-devtools && rm -rf "$T"
manifest:
skills/92bilal26/nextjs-devtools/SKILL.mdsource content
Next.js DevTools
Inspect and debug Next.js applications via MCP server.
Quick Start
# Start server (spawns on-demand) bash scripts/start-server.sh # Or use directly via mcp-client python3 scripts/mcp-client.py call \ -s "npx next-devtools-mcp@latest" \ -t list-routes
Available Tools
| Tool | Description |
|---|---|
| Get all app routes |
| Details for specific route |
| React components in app |
| Build configuration |
| next.config.js settings |
Workflow Patterns
Pattern 1: Route Inspection
# List all routes python3 scripts/mcp-client.py call \ -s "npx next-devtools-mcp@latest" \ -t list-routes # Get specific route details python3 scripts/mcp-client.py call \ -s "npx next-devtools-mcp@latest" \ -t get-route-info \ -p '{"route": "/api/auth"}'
Pattern 2: Debug Build Issues
# Check build config python3 scripts/mcp-client.py call \ -s "npx next-devtools-mcp@latest" \ -t get-build-info # Check next.config.js python3 scripts/mcp-client.py call \ -s "npx next-devtools-mcp@latest" \ -t get-config
Pattern 3: Component Discovery
python3 scripts/mcp-client.py call \ -s "npx next-devtools-mcp@latest" \ -t list-components
Scripts
start-server.sh
For persistent server (multiple calls):
bash scripts/start-server.sh # Server runs on default port # Use mcp-client.py with -u flag instead of -s
On-Demand (Recommended)
For single calls, use
-s flag which spawns server per-call:
python3 scripts/mcp-client.py call \ -s "npx next-devtools-mcp@latest" \ -t <tool-name>
Troubleshooting
| Issue | Solution |
|---|---|
| Server not starting | Check works manually |
| No routes found | Ensure running from Next.js project root |
| Build info empty | Run first |