Skip to main content
Glama

Next.js MCP Server

by vertile-ai

Next.js MCP サーバー

Next.js アプリケーションのルートを分析し、詳細な情報を提供するユーティリティ ツールです。

デモ

ルーター分析デモ

概要

  • get-routers-infoRouter Analyzer は、Next.js アプリのディレクトリ構造をスキャンし、次のようなすべての API ルートに関する情報を抽出します。
    • APIパス
    • HTTP メソッド (GET、POST、PUT、DELETE など)
    • リクエストパラメータ
    • ステータスコード
    • リクエストとレスポンスのスキーマ

これは、ドキュメント作成、テスト、または API 管理ツールとの統合に特に役立ちます。

インストール

npm install next-mcp-server

または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ルートの構造化された表現を返します

ライセンス

マサチューセッツ工科大学

-
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
                  Provides application insights for Vue apps by exposing component trees, state, routes, and Pinia data through a Model Context Protocol server.
                  Last updated -
                  1,519
                  490
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server designed to facilitate Nextflow development and testing, providing tools for building from source, running tests, and managing the Nextflow development environment.
                  Last updated -
                  1
                  Python
                  • Apple
                  • Linux
                • -
                  security
                  F
                  license
                  -
                  quality
                  Enables real-time communication between applications and AI models using the Model Context Protocol, supporting features like custom tools and multiple transport options for Next.js applications.
                  Last updated -
                  26,365
                  TypeScript
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  Routes requests to multiple downstream Model Context Protocol servers and provides a LangGraph.js-based agent with RAG capabilities for development assistance.
                  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