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

Function bindingCandidates

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

Source from the content-addressed store, hash-verified

1247 * connections port is optional, and a failure to enumerate must not
1248 * replace the real error with a different one. */
1249 const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> =>
1250 config.connections
1251 ? config.connections.list().pipe(
1252 Effect.map((all) =>
1253 all
1254 .filter((connection) => connection.integration === integration)
1255 .map(
1256 (connection) =>
1257 `${connection.integration}.${connection.owner}.${connection.name}`,
1258 ),
1259 ),
1260 Effect.catchCause(() => Effect.succeed([] as readonly string[])),
1261 )
1262 : Effect.succeed([]);
1263
1264 /** The artifact as THIS caller can read it. A miss and a row owned by
1265 * 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