Package dev.dokimos.mcp.store
Class JsonResultStore
java.lang.Object
dev.dokimos.mcp.store.JsonResultStore
- All Implemented Interfaces:
ResultStore
Stores run records as a JSON array in a local file.
Default location: ~/.dokimos/mcp-results.json
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonResultStore
public JsonResultStore() -
JsonResultStore
-
-
Method Details
-
save
Description copied from interface:ResultStoreSaves a run record. Overwrites if a record with the same ID exists.- Specified by:
savein interfaceResultStore
-
get
Description copied from interface:ResultStoreReturns a run by ID, or empty if not found.- Specified by:
getin interfaceResultStore
-
list
Description copied from interface:ResultStoreLists runs, most recent first.- Specified by:
listin interfaceResultStore- Parameters:
datasetName- optional filter by dataset name (null for all)limit- maximum number to return (0 for all)- Returns:
- matching records
-