MCPcopy Index your code
hub / github.com/anomalyco/opencode / example.ts

File example.ts

packages/sdk/js/example/example.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createOpencodeClient, createOpencodeServer } from "@opencode-ai/sdk"
2import { pathToFileURL } from "bun"
3
4const server = await createOpencodeServer()

Callers

nothing calls this directly

Calls 7

createOpencodeServerFunction · 0.90
createOpencodeClientFunction · 0.90
pushMethod · 0.80
createMethod · 0.65
promptMethod · 0.65
logMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected