Nuxt MCP Server on Vercel
Сервер Nuxt MCP на Vercel
Это простое приложение Nuxt, которое выполняет функции сервера MCP на Vercel, используя @vercel/mcp-adapter .
Использование
В этом примере приложения используется адаптер Vercel MCP , который позволяет вам подключить сервер MCP к группе маршрутов в любом проекте Nuxt.
Обновите server/routes/mcp/[transport].ts добавив необходимые инструменты, подсказки и ресурсы в соответствии с документацией MCP TypeScript SDK .
Сервер 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 требуется Redis, подключенный к проекту в
process.env.REDIS_URLУбедитесь, что у вас включены вычисления Fluid для эффективного выполнения
После включения вычислений Fluid откройте
server/routes/mcp/[transport].tsи изменитеmaxDurationна 800, если вы используете учетную запись Vercel Pro или Enterprise.
Образец клиента
script/test-client.mjs содержит пример клиента для пробных вызовов.
node scripts/test-client.mjs http://localhost:3000Кредиты
Этот проект основан на шаблоне Next.js MCP .
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
- FlicenseDqualityDmaintenanceA 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.212 npm1-
- 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