Decorator to apply guards to MCP tools, resources, or prompts Guards control access and determine if an operation can execute
Guard classes to apply
@Injectable()class MyToolProvider { @UseMCPGuards(AuthGuard, RateLimitGuard) @MCPTool({ name: 'secure_tool', description: 'A secured tool' }) async secureTool() { return 'Protected data'; }} Copy
@Injectable()class MyToolProvider { @UseMCPGuards(AuthGuard, RateLimitGuard) @MCPTool({ name: 'secure_tool', description: 'A secured tool' }) async secureTool() { return 'Protected data'; }}
Decorator to apply guards to MCP tools, resources, or prompts Guards control access and determine if an operation can execute