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

Function requireToolkit

packages/plugins/toolkits/src/server.ts:260–263  ·  view source on GitHub ↗
(toolkitId: string)

Source from the content-addressed store, hash-verified

258 );
259
260 const requireToolkit = (toolkitId: string) =>
261 getEntry(toolkitId).pipe(
262 Effect.flatMap((entry) => (entry ? Effect.succeed(entry) : fail("Toolkit not found."))),
263 );
264
265 const assertSlugAvailable = (slug: string, ignoreToolkitId?: string) =>
266 storage.toolkits.query({ where: { slug } }).pipe(

Callers 9

updateFunction · 0.85
removeFunction · 0.85
listPoliciesFunction · 0.85
createPolicyFunction · 0.85
updatePolicyFunction · 0.85
removePolicyFunction · 0.85
listConnectionsFunction · 0.85
createConnectionFunction · 0.85
removeConnectionFunction · 0.85

Calls 2

getEntryFunction · 0.85
failFunction · 0.70

Tested by

no test coverage detected