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

Function createOpencode

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

Source from the content-addressed store, hash-verified

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

Callers 2

index.tsFile · 0.90
mainFunction · 0.90

Calls 2

createOpencodeServerFunction · 0.90
createOpencodeClientFunction · 0.90

Tested by

no test coverage detected