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

Function removePolicy

packages/plugins/toolkits/src/server.ts:474–479  ·  view source on GitHub ↗
(toolkitId: string, policyId: string)

Source from the content-addressed store, hash-verified

472 });
473
474 const removePolicy = (toolkitId: string, policyId: string) =>
475 Effect.gen(function* () {
476 const toolkit = yield* requireToolkit(toolkitId);
477 yield* requirePolicy(toolkitId, policyId, toolkit.owner);
478 yield* storage.policies.remove({ owner: toolkit.owner, key: policyId });
479 });
480
481 const listConnections = (toolkitId: string) =>
482 requireToolkit(toolkitId).pipe(Effect.flatMap(() => listConnectionsForRecord(toolkitId)));

Callers

nothing calls this directly

Calls 3

requireToolkitFunction · 0.85
requirePolicyFunction · 0.85
removeMethod · 0.65

Tested by

no test coverage detected