import { Injectable, Scope } from '@nestjs/common'; import { Resource } from '../src'; @Injectable({ scope: Scope.REQUEST }) export class PlaygroundResource { constructor() {} @Resource({ name: 'hello-world', description: 'A simple greeting resource', mimeType: 'text/plain', uri: 'mcp://hello-world/{name}', }) sayHello({ name }) { return { contents: [ { uri: 'mcp://hello-world', mimeType: 'text/plain', text: `Hello ${name}`, }, ], }; } }