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

Function bindingCandidates

packages/hosts/mcp/src/tool-server.ts:1280–1293  ·  view source on GitHub ↗
(integration: string)

Source from the content-addressed store, hash-verified

1278 * connections port is optional, and a failure to enumerate must not
1279 * replace the real error with a different one. */
1280 const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> =>
1281 config.connections
1282 ? config.connections.list().pipe(
1283 Effect.map((all) =>
1284 all
1285 .filter((connection) => connection.integration === integration)
1286 .map(
1287 (connection) =>
1288 `${connection.integration}.${connection.owner}.${connection.name}`,
1289 ),
1290 ),
1291 Effect.catchCause(() => Effect.succeed([] as readonly string[])),
1292 )
1293 : Effect.succeed([]);
1294
1295 /** The artifact as THIS caller can read it. A miss and a row owned by
1296 * someone else are the same answer, because they are the same query. */

Callers 1

executeCodeFromAppFunction · 0.85

Calls 1

listMethod · 0.65

Tested by

no test coverage detected