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

Function node

graph-ui/src/galaxy/reader-hierarchy.test.ts:5–8  ·  view source on GitHub ↗
(id: number, name: string, file_path = 'src/service.ts', label = 'Method')

Source from the content-addressed store, hash-verified

3import type { GraphData, GraphNode } from './types';
4
5const node = (id: number, name: string, file_path = 'src/service.ts', label = 'Method'): GraphNode => ({
6 id, name, qualified_name: `sample.${name}`, file_path, label,
7 x: id * 5, y: 10, z: 3, color: '#668899', size: 3, start_line: id, end_line: id + 1,
8});
9const layout: GraphData = {
10 total_nodes: 8,
11 nodes: [node(1, 'file', 'src/service.ts', 'File'), node(2, 'class', 'src/service.ts', 'Class'),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected