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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

3447 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
3448 // unknown-tool rejection) where re-listing inline would block the caller.
3449 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
3450 core.updateMany("connection", {
3451 where: (b: AnyCb) =>
3452 b.and(
3453 byOwner(ref.owner)(b),
3454 b("integration", "=", String(ref.integration)),
3455 b("name", "=", String(ref.name)),
3456 ),
3457 set: { tools_synced_at: null },
3458 });
3459
3460 // ------------------------------------------------------------------
3461 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected