MCPcopy Index your code
hub / github.com/callstack/agent-device / createClient

Function createClient

src/mcp/command-tools.ts:92–99  ·  view source on GitHub ↗
(
  deps: CommandToolExecutorDeps,
  config: AgentDeviceClientConfig,
)

Source from the content-addressed store, hash-verified

90export const commandToolExecutor = createCommandToolExecutor();
91
92async function createClient(
93 deps: CommandToolExecutorDeps,
94 config: AgentDeviceClientConfig,
95): Promise<AgentDeviceClient> {
96 if (deps.createClient) return await deps.createClient(config);
97 const { createAgentDeviceClient } = await import('../client/client.ts');
98 return createAgentDeviceClient(config);
99}
100
101async function runCommand(
102 client: AgentDeviceClient,

Callers 1

Calls 1

createAgentDeviceClientFunction · 0.85

Tested by

no test coverage detected