File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1- export const previewFeatureValues = [ "search" ] as const ;
1+ export const previewFeatureValues = [ "search" , "mcpUI" ] as const ;
22export type PreviewFeature = ( typeof previewFeatureValues ) [ number ] ;
33
44export const similarityValues = [ "cosine" , "euclidean" , "dotProduct" ] as const ;
Original file line number Diff line number Diff line change @@ -728,6 +728,10 @@ export abstract class ToolBase {
728728 * @returns The result with UIResource appended if conditions are met, otherwise unchanged
729729 */
730730 private appendUIResourceIfAvailable ( result : CallToolResult ) : CallToolResult {
731+ if ( ! this . isFeatureEnabled ( "mcpUI" ) ) {
732+ return result ;
733+ }
734+
731735 const uiHtml = this . getUI ( ) ;
732736 if ( ! uiHtml || ! result . structuredContent ) {
733737 return result ;
You can’t perform that action at this time.
0 commit comments