MCPcopy
hub / github.com/npmx-dev/npmx.dev / connect

Method connect

cli/src/mock-state.ts:109–116  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

107 // -- Connection --
108
109 connect(token: string): boolean {
110 if (token !== this.state.config.token) {
111 return false
112 }
113 this.state.connected = true
114 this.state.connectedAt = Date.now()
115 return true
116 }
117
118 disconnect(): void {
119 this.state.connected = false

Callers 3

runFunction · 0.95
createMockConnectorAppFunction · 0.80
mock-state.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected