reflect-mcp 1.0.10 → 1.0.11
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/dist/tools/index.js +6 -6
- package/package.json +2 -2
package/dist/tools/index.js
CHANGED
|
@@ -622,13 +622,13 @@ export function registerTools(server, dbPath) {
|
|
|
622
622
|
// Tool: Create a new note in Reflect via API
|
|
623
623
|
server.addTool({
|
|
624
624
|
name: "create_note",
|
|
625
|
-
description: "Create a new note in Reflect. Must add the tasks field if there are any actionable items to add. Pass in the user's timezone to ensure the note is created with the correct date.
|
|
625
|
+
description: "Create a new note in Reflect. Must add the tasks field if there are any actionable items to add. Pass in the user's timezone to ensure the note is created with the correct date. The backlink_note parameter creates a backlink to another note (e.g., 'Project Planning' creates [[Project Planning]]). For actual tags, use get_tags to see available tags and add them separately if needed.",
|
|
626
626
|
parameters: z.object({
|
|
627
627
|
subject: z.string().describe("The title/subject of the note. Example: 'Meeting Summary - Project Planning'"),
|
|
628
628
|
content: z.string().describe("The markdown content for the note. This is the main body of the note."),
|
|
629
629
|
graph_id: z.string().describe("The unique identifier of the Reflect graph where the note should be created."),
|
|
630
630
|
timezone: z.string().describe("The user's timezone in IANA format. Example: 'America/New_York', 'Europe/London', 'Asia/Tokyo'. Used to determine the correct date for the daily note backlink."),
|
|
631
|
-
|
|
631
|
+
backlink_note: z.string().describe("The name of an existing note to backlink to. This creates a backlink [[backlink_note]] in the new note. Example: 'Project Planning' creates [[Project Planning]]. This is NOT a tag - use get_tags for actual tags."),
|
|
632
632
|
tasks: z.array(z.string()).optional().describe("A list of tasks to add to the note. Must add this field if there are any actionable items. Example: ['Review PR', 'Schedule meeting']"),
|
|
633
633
|
}),
|
|
634
634
|
execute: async (args, { session }) => {
|
|
@@ -643,11 +643,11 @@ export function registerTools(server, dbPath) {
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
const { accessToken } = session;
|
|
646
|
-
const { subject, content, graph_id, timezone,
|
|
646
|
+
const { subject, content, graph_id, timezone, backlink_note, tasks } = args;
|
|
647
647
|
const todayDate = getDateForTimezone(timezone);
|
|
648
648
|
const contentParts = [];
|
|
649
649
|
contentParts.push(`#ai-generated\n`);
|
|
650
|
-
contentParts.push(`- [[${
|
|
650
|
+
contentParts.push(`- [[${backlink_note}]]\n`);
|
|
651
651
|
const contentLines = content.split('\n');
|
|
652
652
|
const indentedContent = contentLines.map(line => ` ${line}`).join('\n');
|
|
653
653
|
contentParts.push(indentedContent);
|
|
@@ -686,14 +686,14 @@ export function registerTools(server, dbPath) {
|
|
|
686
686
|
date: todayDate,
|
|
687
687
|
text: `[[${subject}]]`,
|
|
688
688
|
transform_type: "list-append",
|
|
689
|
-
list_name: `[[${
|
|
689
|
+
list_name: `[[${backlink_note}]]`,
|
|
690
690
|
}),
|
|
691
691
|
});
|
|
692
692
|
if (!dailyNoteResponse.ok) {
|
|
693
693
|
const errorText = await dailyNoteResponse.text();
|
|
694
694
|
console.error(`Failed to append to daily notes: ${dailyNoteResponse.status}, ${errorText}`);
|
|
695
695
|
}
|
|
696
|
-
const message = `Note "${subject}" created with
|
|
696
|
+
const message = `Note "${subject}" created with backlink to [[${backlink_note}]]${tasks?.length ? ` and ${tasks.length} task(s)` : ''} and linked in daily notes`;
|
|
697
697
|
return {
|
|
698
698
|
content: [
|
|
699
699
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reflect-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "MCP server for Reflect Notes - connect your notes to Claude Desktop. Just run: npx reflect-mcp",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
40
40
|
"better-sqlite3": "^11.10.0",
|
|
41
41
|
"fastmcp": "^3.25.4",
|
|
42
|
-
"reflect-mcp": "^1.0.
|
|
42
|
+
"reflect-mcp": "^1.0.10",
|
|
43
43
|
"zod": "^4.1.13"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|