Skip to content

Commit b098819

Browse files
Check tables mcp endpoints list for length
1 parent ac332ab commit b098819

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { MCPTool } from './types';
88
export async function getTablesTools(): Promise<MCPTool> {
99
const { token } = await authenticateAdminUserInOpenOpsTables();
1010
const mcpEndpoint = await openopsTables.getMcpEndpointList(token);
11-
if (!mcpEndpoint) {
11+
if (!mcpEndpoint || mcpEndpoint.length === 0) {
1212
return {
1313
client: undefined,
1414
toolSet: {},

0 commit comments

Comments
 (0)