Skip to content

Commit 857fd16

Browse files
committed
chore: decrease tool random suffix to 4 letters
1 parent d6c86ed commit 857fd16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function generateRandomString(length: number): string {
1515
return result;
1616
}
1717

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)}`;
18+
// Generate tool names with random suffixes when the module is loaded in case it is loaded multiple times
19+
const EXECUTE_SQL_TOOL_NAME = `execute_sql_${generateRandomString(4)}`;
20+
const LIST_CONNECTORS_TOOL_NAME = `list_connectors_${generateRandomString(4)}`;
2121

2222
/**
2323
* Register all tool handlers with the MCP server

0 commit comments

Comments
 (0)