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

Function bindingCandidates

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

Source from the content-addressed store, hash-verified

1196 * connections port is optional, and a failure to enumerate must not
1197 * replace the real error with a different one. */
1198 const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> =>
1199 config.connections
1200 ? config.connections.list().pipe(
1201 Effect.map((all) =>
1202 all
1203 .filter((connection) => connection.integration === integration)
1204 .map(
1205 (connection) =>
1206 `${connection.integration}.${connection.owner}.${connection.name}`,
1207 ),
1208 ),
1209 Effect.catchCause(() => Effect.succeed([] as readonly string[])),
1210 )
1211 : Effect.succeed([]);
1212
1213 /** The artifact as THIS caller can read it. A miss and a row owned by
1214 * 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