get_recent_changes
Retrieve recent changelog entries from the MCP Memory Server to track coding session modifications and project updates.
Instructions
Get recent changelog entries
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to look back (default: 7) |
Implementation Reference
- src/changelog-manager.ts:91-99 (handler)The core handler function implementing the tool logic: fetches full changelog and filters entries from the last N days (default: 7).async getRecentChanges(days: number = 7): Promise<ChangelogEntry[]> { const changelog = await this.getChangelog(); const cutoffDate = new Date(); cutoffDate.setDate(cutoffDate.getDate() - days); return changelog.filter(entry => new Date(entry.date) > cutoffDate ); }
- src/index.ts:713-722 (registration)Tool registration in the MCP server's listTools handler, defining name, description, and input schema.{ name: 'get_recent_changes', description: 'Get recent changelog entries', inputSchema: { type: 'object', properties: { days: { type: 'number', description: 'Number of days to look back (default: 7)' } } } },
- src/index.ts:895-899 (handler)MCP server tool dispatch handler: parses arguments, calls ChangelogManager.getRecentChanges, and formats response.case 'get_recent_changes': { const days = (args.days as number) || 7; const recentChanges = await this.changelogManager.getRecentChanges(days); return { content: [{ type: 'text', text: JSON.stringify(recentChanges, null, 2) }] }; }