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

Function applyAppsEnabled

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

Source from the content-addressed store, hash-verified

2254 * persist, and still return something useful (a deep link).
2255 */
2256 const applyAppsEnabled = (next: boolean): void => {
2257 appsEnabled = next;
2258 if (next) {
2259 executeActionTool?.enable();
2260 executeActionResumeTool?.enable();
2261 } else {
2262 executeActionTool?.disable();
2263 executeActionResumeTool?.disable();
2264 }
2265 };
2266
2267 // Best-effort usage observation; a failing observer never affects the tool.
2268 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