Skip to content

Commit 90fed3c

Browse files
add s
1 parent c1d85e4 commit 90fed3c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { MCPTool } from './types';
88

99
export async function getTablesTools(): Promise<MCPTool> {
1010
const { token } = await authenticateAdminUserInOpenOpsTables();
11-
const mcpEndpoint = await openopsTables.getMcpEndpointList(token);
12-
if (isEmpty(mcpEndpoint)) {
11+
const mcpEndpoints = await openopsTables.getMcpEndpointList(token);
12+
if (isEmpty(mcpEndpoints)) {
1313
return {
1414
client: undefined,
1515
toolSet: {},
@@ -18,7 +18,7 @@ export async function getTablesTools(): Promise<MCPTool> {
1818

1919
const url =
2020
system.get(AppSystemProp.OPENOPS_TABLES_API_URL) +
21-
`/openops-tables/mcp/${mcpEndpoint[0].key}/sse`;
21+
`/openops-tables/mcp/${mcpEndpoints[0].key}/sse`;
2222

2323
const client = await createMCPClient({
2424
transport: {

0 commit comments

Comments
 (0)