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

Function use

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

Source from the content-addressed store, hash-verified

250 Effect.gen(function* () {
251 const args = argsRecord(input.args);
252 const use = (connection: McpConnection) =>
253 useConnection(connection, input.toolName, args, input.elicit, input.onToolListChanged);
254
255 if (input.connectionPool && input.connectionPoolKey) {
256 return yield* input.connectionPool.withConnection(

Callers 3

invokeMcpToolFunction · 0.70
runFunction · 0.70
withServerFunction · 0.70

Calls 1

useConnectionFunction · 0.85

Tested by 1

withServerFunction · 0.56