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

Function connectionsMarkToolsStale

packages/core/sdk/src/executor.ts:4805–4814  ·  view source on GitHub ↗
(ref: ConnectionRef)

Source from the content-addressed store, hash-verified

4803 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
4804 // unknown-tool rejection) where re-listing inline would block the caller.
4805 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
4806 core.updateMany("connection", {
4807 where: (b: AnyCb) =>
4808 b.and(
4809 byOwner(ref.owner)(b),
4810 b("integration", "=", String(ref.integration)),
4811 b("name", "=", String(ref.name)),
4812 ),
4813 set: { tools_synced_at: null },
4814 });
4815
4816 // ------------------------------------------------------------------
4817 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected