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のツール、リソース、プロンプトを簡単に公開できます。 @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アレイを通じて選択
  • 🕰️ デュアルエラプロトコルサポート:1つのエンドポイントが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 のガイドから始めましょう →