MCPcopy Create free account
hub / github.com/anomalyco/opencode / start

Method start

packages/opencode/test/mcp/lifecycle.test.ts:132–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 // oxlint-disable-next-line no-useless-constructor
131 constructor(_url: URL, _opts?: any) {}
132 async start() {
133 if (connectShouldHang) return new Promise<void>(() => {}) // never resolves
134 if (connectShouldFail) throw new Error(connectError)
135 }
136 async close() {
137 transportCloseCount++
138 }

Callers 1

connectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected