MCPcopy
hub / github.com/mixedbread-ai/mgrep / createClient

Function createClient

src/lib/context.ts:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 await ensureAuthenticated();
26
27 async function createClient() {
28 const jwtToken = await getJWTToken();
29 return new Mixedbread({
30 baseURL: BASE_URL,
31 apiKey: jwtToken,
32 });
33 }
34
35 const client = await createClient();
36 return new MixedbreadStore(client, createClient);

Callers 1

createStoreFunction · 0.85

Calls 1

getJWTTokenFunction · 0.85

Tested by

no test coverage detected