Integrations
Serves as a foundation for the MCP server, allowing it to be integrated into any Nuxt project with custom routes
Required for using the SSE transport in production, serving as the backing store for message handling
Provides type definitions and SDK support for building MCP tools, prompts, and resources
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
) にマウントされます。
設定
依存関係を必ずインストールしてください:
開発サーバー
Redis がローカルで実行されていることを確認します。
別のターミナルでhttp://localhost:3000
開発サーバーを起動します。
生産
本番環境用にアプリケーションをビルドします。
ローカルで製品ビルドをプレビューします。
詳細については、デプロイメントのドキュメントを参照してください。
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
には、呼び出しを試すためのサンプル クライアントが含まれています。
クレジット
このプロジェクトは、Next.js MCP テンプレートに基づいています。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Vercel にデプロイ可能なモデル コンテキスト プロトコル サーバーとして機能するシンプルな Nuxt アプリケーション。開発者は MCP TypeScript SDK を通じて AI ツール、プロンプト、リソースを実装できます。
Related MCP Servers
- AsecurityFlicenseAqualityA template for creating Model Context Protocol (MCP) servers in TypeScript, offering features like container-based dependency injection, a service-based architecture, and integration with the LLM CLI for architectural design feedback through natural language.Last updated -15TypeScript
- -securityAlicense-qualityA server that helps AI models better understand Vite/Nuxt applications, providing enhanced context awareness for development support.Last updated -467TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that allows management of Netlify sites, enabling users to create, list, get information about, and delete Netlify sites directly from an MCP-enabled environment.Last updated -JavaScriptMIT License
- -securityFlicense-qualityA TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.Last updated -67TypeScript