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

Function applyAppsEnabled

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

Source from the content-addressed store, hash-verified

1557 * persist, and still return something useful (a deep link).
1558 */
1559 const applyAppsEnabled = (next: boolean): void => {
1560 appsEnabled = next;
1561 if (next) {
1562 executeActionTool?.enable();
1563 executeActionResumeTool?.enable();
1564 } else {
1565 executeActionTool?.disable();
1566 executeActionResumeTool?.disable();
1567 }
1568 };
1569
1570 // Best-effort usage observation; a failing observer never affects the tool.
1571 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