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

Function use

packages/plugins/mcp/src/sdk/invoke.ts:294–295  ·  view source on GitHub ↗
(connection: McpConnection)

Source from the content-addressed store, hash-verified

292 Effect.gen(function* () {
293 const args = argsRecord(input.args);
294 const use = (connection: McpConnection) =>
295 useConnection(connection, input.toolName, args, input.elicit, input.onToolListChanged);
296
297 if (input.connectionPool && input.connectionPoolKey) {
298 return yield* input.connectionPool.withConnection(

Callers 4

invokeMcpToolFunction · 0.70
runFunction · 0.70
withServerFunction · 0.70
withProbeFunction · 0.50

Calls 1

useConnectionFunction · 0.85

Tested by 2

withServerFunction · 0.56
withProbeFunction · 0.40