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

Function rpc

graph-ui/tools/pr-2068-errors-e2e.mjs:39–43  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

37}
38
39async function rpc(name, args) {
40 const response = await json('/rpc', { jsonrpc: '2.0', id: ++rpcId, method: 'tools/call', params: { name, arguments: { ...args, format: 'json' } } });
41 if (response.error || response.result?.isError) throw new Error(JSON.stringify(response));
42 return JSON.parse(response.result.content[0].text);
43}
44
45async function index(project) {
46 const begin = await json('/api/index', { root_path: FIXTURE, project_name: project });

Callers 1

mainFunction · 0.70

Calls 1

jsonFunction · 0.70

Tested by

no test coverage detected