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

Function applyAppsEnabled

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

Source from the content-addressed store, hash-verified

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