A CLI that scans Next.js routes and provides quick insights from your terminal, web UI, and MCP.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add next-lens -- npx next-lens@latest mcp~/.codex/config.toml
[mcp_servers.next-lens]
command = "npx"
args = ["next-lens@latest", "mcp"]
# codex mcp add next-lens -- npx next-lens@latest mcp~/.cursor/mcp.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"next-lens": {
"type": "stdio",
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}