File tree Expand file tree Collapse file tree
packages/server/api/src/app/ai/mcp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { createAxiosHeaders } from '@openops/common' ;
22import { AppSystemProp , system } from '@openops/server-shared' ;
3+ import { isEmpty } from '@openops/shared' ;
34import { experimental_createMCPClient as createMCPClient , ToolSet } from 'ai' ;
45import { openopsTables } from '../../openops-tables' ;
56import { authenticateAdminUserInOpenOpsTables } from '../../openops-tables/auth-admin-tables' ;
@@ -8,7 +9,7 @@ import { MCPTool } from './types';
89export async function getTablesTools ( ) : Promise < MCPTool > {
910 const { token } = await authenticateAdminUserInOpenOpsTables ( ) ;
1011 const mcpEndpoint = await openopsTables . getMcpEndpointList ( token ) ;
11- if ( ! mcpEndpoint ?. length ) {
12+ if ( isEmpty ( mcpEndpoint ) ) {
1213 return {
1314 client : undefined ,
1415 toolSet : { } ,
You can’t perform that action at this time.
0 commit comments