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

Function tool

graph-ui/tools/handtest-fixes-galaxy.mjs:66–74  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

64
65let rpcId = 1;
66async function tool(name, args) {
67 const res = await fetch(`${ORIGIN}/rpc`, {
68 method: 'POST', headers: { 'Content-Type': 'application/json' },
69 body: JSON.stringify({ jsonrpc: '2.0', id: rpcId++, method: 'tools/call', params: { name, arguments: args } }),
70 });
71 const body = await res.json();
72 const text = body?.result?.content?.[0]?.text ?? '';
73 try { return JSON.parse(text); } catch { return { raw: text }; }
74}
75
76/** Der qualifizierte Name eines Symbols, so wie der Index ihn kennt. */
77async function qualifiedName(name) {

Callers 3

qualifiedNameFunction · 0.70
countFunction · 0.70
checkK5Function · 0.70

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected