MCPcopy Create free account
hub / github.com/clientdb/clientdb / createContext

Function createContext

engine/server/index.ts:47–56  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

45 const { requestHandlers, schema } = config;
46
47 async function createContext(req: Request) {
48 const context = await createRequestContext(
49 req,
50 requestHandlers,
51 schema,
52 dbConnection
53 );
54
55 return context;
56 }
57
58 app.get("/init", async (req, res) => {
59 const context = await createContext(req);

Callers 1

createSyncServerFunction · 0.85

Calls 1

createRequestContextFunction · 0.90

Tested by

no test coverage detected