Skip to main content
Glama
BRO3886

Memory Custom

by BRO3886

read_graph

Retrieve the complete knowledge graph from Memory Custom's MCP server to access structured data stored in memory files.

Instructions

Read the entire knowledge graph

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memoryFilePathYesThe path to the memory file

Implementation Reference

  • The core handler function in KnowledgeGraphManager that sets the memory file path and loads/returns the entire KnowledgeGraph from the file.
    async readGraph(filepath: string): Promise<KnowledgeGraph> { await this.setMemoryFilePath(filepath); return this.loadGraph(); }
  • The input schema and metadata for the read_graph tool, defined in the tools list returned by the ListTools handler.
    name: "read_graph", description: "Read the entire knowledge graph", inputSchema: { type: "object", properties: { memoryFilePath: { type: "string", description: "The path to the memory file", }, }, required: ["memoryFilePath"], }, },
  • index.ts:677-691 (registration)
    The dispatch case in the CallToolRequest handler that registers and executes the read_graph tool by calling the handler function.
    case "read_graph": return { content: [ { type: "text", text: JSON.stringify( await knowledgeGraphManager.readGraph( args.memoryFilePath as string ), null, 2 ), }, ], };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BRO3886/mcp-memory-custom'

If you have feedback or need assistance with the MCP directory API, please join our Discord server