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

Function serverUrl

packages/opencode/test/server/httpapi-v2-pty.test.ts:58–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56const directoryHeader = (dir: string) => HttpClientRequest.setHeader("x-opencode-directory", dir)
57
58const serverUrl = () => HttpServer.HttpServer.use((server) => Effect.succeed(HttpServer.formatAddress(server.address)))
59
60afterEach(async () => {
61 await disposeAllInstances()

Callers 1

Calls 1

useMethod · 0.45

Tested by

no test coverage detected