MCPcopy Index your code
hub / github.com/anomalyco/opencode / createOpencode

Function createOpencode

packages/sdk/js/src/v2/index.ts:10–23  ·  view source on GitHub ↗
(options?: ServerOptions)

Source from the content-addressed store, hash-verified

8export * as data from "./data.js"
9
10export async function createOpencode(options?: ServerOptions) {
11 const server = await createOpencodeServer({
12 ...options,
13 })
14
15 const client = createOpencodeClient({
16 baseUrl: server.url,
17 })
18
19 return {
20 client,
21 server,
22 }
23}

Callers

nothing calls this directly

Calls 2

createOpencodeServerFunction · 0.90
createOpencodeClientFunction · 0.90

Tested by

no test coverage detected