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

Method constructor

packages/opencode/test/mcp/lifecycle.test.ts:167–171  ·  view source on GitHub ↗
(_info: any, options?: MockClientState["clientOptions"])

Source from the content-addressed store, hash-verified

165 transport: any
166
167 constructor(_info: any, options?: MockClientState["clientOptions"]) {
168 clientCreateCount++
169 this._state = getOrCreateClientState(lastCreatedClientName)
170 this._state.clientOptions = options
171 }
172
173 async connect(transport: { start: () => Promise<void> }) {
174 this.transport = transport

Callers

nothing calls this directly

Calls 1

getOrCreateClientStateFunction · 0.85

Tested by

no test coverage detected