MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / parseMetadataArray

Function parseMetadataArray

server/src/billing/stripe-client.ts:64–67  ·  view source on GitHub ↗

* Parse comma-separated metadata value into array

(value: string | undefined)

Source from the content-addressed store, hash-verified

62 * Parse comma-separated metadata value into array
63 */
64function parseMetadataArray(value: string | undefined): string[] {
65 if (!value) return [];
66 return value.split(',').map(s => s.trim()).filter(Boolean);
67}
68
69/**
70 * Get all billing products from Stripe using lookup keys

Callers 2

getBillingProductsFunction · 0.85
updateProductMetadataFunction · 0.85

Calls 1

trimMethod · 0.65

Tested by

no test coverage detected