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

Function connectionsMarkToolsStale

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

Source from the content-addressed store, hash-verified

2928 // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an
2929 // unknown-tool rejection) where re-listing inline would block the caller.
2930 const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> =>
2931 core.updateMany("connection", {
2932 where: (b: AnyCb) =>
2933 b.and(
2934 byOwner(ref.owner)(b),
2935 b("integration", "=", String(ref.integration)),
2936 b("name", "=", String(ref.name)),
2937 ),
2938 set: { tools_synced_at: null },
2939 });
2940
2941 // ------------------------------------------------------------------
2942 // Active policy source.

Callers 1

createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected