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

Function tool

graph-ui/tools/call-feedback-capture.mjs:50–59  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

48
49let rpcId = 1;
50async function tool(name, args) {
51 const res = await fetch(`${ORIGIN}/rpc`, {
52 method: 'POST',
53 headers: { 'Content-Type': 'application/json' },
54 body: JSON.stringify({ jsonrpc: '2.0', id: rpcId++, method: 'tools/call', params: { name, arguments: args } }),
55 });
56 const body = await res.json();
57 const text = body?.result?.content?.[0]?.text ?? '';
58 try { return JSON.parse(text); } catch { return { raw: text, error: body?.error }; }
59}
60
61async function cypher(project, query) {
62 return tool('query_graph', { project, query });

Callers 2

cypherFunction · 0.70
architectureScenarioFunction · 0.70

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected