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

Function bindingCandidates

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

Source from the content-addressed store, hash-verified

1219 * connections port is optional, and a failure to enumerate must not
1220 * replace the real error with a different one. */
1221 const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> =>
1222 config.connections
1223 ? config.connections.list().pipe(
1224 Effect.map((all) =>
1225 all
1226 .filter((connection) => connection.integration === integration)
1227 .map(
1228 (connection) =>
1229 `${connection.integration}.${connection.owner}.${connection.name}`,
1230 ),
1231 ),
1232 Effect.catchCause(() => Effect.succeed([] as readonly string[])),
1233 )
1234 : Effect.succeed([]);
1235
1236 /** The artifact as THIS caller can read it. A miss and a row owned by
1237 * 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