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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

5399 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
5400 // unknown-tool rejection) where re-listing inline would block the caller.
5401 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
5402 core.updateMany("connection", {
5403 where: (b: AnyCb) =>
5404 b.and(
5405 byOwner(ref.owner)(b),
5406 b("integration", "=", String(ref.integration)),
5407 b("name", "=", String(ref.name)),
5408 ),
5409 set: { tools_synced_at: null },
5410 });
5411
5412 // ------------------------------------------------------------------
5413 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected