MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / constructor

Method constructor

src/mcp/auth.ts:103–108  ·  view source on GitHub ↗
(serverName: string, callbackPort: number, scope?: string)

Source from the content-addressed store, hash-verified

101 private codeResolve?: (code: string) => void
102
103 constructor(serverName: string, callbackPort: number, scope?: string) {
104 this.serverName = serverName
105 this.callbackPort = callbackPort
106 this.scope = scope
107 this.store = readAuthStore(serverName) ?? {}
108 }
109
110 get redirectUrl(): string {
111 return `http://localhost:${this.callbackPort}/callback`

Callers

nothing calls this directly

Calls 1

readAuthStoreFunction · 0.85

Tested by

no test coverage detected