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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

3856 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
3857 // unknown-tool rejection) where re-listing inline would block the caller.
3858 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
3859 core.updateMany("connection", {
3860 where: (b: AnyCb) =>
3861 b.and(
3862 byOwner(ref.owner)(b),
3863 b("integration", "=", String(ref.integration)),
3864 b("name", "=", String(ref.name)),
3865 ),
3866 set: { tools_synced_at: null },
3867 });
3868
3869 // ------------------------------------------------------------------
3870 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected