Integrations
Supports containerized deployment of the MCP server through Docker, allowing for isolated and portable execution of the route analysis functionality.
Analyzes Next.js application routes and provides detailed information about API endpoints, including paths, HTTP methods, parameters, status codes, and request/response schemas. Useful for documentation, testing, and API management.
Next.js MCP 服务器
一个实用工具,可分析您的 Next.js 应用程序路由并提供有关它们的详细信息。
演示
概述
get-routers-info
路由器分析器会扫描您的 Next.js 应用目录结构并提取有关所有 API 路由的信息,包括:- API 路径
- HTTP 方法(GET、POST、PUT、DELETE 等)
- 请求参数
- 状态代码
- 请求和响应架构
这对于文档、测试或与 API 管理工具集成特别有用。
安装
Copy
或者如果你使用 pnpm:
Copy
用法
命令行
您可以直接运行 mcp 服务器:
Copy
Docker
Copy
输出
该工具会生成有关每条路线的详细信息:
Copy
发展
运行测试:
Copy
工作原理
该工具:
- 扫描 Next.js 应用目录结构以查找路由文件
- 分析每个路由文件以提取 HTTP 方法、路径、参数等。
- 从评论中提取文档
- 返回所有 API 路由的结构化表示
执照
麻省理工学院
This server cannot be installed
一个实用工具,用于分析 Next.js 应用程序路由并提供有关 API 路径、HTTP 方法、参数、状态代码和请求/响应模式的详细信息。