MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / requireConnection

Function requireConnection

packages/plugins/toolkits/src/server.ts:340–349  ·  view source on GitHub ↗
(toolkitId: string, connectionId: string, owner: Owner)

Source from the content-addressed store, hash-verified

338 );
339
340 const requireConnection = (toolkitId: string, connectionId: string, owner: Owner) =>
341 storage.connections
342 .getForOwner({ owner, key: connectionId })
343 .pipe(
344 Effect.flatMap((entry) =>
345 entry && entry.data.toolkitId === toolkitId
346 ? Effect.succeed(entry)
347 : fail("Toolkit connection not found."),
348 ),
349 );
350
351 const create = (input: {
352 readonly owner: Owner;

Callers 1

removeConnectionFunction · 0.85

Calls 1

failFunction · 0.70

Tested by

no test coverage detected