Skip to content

Commit 9f0f1a0

Browse files
committed
fix: shorten name of tool to allow for 60 chars limit for server name + tool name
1 parent 942eff3 commit 9f0f1a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/docs-formatter-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export class DocsFormatter {
5050
* Normalizes a module name for use as a tool identifier
5151
*/
5252
normalizeModuleName (name: string): string {
53-
const toolName = `get_api_for-${name.toLowerCase().replace(/[^a-zA-Z0-9_-]/g, '')}`
54-
return toolName.length > 64 ? toolName.slice(0, 63) : toolName
53+
const toolName = `${name.toLowerCase().replace(/[^a-zA-Z0-9_-]/g, '')}`
54+
return toolName.length > 47 ? toolName.slice(0, 47) : toolName
5555
}
5656

5757
formatModuleSummary (module: ApiModule): string {

0 commit comments

Comments
 (0)