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

Function getMultiSelectValues

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

Source from the content-addressed store, hash-verified

65 * Get values from a multi-select enum schema
66 */
67export function getMultiSelectValues(schema: MultiSelectEnumSchema): string[] {
68 if ('anyOf' in schema.items) {
69 return schema.items.anyOf.map(item => item.const)
70 }
71 if ('enum' in schema.items) {
72 return schema.items.enum
73 }
74 return []
75}
76
77/**
78 * Get display labels from a multi-select enum schema

Callers 3

ElicitationFormDialogFunction · 0.85
renderFormFieldsFunction · 0.85
getMultiSelectLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected