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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

2912 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
2913 // unknown-tool rejection) where re-listing inline would block the caller.
2914 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
2915 core.updateMany("connection", {
2916 where: (b: AnyCb) =>
2917 b.and(
2918 byOwner(ref.owner)(b),
2919 b("integration", "=", String(ref.integration)),
2920 b("name", "=", String(ref.name)),
2921 ),
2922 set: { tools_synced_at: null },
2923 });
2924
2925 // ------------------------------------------------------------------
2926 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected