Nuxt MCP Server on Vercel
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 ) にマウントされます。
Related MCP server: Example Next.js MCP Server
設定
依存関係を必ずインストールしてください:
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に調整します。
サンプルクライアント
script/test-client.mjsには、呼び出しを試すためのサンプル クライアントが含まれています。
node scripts/test-client.mjs http://localhost:3000クレジット
このプロジェクトは、Next.js MCP テンプレートに基づいています。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- AlicenseDqualityDmaintenanceA ready-to-use starter implementation of the Model Context Protocol (MCP) server that enables applications to provide standardized context for LLMs with sample resources, tools, and prompts.21MIT
- AlicenseNot gradedqualityDmaintenanceA 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.MIT
- AlicenseNot gradedqualityDmaintenanceA sample implementation of Model Context Protocol server using Next.js and the Vercel MCP Adapter, allowing developers to create custom AI agent backends with tools, prompts, and resources.MIT
- AlicenseNot gradedqualityDmaintenanceA template for deploying Model Context Protocol servers as Next.js routes using the mcp-handler adapter, enabling easy integration of MCP tools, prompts, and resources into any Next.js application.MIT