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

Function tool

graph-ui/tools/call-feedback-acceptance.mjs:60–68  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

58
59let rpcId = 1;
60async function tool(name, args) {
61 const res = await fetch(`${ORIGIN}/rpc`, {
62 method: 'POST', headers: { 'Content-Type': 'application/json' },
63 body: JSON.stringify({ jsonrpc: '2.0', id: rpcId++, method: 'tools/call', params: { name, arguments: args } }),
64 });
65 const body = await res.json();
66 const text = body?.result?.content?.[0]?.text ?? '';
67 try { return JSON.parse(text); } catch { return { raw: text }; }
68}
69
70/** Die eingehenden Kanten eines Namens, so wie der Index sie kennt. */
71async function incoming(name) {

Callers 2

incomingFunction · 0.70
architectureChecksFunction · 0.70

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected