MCPcopy Create free account
hub / github.com/tiann/hapi / buildTomlLiteralArray

Function buildTomlLiteralArray

cli/src/codex/utils/codexMcpConfig.ts:35–38  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

33}
34
35function buildTomlLiteralArray(values: string[]): string {
36 const items = values.map((value) => `'${escapeTomlLiteralString(value)}'`);
37 return `[${items.join(',')}]`;
38}
39
40function shellQuote(value: string): string {
41 if (value.length === 0) {

Callers 1

buildMcpServerConfigArgsFunction · 0.85

Calls 1

escapeTomlLiteralStringFunction · 0.85

Tested by

no test coverage detected