MCPcopy
hub / github.com/codeaashu/claude-code / generateUniqueTeamName

Function generateUniqueTeamName

src/tools/TeamCreateTool/TeamCreateTool.ts:64–72  ·  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

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

Callers 1

callFunction · 0.85

Calls 2

readTeamFileFunction · 0.85
generateWordSlugFunction · 0.85

Tested by

no test coverage detected