(
runtime: { command: string; args: string[]; env: Record<string, string> }
)
| 277 | } |
| 278 | |
| 279 | function buildOpenCodeEntry( |
| 280 | runtime: { command: string; args: string[]; env: Record<string, string> } |
| 281 | ): OpenCodeMcpEntry { |
| 282 | return { |
| 283 | type: 'local', |
| 284 | command: [runtime.command, ...runtime.args], |
| 285 | ...(Object.keys(runtime.env).length > 0 ? { environment: { ...runtime.env } } : {}), |
| 286 | enabled: true |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | /* ---------- Public API ----------------------------------------------- */ |
| 291 |
no outgoing calls
no test coverage detected