get_recent_changes
Retrieve recent changelog entries from the MCP Memory Server to monitor coding session updates and track modifications over a specified number of days.
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)Core handler function that retrieves recent changelog entries by filtering the full changelog for entries within 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)Registers the 'get_recent_changes' tool with the MCP server in the listTools response, including input schema definition.{ 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 dispatcher case that handles the tool call by extracting parameters and delegating to ChangelogManager.getRecentChanges.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) }] }; }
- src/index.ts:716-721 (schema)Input schema definition for the get_recent_changes tool, specifying optional 'days' parameter.inputSchema: { type: 'object', properties: { days: { type: 'number', description: 'Number of days to look back (default: 7)' } } }