(prefix: 'claude' | 'codex')
| 104 | |
| 105 | if (bufferLike) { |
| 106 | return bufferLike.from(input, 'utf8').toString('base64') |
| 107 | } |
| 108 | |
| 109 | throw new Error('Base64 encoding not supported in this environment.') |
| 110 | } |
| 111 | |
| 112 | function buildVscodeDeepLink(): string { |
| 113 | return `vscode:mcp/install?${encodeURIComponent( |
| 114 | JSON.stringify({ |
| 115 | name: SERVER_NAME, |
| 116 | ...stdioConfig |