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

Function notifyArtifactUsage

packages/hosts/mcp/src/tool-server.ts:2262–2265  ·  view source on GitHub ↗
(action: "created" | "viewed" | "updated")

Source from the content-addressed store, hash-verified

2260
2261 // Best-effort usage observation; a failing observer never affects the tool.
2262 const notifyArtifactUsage = (action: "created" | "viewed" | "updated"): Effect.Effect<void> =>
2263 config.onArtifactUsage
2264 ? config.onArtifactUsage(action).pipe(Effect.ignoreCause({ log: false }))
2265 : Effect.void;
2266
2267 const saveAndDeliverArtifact = (input: {
2268 readonly code: string;

Callers 2

saveAndDeliverArtifactFunction · 0.70
showArtifactFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected