MCPcopy Create free account
hub / github.com/Noumena-Network/code / generateUniqueTeamName

Function generateUniqueTeamName

src/tools/TeamCreateTool/TeamCreateTool.ts:69–77  ·  view source on GitHub ↗

* Generates a unique team name by checking if the provided name already exists. * If the name already exists, generates a new word slug.

(providedName: string)

Source from the content-addressed store, hash-verified

67 * If the name already exists, generates a new word slug.
68 */
69function generateUniqueTeamName(providedName: string): string {
70 // If the team doesn't exist, use the provided name
71 if (!readTeamFile(providedName)) {
72 return providedName
73 }
74
75 // Team exists, generate a new unique name
76 return generateWordSlug()
77}
78
79export const TeamCreateTool: Tool<InputSchema, Output> = buildTool({
80 name: TEAM_CREATE_TOOL_NAME,

Callers 1

callFunction · 0.85

Calls 2

readTeamFileFunction · 0.85
generateWordSlugFunction · 0.85

Tested by

no test coverage detected