File tree Expand file tree Collapse file tree
lib/user-interface/react/src/components/mcp-workbench Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ import ColorSchemeContext from '@/shared/color-scheme.provider';
4242import { Mode } from '@cloudscape-design/global-styles' ;
4343import { formatDate } from '@/shared/util/formats' ;
4444
45+ const AceEditorComponent : any = ( AceEditor as any ) ?. default ?? AceEditor ;
46+
4547// Set up a sample tool demonstration that builds the same MCP tool using both
4648// the function-based and class-based approaches.
4749const DEFAULT_CONTENT = `from mcpworkbench.core.annotations import mcp_tool
@@ -633,7 +635,7 @@ export function McpWorkbenchManagementComponent (): ReactElement {
633635 // disableHeaderPaddings={true}
634636 >
635637 < div style = { { overflow : 'hidden' , borderRadius : '16px' } } >
636- < AceEditor
638+ < AceEditorComponent
637639 theme = { colorScheme === Mode . Light ? 'cloud_editor' : 'cloud_editor_dark' }
638640 showGutter = { true }
639641 value = { state . form . contents }
You can’t perform that action at this time.
0 commit comments