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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:811-814 (handler)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: {} } },
- src/memory-manager.ts:76-87 (helper)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(); } }