MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / json

Function json

graph-ui/tools/pr-2068-agents-e2e.mjs:29–35  ·  view source on GitHub ↗
(path, body)

Source from the content-addressed store, hash-verified

27let browser;
28
29async function json(path, body) {
30 const response = await fetch(ORIGIN + path, { method: body ? 'POST' : 'GET',
31 ...(body ? { headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) } : {}) });
32 report.directRequests.push({ path, method: body ? 'POST' : 'GET', status: response.status });
33 assert.ok(response.ok, `${path}: HTTP ${response.status}`);
34 return response.json();
35}
36
37function persistedRows(run) {
38 const script = `import json,sqlite3,sys,pathlib

Callers 2

beforeRestartFunction · 0.70
afterRestartFunction · 0.70

Calls 2

jsonMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected