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

Function serverUrl

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

Source from the content-addressed store, hash-verified

47}
48
49function serverUrl() {
50 return HttpServer.HttpServer.use((server) => Effect.succeed(HttpServer.formatAddress(server.address)))
51}
52
53const directoryHeader = (dir: string) => HttpClientRequest.setHeader("x-opencode-directory", dir)
54

Callers 1

Calls 1

useMethod · 0.45

Tested by

no test coverage detected