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

Function applyAppsEnabled

packages/hosts/mcp/src/tool-server.ts:1582–1591  ·  view source on GitHub ↗
(next: boolean)

Source from the content-addressed store, hash-verified

1580 * persist, and still return something useful (a deep link).
1581 */
1582 const applyAppsEnabled = (next: boolean): void => {
1583 appsEnabled = next;
1584 if (next) {
1585 executeActionTool?.enable();
1586 executeActionResumeTool?.enable();
1587 } else {
1588 executeActionTool?.disable();
1589 executeActionResumeTool?.disable();
1590 }
1591 };
1592
1593 // Best-effort usage observation; a failing observer never affects the tool.
1594 const notifyArtifactUsage = (action: "created" | "viewed" | "updated"): Effect.Effect<void> =>

Callers 2

appsSupportedFunction · 0.85
syncToolAvailabilityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected