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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

3493 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
3494 // unknown-tool rejection) where re-listing inline would block the caller.
3495 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
3496 core.updateMany("connection", {
3497 where: (b: AnyCb) =>
3498 b.and(
3499 byOwner(ref.owner)(b),
3500 b("integration", "=", String(ref.integration)),
3501 b("name", "=", String(ref.name)),
3502 ),
3503 set: { tools_synced_at: null },
3504 });
3505
3506 // ------------------------------------------------------------------
3507 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected