MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / buildOpenCodeEntry

Function buildOpenCodeEntry

apps/desktop/src/main/mcp-integrations.ts:279–288  ·  view source on GitHub ↗
(
  runtime: { command: string; args: string[]; env: Record<string, string> }
)

Source from the content-addressed store, hash-verified

277}
278
279function 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

Callers 2

getMcpClientStatusesFunction · 0.85
installMcpForClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected