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

Function use

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

Source from the content-addressed store, hash-verified

241 Effect.gen(function* () {
242 const args = argsRecord(input.args);
243 const use = (connection: McpConnection) =>
244 useConnection(connection, input.toolName, args, input.elicit, input.onToolListChanged);
245
246 if (input.connectionPool && input.connectionPoolKey) {
247 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