Empower NestJS applications to define and expose 'tools' and prompts for LLM and HTTP, complete with automatic detection, validation, and OpenAI Function Calls integration.
Sponsored
This NestJS module introduces the Model Context Protocol (MCP), enabling developers to seamlessly integrate custom 'tools' and prompts into their applications for use with Large Language Models (LLMs) or via HTTP endpoints. It simplifies the process of creating callable functions and context-aware prompts through decorators, offering automatic detection, robust input validation, and native support for OpenAI Function Calls, streamlining the development of intelligent, interactive services.
Key Features
01Automatic detection and exposure of all registered tools and prompts.
02Seamless integration with OpenAI Function Calls and dedicated HTTP endpoints.
03Built-in input data validation for tools.
04Declarative prompt registration using `@McpPrompt()` decorators.
051 GitHub stars
06Declarative tool registration using `@McpTool()` decorators.
Use Cases
01Building AI agents that interact with specific application logic via predefined tools.
02Exposing internal NestJS services as callable functions for Large Language Models.
03Creating dynamic and context-aware prompts for LLM applications.