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
Сервер 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
).
Настраивать
Обязательно установите зависимости:
Сервер разработки
Убедитесь, что Redis запущен локально:
Запустите сервер разработки на другом терминале по адресу http://localhost:3000
:
Производство
Создайте приложение для производства:
Локальный предварительный просмотр производственной сборки:
Более подробную информацию можно найти в документации по развертыванию .
Заметки для бега на Vercel
- Для использования транспорта SSE требуется Redis, подключенный к проекту в
process.env.REDIS_URL
- Убедитесь, что у вас включены вычисления Fluid для эффективного выполнения
- После включения вычислений Fluid откройте
server/routes/mcp/[transport].ts
и изменитеmaxDuration
на 800, если вы используете учетную запись Vercel Pro или Enterprise. - Разверните шаблон 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.
Простое приложение Nuxt, которое служит сервером Model Context Protocol, развертываемым на Vercel, позволяя разработчикам реализовывать инструменты, подсказки и ресурсы ИИ с помощью MCP TypeScript SDK.
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