@gilangjavier/chrona 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Local-first, deterministic, time-aware memory for agents.
4
4
 
5
- `chrona` is a TypeScript library and CLI for storing durable memories with provenance, privacy scopes, confidence scores, TTL support, and deterministic retrieval. It is designed for local use first: the default storage layer is SQLite, the output is stable, and the CLI can emit clean JSON for pipelines and agent runtimes.
5
+ `chrona` is a TypeScript library, CLI, and MCP server for storing durable memories with provenance, privacy scopes, confidence scores, TTL support, and deterministic retrieval. It is designed for local use first: the default storage layer is SQLite, the output is stable, and both the CLI and MCP tools emit clean JSON-friendly shapes for pipelines and agent runtimes.
6
6
 
7
7
  - Repo: https://github.com/gilangjavier/chrona
8
8
  - npm: https://www.npmjs.com/package/@gilangjavier/chrona
@@ -18,6 +18,7 @@ Most agent memory tooling either stays too loose to trust in automation or too h
18
18
  - privacy-aware scopes for user, project, org, and shared memory
19
19
  - time-aware entries with `createdAt` and optional `expiresAt`
20
20
  - both CLI and library usage for scripts, services, and local tools
21
+ - drop-in MCP server mode for agent integrations
21
22
 
22
23
  ## Data model
23
24
 
@@ -167,6 +168,64 @@ chrona --db ./.chrona/agent.db timeline \
167
168
  --json
168
169
  ```
169
170
 
171
+ #### MCP Server
172
+
173
+ Run Chrona as an MCP server over stdio:
174
+
175
+ ```bash
176
+ chrona mcp --db ./.chrona/agent.db
177
+ ```
178
+
179
+ Run it over Streamable HTTP on a local port:
180
+
181
+ ```bash
182
+ chrona mcp --db ./.chrona/agent.db --port 3030
183
+ ```
184
+
185
+ Chrona exposes these MCP tools:
186
+
187
+ - `chrona_add`
188
+ - `chrona_get`
189
+ - `chrona_search`
190
+ - `chrona_timeline`
191
+ - `chrona_export`
192
+ - `chrona_import`
193
+ - `chrona_gc`
194
+
195
+ Copy-paste stdio config:
196
+
197
+ ```json
198
+ {
199
+ "mcpServers": {
200
+ "chrona": {
201
+ "command": "npx",
202
+ "args": [
203
+ "-y",
204
+ "@gilangjavier/chrona",
205
+ "mcp",
206
+ "--db",
207
+ "/absolute/path/to/chrona.db"
208
+ ]
209
+ }
210
+ }
211
+ }
212
+ ```
213
+
214
+ Copy-paste Streamable HTTP config:
215
+
216
+ ```json
217
+ {
218
+ "mcpServers": {
219
+ "chrona": {
220
+ "transport": {
221
+ "type": "streamable-http",
222
+ "url": "http://127.0.0.1:3030/mcp"
223
+ }
224
+ }
225
+ }
226
+ }
227
+ ```
228
+
170
229
  ### B) For humans
171
230
 
172
231
  Install locally in a project:
@@ -356,6 +415,24 @@ Deterministic run with a fixed timestamp:
356
415
  chrona gc --now 2026-03-19T00:00:00.000Z --json
357
416
  ```
358
417
 
418
+ ### `mcp`
419
+
420
+ Run the MCP server.
421
+
422
+ Stdio is the default transport:
423
+
424
+ ```bash
425
+ chrona mcp --db ./.chrona/chrona.db
426
+ ```
427
+
428
+ Serve MCP over Streamable HTTP:
429
+
430
+ ```bash
431
+ chrona mcp --db ./.chrona/chrona.db --port 3030
432
+ ```
433
+
434
+ The HTTP endpoint is available at `http://127.0.0.1:3030/mcp`.
435
+
359
436
  ## Copy-paste examples
360
437
 
361
438
  1. Initialize a fresh database:
@@ -583,7 +660,7 @@ npm run check
583
660
 
584
661
  Current release target:
585
662
 
586
- - `v0.1.0`
663
+ - `v0.1.1`
587
664
 
588
665
  ## License
589
666