Skip to main content
Glama

get_project_memory

Retrieve current project memory and session state to maintain context and track coding progress within development workflows.

Instructions

Get current project memory and session state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'get_project_memory'. Dispatches to memoryManager.getProjectMemory() and returns JSON stringified result.
    case 'get_project_memory': { const projectMemory = await this.memoryManager.getProjectMemory(); return { content: [{ type: 'text', text: JSON.stringify(projectMemory, null, 2) }] }; }
  • src/index.ts:592-599 (registration)
    Tool registration in listTools handler, including name, description, and empty input schema.
    { name: 'get_project_memory', description: 'Get current project memory and session state', inputSchema: { type: 'object', properties: {} } },
  • Core implementation of getProjectMemory method. Reads project-memory.json from .ai-memory/ or creates default ProjectMemory object.
    async getProjectMemory(): Promise<ProjectMemory> { try { await this.ensureMemoryDir(); if (await fs.pathExists(this.projectMemoryPath)) { return await fs.readJson(this.projectMemoryPath); } return this.createDefaultProjectMemory(); } catch (error) { console.error(chalk.red('Error reading project memory:'), error); return this.createDefaultProjectMemory(); } }

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/keleshteri/mcp-memory'

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