RL

rekog-labs/mcp-nest

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

726 stars 125 forks 품질 71 트렌드 42MIT

AI 도구, 자원, 프롬프트를 노출하기 위해 모델 컨텍스트 프로토콜(MCP) 서버를 손쉽게 생성할 수 있는 NestJS 모듈입니다.

개요

! [CI] [ci-URL] ! [코드 커버리지] [코드-커버리지-URL] ! [NPM 버전] [npm-URL] ! [NPM 다운로드 중] [npm-url] ! [NPM 라이선스] [npm-URL] NestJS 모듈로, NestJS 애플리케이션에서 AI를 위한 도구, 리소스, 프롬프트를 손쉽게 노출할 수 있는 NestJS 모듈입니다. @rekog/mcp-nest를 사용하면 NestJS에서 익숙한 방식으로 도구, 리소스, 프롬프트를 정의하고, 의존성 주입의 모든 힘을 활용해 기존 코드베이스를 활용해 복잡한 엔터프라이즈용 MCP 서버를 구축할 수 있습니다. - 🚀 : HTTP+SSE, Streamable HTTP, STDIO - 🔧 : NestJS 메서드를 MCP 도구로 노출하여 자동 검색 및 Zod 검증 - 🛠️ : 사용자 입력 유도가 가능한 인터랙티브 툴 호출 - 🌐 : MCP 핸들러 내 요청 컨텍스트에 대한 완전한 접근 - 🔐 : 도구에 대한 세밀한 권한 부여 구현 - 📁 : MCP 리소스 시스템을 통한 콘텐츠 및 데이터 제공 - 📚 : 매개변수화된 URI를 가진 동적 자원 - 💬 : AI 상호작용을 위한 재사용 가능한 프롬프트 템플릿 정의 - 🔐 : OAuth 지원이 포함된 가드 기반 보안 - 🏠 ...

개요(AI 번역)

NestJS 모듈로, **Model Context Protocol(MCP)**을 사용해 NestJS 애플리케이션에서 AI용 도구, 리소스, 프롬프트를 손쉽게 노출할 수 있습니다.

@rekog/mcp-nest에서는 NestJS에서 익숙한 방식으로 도구, 리소스, 프롬프트를 정의하고, 의존성 주입의 모든 힘을 활용해 기존 코드베이스를 활용해 복잡한 엔터프라이즈용 MCP 서버를 구축할 수 있습니다.

특징

  • 🧩 NestJS 마이크로서비스 전략: MCP는 CustomTransportStrategy로 실행되므로 도구/자원/프롬프트는 실제 @MessagePattern 핸들러입니다 — 가드, 파이프, 인터셉터, 예외 필터가 네이티브로 적용됩니다
  • 🚀 다중 전송 지원: 스트리밍 가능한 HTTP 및 STDIO — transports 배열을 통해 선택
  • 🕰️ 이중 시대 프로토콜 지원: 한 엔드포인트가 2025년 프로토콜(initialize + 세션)과 상태 없는 2026-07-28 개정판을 동시에 제공하며 도구 코드에 변경 없음
  • 🔧 도구: 자동 검색 및 Zod 검증이 가능한 MCP 도구로 NestJS 메서드를 공개
  • 🛠️ 유도: 사용자 입력이 포함된 상호작용 도구 호출

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

NestJS MCP Server Module

A NestJS module to effortlessly expose tools, resources, and prompts for AI, from your NestJS applications using the Model Context Protocol (MCP).

With @rekog/mcp-nest you define tools, resources, and prompts in a way that’s familiar in NestJS and leverage the full power of dependency injection to utilize your existing codebase in building complex enterprise ready MCP servers.

Features

  • 🧩 NestJS Microservice Strategy: MCP runs as a CustomTransportStrategy, so tools/resources/prompts are real @MessagePattern handlers — guards, pipes, interceptors, and exception filters apply to them natively
  • 🚀 Multi-Transport Support: Streamable HTTP and STDIO — selected via the transports array
  • 🕰️ Dual-Era Protocol Support: One endpoint serves both the 2025-era protocol (initialize + sessions) and the stateless 2026-07-28 revision, concurrently — with no change to your tool code
  • 🔧 Tools: Expose NestJS methods as MCP tools with automatic discovery and Zod validation
  • 📁 Resources: Serve content and data through MCP resource system
  • 📚 Resource Templates: Dynamic resources with parameterized URIs
  • 💬 Prompts: Define reusable prompt templates for AI interactions
  • 🔐 Guard-based Authentication: Guard-based security with OAuth support
  • 🏠 Built-in Authorization Server — Using the built-in Authorization Server for easy setups. (Beta)
  • 🌐 External Authorization Server — Securing your MCP server with an external authorization server (Keycloak, Auth0, etc).
  • 💉 Dependency Injection: Leverage NestJS DI system throughout MCP components
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →