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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

4073 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
4074 // unknown-tool rejection) where re-listing inline would block the caller.
4075 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
4076 core.updateMany("connection", {
4077 where: (b: AnyCb) =>
4078 b.and(
4079 byOwner(ref.owner)(b),
4080 b("integration", "=", String(ref.integration)),
4081 b("name", "=", String(ref.name)),
4082 ),
4083 set: { tools_synced_at: null },
4084 });
4085
4086 // ------------------------------------------------------------------
4087 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected