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

Function makeURL

packages/opencode/src/server/server.ts:148–153  ·  view source on GitHub ↗
(hostname: string, port: number)

Source from the content-addressed store, hash-verified

146}
147
148function makeURL(hostname: string, port: number) {
149 const result = new URL("http://localhost")
150 result.hostname = hostname
151 result.port = String(port)
152 return result
153}
154
155function setupMdns(opts: ListenOptions, port: number, scope: Scope.Scope) {
156 return Effect.gen(function* () {

Callers 1

server.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected