MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / buildCodexConfigSnippet

Function buildCodexConfigSnippet

packages/shared/src/mcp/install.ts:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98function toBase64(input: string): string {
99 if (typeof globalThis.btoa === 'function') {
100 return globalThis.btoa(input)
101 }
102
103 const bufferLike = (globalThis as { Buffer?: BufferLike }).Buffer
104
105 if (bufferLike) {
106 return bufferLike.from(input, 'utf8').toString('base64')
107 }

Callers 1

install.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected