memstate_history
View version history for stored data to debug past states, audit changes, or recover previous values in the Memstate AI memory system.
Instructions
View version history for a keypath or memory chain. Use when you need to see how a value changed over time.
USE THIS WHEN: Debugging past state, auditing changes, or recovering a previous value. NOT FOR: Reading current content (use memstate_get) or saving (use memstate_remember or memstate_set).
memstate_history(project_id="myapp", keypath="config.database.port") memstate_history(memory_id="mem_abc123")
Returns all versions with timestamps; latest is marked is_latest=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Required with keypath | |
| keypath | No | Get history for this keypath | |
| memory_id | No | Or get history for a specific memory chain by ID |
Implementation Reference
- src/index.ts:139-144 (handler)The tool 'memstate_history' is dynamically proxied by this handler, which forwards the request to the remote Memstate MCP server.
server.setRequestHandler(CallToolRequestSchema, async (request) => { return await remote.callTool({ name: request.params.name, arguments: request.params.arguments, }); });