@postnesia/mcp 0.1.12 → 0.1.13
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 +1 -1
- package/dist/index.js +2 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ Add to your MCP config (e.g. `.claude/settings.json` or Claude Desktop):
|
|
|
45
45
|
|
|
46
46
|
| Tool | Required | Optional |
|
|
47
47
|
|---|---|---|
|
|
48
|
-
| `journal_add` | `date` (YYYY-MM-DD), `content` | `learned`, `
|
|
48
|
+
| `journal_add` | `date` (YYYY-MM-DD), `content` | `learned`, `keyMoments`, `mood` |
|
|
49
49
|
| `journal_recent` | — | `days` (default: 7) |
|
|
50
50
|
|
|
51
51
|
### Tasks
|
package/dist/index.js
CHANGED
|
@@ -276,12 +276,11 @@ server.registerTool("journal_add", {
|
|
|
276
276
|
date: z.string().describe("Date YYYY-MM-DD"),
|
|
277
277
|
content: z.string().describe("Full journal narrative"),
|
|
278
278
|
learned: z.string().optional().describe("What I learned (optional)"),
|
|
279
|
-
learnedAboutRye: z.string().optional().describe("What I learned about the user (optional)"),
|
|
280
279
|
keyMoments: z.string().optional().describe("Key moments (optional)"),
|
|
281
280
|
mood: z.string().optional().describe("Mood/feeling (optional)"),
|
|
282
281
|
},
|
|
283
|
-
}, async ({ date, content, learned,
|
|
284
|
-
const combinedLearned = [learned
|
|
282
|
+
}, async ({ date, content, learned, keyMoments, mood }) => {
|
|
283
|
+
const combinedLearned = [learned].filter(Boolean).join("\n\n") || null;
|
|
285
284
|
queries.insertJournal(db).run(date, content, combinedLearned, keyMoments || null, mood || null);
|
|
286
285
|
return {
|
|
287
286
|
content: [{ type: "text", text: `Journal entry created for ${date}` }],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postnesia/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "An MCP server to interact with the Postnesia database",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
16
16
|
"zod": "^4.3.6",
|
|
17
|
-
"@postnesia/db": "0.1.
|
|
17
|
+
"@postnesia/db": "0.1.13"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^22.10.5",
|