MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getMultiSelectLabels

Function getMultiSelectLabels

src/utils/mcp/elicitationValidation.ts:80–88  ·  view source on GitHub ↗
(schema: MultiSelectEnumSchema)

Source from the content-addressed store, hash-verified

78 * Get display labels from a multi-select enum schema
79 */
80export function getMultiSelectLabels(schema: MultiSelectEnumSchema): string[] {
81 if ('anyOf' in schema.items) {
82 return schema.items.anyOf.map(item => item.title)
83 }
84 if ('enum' in schema.items) {
85 return schema.items.enum
86 }
87 return []
88}
89
90/**
91 * Get label for a specific value in a multi-select enum

Callers 1

getMultiSelectLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected