Skip to main content
Glama

NestJS MCP Server Module

by rekog-labs
MIT License
32,416
470
  • Apple
  • Linux
greeting.prompt.ts900 B
import { Injectable, Scope } from '@nestjs/common'; import { Prompt } from '../../src'; import { z } from 'zod'; @Injectable({ scope: Scope.REQUEST }) export class GreetingPrompt { constructor() {} @Prompt({ name: 'multilingual-greeting-guide', description: 'Simple instruction for greeting users in their native languages', parameters: z.object({ name: z.string().describe('The name of the person to greet'), language: z.string().describe('The language to use for the greeting'), }), }) getGreetingInstructions({ name, language }) { const result = { description: 'Greet users in their native languages!', messages: [ { role: 'user', content: { type: 'text', text: `Greet ${name} in their preferred language: ${language}`, }, }, ], }; return result; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rekog-labs/MCP-Nest'

If you have feedback or need assistance with the MCP directory API, please join our Discord server