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

Function withNativeClient

packages/hosts/mcp/src/tool-server.test.ts:94–98  ·  view source on GitHub ↗
(
  engine: ExecutionEngine<E>,
  capabilities: ClientCapabilities,
  fn: (client: Client) => Promise<void>,
)

Source from the content-addressed store, hash-verified

92};
93
94const withNativeClient = async <E extends Cause.YieldableError>(
95 engine: ExecutionEngine<E>,
96 capabilities: ClientCapabilities,
97 fn: (client: Client) => Promise<void>,
98) => withClient(engine, capabilities, fn, { elicitationMode: { mode: "native" } });
99
100type RecordedSpan = {
101 readonly name: string;

Callers 1

Calls 1

withClientFunction · 0.70

Tested by

no test coverage detected