Skip to main content
Glama

Next.js MCP Server

by vertile-ai

Next.js MCP 서버

Next.js 애플리케이션 경로를 분석하고 해당 경로에 대한 자세한 정보를 제공하는 유틸리티 도구입니다.

데모

라우터 분석 데모

개요

  • get-routers-info라우터 분석기는 Next.js 앱 디렉토리 구조를 스캔하고 다음을 포함한 모든 API 경로에 대한 정보를 추출합니다.
    • API 경로
    • HTTP 메서드(GET, POST, PUT, DELETE 등)
    • 요청 매개변수
    • 상태 코드
    • 요청 및 응답 스키마

이 기능은 API 관리 도구와의 문서화, 테스트 또는 통합에 특히 유용합니다.

설치

지엑스피1

또는 pnpm을 사용하는 경우:

pnpm add next-mcp-server

용법

명령줄

mcp 서버를 직접 실행할 수 있습니다.

npm run build node dist/index.js

도커

docker build -t mcp/next -f Dockerfile . docker run mcp/next -d

산출

이 도구는 각 경로에 대한 자세한 정보를 생성합니다.

[ { "filePath": "/path/to/your/app/api/test/route.ts", "implementationPath": "/path/to/your/app/api/test/route.ts", "apiPath": "/api/test", "handlers": [ { "method": "GET", "path": "/api/test", "functionSignature": "export async function GET(request: Request)", "description": "Get test data", "parameters": [], "statusCodes": [200] }, { "method": "POST", "path": "/api/test", "functionSignature": "export async function POST(request: Request)", "description": "Create test data", "parameters": [], "requestBodySchema": "{ name: string }", "statusCodes": [201, 400] } ] } ]

개발

테스트를 실행하려면:

node run-router-test.js

작동 원리

도구:

  1. Next.js 앱 디렉토리 구조에서 경로 파일을 스캔합니다.
  2. 각 경로 파일을 분석하여 HTTP 메서드, 경로, 매개변수 등을 추출합니다.
  3. 주석에서 문서를 추출합니다.
  4. 모든 API 경로의 구조화된 표현을 반환합니다.

특허

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

Next.js 애플리케이션 경로를 분석하고 API 경로, HTTP 메서드, 매개변수, 상태 코드, 요청/응답 스키마에 대한 자세한 정보를 제공하는 유틸리티 도구입니다.

  1. 데모
    1. 개요
      1. 설치
        1. 용법
          1. 명령줄
          2. 도커
        2. 산출
          1. 개발
            1. 작동 원리
              1. 특허

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  An unofficial JavaScript SDK to create customized servers for the Model Context Protocol, allowing definition of prompts, resources, and tools for tailored interactions.
                  Last updated -
                  6
                  2
                  JavaScript
                  Apache 2.0
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  A comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.
                  Last updated -
                  7
                  2
                  JavaScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  Node.js server implementing Model Context Protocol that enables interaction with TaskWarrior through natural language to view, filter, add, and complete tasks.
                  Last updated -
                  3
                  13
                  1
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Node.js and TypeScript server project that provides a simple starter example with Express.js web server, supporting hot-reload, testing, and modular structure.
                  Last updated -
                  TypeScript

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/vertile-ai/next-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server