We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c86ed commit 857fd16Copy full SHA for 857fd16
src/tools/index.ts
@@ -15,9 +15,9 @@ function generateRandomString(length: number): string {
15
return result;
16
}
17
18
-// Generate tool names with random suffixes when the module is loaded
19
-const EXECUTE_SQL_TOOL_NAME = `execute_sql_${generateRandomString(8)}`;
20
-const LIST_CONNECTORS_TOOL_NAME = `list_connectors_${generateRandomString(8)}`;
+// Generate tool names with random suffixes when the module is loaded in case it is loaded multiple times
+const EXECUTE_SQL_TOOL_NAME = `execute_sql_${generateRandomString(4)}`;
+const LIST_CONNECTORS_TOOL_NAME = `list_connectors_${generateRandomString(4)}`;
21
22
/**
23
* Register all tool handlers with the MCP server
0 commit comments