Skip to main content
Glama

Vercel 上の Nuxt MCP サーバー

これは@vercel/mcp-adapterを使用して Vercel 上で MCP サーバーとして機能するシンプルな Nuxt アプリケーションです。

使用法

このサンプル アプリは、任意の Nuxt プロジェクト内のルートのグループに MCP サーバーをドロップインできるVercel MCP アダプターを使用します。

MCP TypeScript SDK ドキュメントに従って、ツール、プロンプト、リソースを使用してserver/routes/mcp/[transport].ts更新します。

MCP サーバーは/mcp/[transport] (例: /mcp/sse ) にマウントされます。

設定

依存関係を必ずインストールしてください:

pnpm install

開発サーバー

Redis がローカルで実行されていることを確認します。

redis-server

別のターミナルでhttp://localhost:3000開発サーバーを起動します。

pnpm dev

生産

本番環境用にアプリケーションをビルドします。

pnpm build

ローカルで製品ビルドをプレビューします。

pnpm preview

詳細については、デプロイメントのドキュメントを参照してください。

Vercelで実行する場合の注意事項

  • SSEトランスポートを使用するには、 process.env.REDIS_URLの下のプロジェクトにRedisが接続されている必要があります。

  • 効率的な実行のためにFluid Computeが有効になっていることを確認してください

  • Fluidコンピューティングを有効にした後、 server/routes/mcp/[transport].tsを開き、Vercel ProまたはEnterpriseアカウントを使用している場合はmaxDurationを800に調整します。

  • Nuxt MCPテンプレートをデプロイする

サンプルクライアント

script/test-client.mjsには、呼び出しを試すためのサンプル クライアントが含まれています。

node scripts/test-client.mjs http://localhost:3000

クレジット

このプロジェクトは、Next.js MCP テンプレートに基づいています。

-
security - not tested
F
license - not found
-
quality - not tested

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    MCP server that helps AI models understand Vite/Nuxt applications better, available as both a Nuxt module and Vite plugin.
    Last updated -
    MIT License
  • -
    security
    A
    license
    -
    quality
    A drop-in MCP server implementation for Next.js projects using Vercel MCP Adapter, allowing developers to integrate model context protocol functionality with custom tools, prompts, and resources.
    Last updated -
    MIT License
  • -
    security
    A
    license
    -
    quality
    A sample implementation of a Model Context Protocol server using Next.js and the Vercel MCP Adapter, allowing developers to create AI assistants with custom tools and resources.
    Last updated -
    MIT License
  • -
    security
    A
    license
    -
    quality
    A template for running Model Context Protocol servers on Vercel with Redis support, allowing developers to deploy their custom tools, prompts, and resources using the MCP TypeScript SDK.
    Last updated -
    MIT License

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/atinux/mcp-with-nuxt-vercel'

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