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

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

설정

종속성을 설치해야 합니다.

지엑스피1

개발 서버

Redis가 로컬에서 실행되고 있는지 확인하세요.

redis-server

다른 터미널에서 http://localhost:3000 으로 개발 서버를 시작합니다.

pnpm dev

생산

프로덕션을 위한 애플리케이션을 빌드합니다.

pnpm build

로컬로 프로덕션 빌드를 미리 보기:

pnpm preview

자세한 내용은 배포 문서를 확인하세요.

Vercel에서 실행하기 위한 참고 사항

  • SSE 전송을 사용하려면 process.env.REDIS_URL 아래 프로젝트에 연결된 Redis가 필요합니다.
  • 효율적인 실행을 위해 Fluid 컴퓨팅이 활성화되어 있는지 확인하세요.
  • Fluid 컴퓨팅을 활성화한 후 server/routes/mcp/[transport].ts 열고 Vercel Pro 또는 Enterprise 계정을 사용하는 경우 maxDuration 800으로 조정합니다.
  • 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.

Vercel에 배포할 수 있는 모델 컨텍스트 프로토콜 서버 역할을 하는 간단한 Nuxt 애플리케이션으로, 개발자는 이를 통해 MCP TypeScript SDK를 통해 AI 도구, 프롬프트 및 리소스를 구현할 수 있습니다.

  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