MCPcopy Create free account
hub / github.com/apache/maka / connect

Function connect

packages/cli/src/runtime-host-run-command.ts:81–87  ·  view source on GitHub ↗
(
    rootPath: string,
    hostProfileId?: string,
  )

Source from the content-addressed store, hash-verified

79 const commandDeps = { ...defaultRuntimeHostRunCommandDeps(), ...commandOverrides };
80 let connected: RuntimeHostCliConnectionContext | undefined;
81 const connect = async (
82 rootPath: string,
83 hostProfileId?: string,
84 ): Promise<RuntimeHostCliConnectionContext> => {
85 connected ??= await commandDeps.connect(rootPath, hostProfileId, options.clientDataRoot);
86 return connected;
87 };
88 try {
89 return await commandDeps.run(
90 argv,

Callers 1

runRuntimeHostTextCliFunction · 0.70

Calls 1

connectMethod · 0.65

Tested by

no test coverage detected