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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

5270 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
5271 // unknown-tool rejection) where re-listing inline would block the caller.
5272 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
5273 core.updateMany("connection", {
5274 where: (b: AnyCb) =>
5275 b.and(
5276 byOwner(ref.owner)(b),
5277 b("integration", "=", String(ref.integration)),
5278 b("name", "=", String(ref.name)),
5279 ),
5280 set: { tools_synced_at: null },
5281 });
5282
5283 // ------------------------------------------------------------------
5284 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected