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 @@ -8,8 +8,8 @@ import { MCPTool } from './types';
88
99export 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 : {
You can’t perform that action at this time.
0 commit comments