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

Function withNativeClient

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

withClientFunction · 0.70

Tested by

no test coverage detected