Nuxt MCP Server on Vercel

by atinux

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 ).

Настраивать

Обязательно установите зависимости:

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.
  • Разверните шаблон 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

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.

  1. Использование
    1. Настраивать
      1. Сервер разработки
        1. Производство
          1. Заметки для бега на Vercel
            1. Образец клиента
              1. Кредиты

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  A 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 -
                  1
                  5
                  TypeScript
                • -
                  security
                  A
                  license
                  -
                  quality
                  A server that helps AI models better understand Vite/Nuxt applications, providing enhanced context awareness for development support.
                  Last updated -
                  467
                  TypeScript
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  A 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 -
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.
                  Last updated -
                  67
                  TypeScript
                  • Apple

                View all related MCP servers

                ID: p86z0ph6jw