Skip to content

Commit 4da41ca

Browse files
Add error log incase no table mcp tools were found (#1733)
Fixes OPS-3189
1 parent bf2660c commit 4da41ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/server/api/src/app/ai/mcp/tables-tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createAxiosHeaders } from '@openops/common';
2-
import { AppSystemProp, system } from '@openops/server-shared';
2+
import { AppSystemProp, logger, system } from '@openops/server-shared';
33
import { isEmpty } from '@openops/shared';
44
import { experimental_createMCPClient as createMCPClient, ToolSet } from 'ai';
55
import { openopsTables } from '../../openops-tables';
@@ -10,6 +10,7 @@ export async function getTablesTools(): Promise<MCPTool> {
1010
const { token } = await authenticateAdminUserInOpenOpsTables();
1111
const mcpEndpoints = await openopsTables.getMcpEndpointList(token);
1212
if (isEmpty(mcpEndpoints)) {
13+
logger.error('No MCP endpoints found from OpenOps Tables');
1314
return {
1415
client: undefined,
1516
toolSet: {},

0 commit comments

Comments
 (0)