foldnotes-mcp 2.6.0__tar.gz → 2.7.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: foldnotes-mcp
3
- Version: 2.6.0
3
+ Version: 2.7.0
4
4
  Summary: MCP server exposing the FoldNotes CLI (fn) as tools for Claude Desktop, Claude Code, and other MCP clients.
5
5
  Project-URL: Homepage, https://foldnotes.io
6
6
  Project-URL: Documentation, https://foldnotes.io/advanced/ai-integration/
@@ -26,7 +26,7 @@ Configure in Claude Desktop's claude_desktop_config.json:
26
26
  }
27
27
  """
28
28
 
29
- __version__ = "2.6.0"
29
+ __version__ = "2.7.0"
30
30
 
31
31
  import json
32
32
  import os
@@ -498,6 +498,10 @@ def rename_tag(
498
498
 
499
499
  @mcp.tool()
500
500
  def list_tasks(
501
+ today: bool = False,
502
+ upcoming: bool = False,
503
+ late: bool = False,
504
+ scheduled: str | None = None,
501
505
  due_today: bool = False,
502
506
  due_tomorrow: bool = False,
503
507
  due_this_week: bool = False,
@@ -516,9 +520,35 @@ def list_tasks(
516
520
  ) -> str:
517
521
  """List tasks across all notes with filtering.
518
522
 
523
+ "Today" in FoldNotes means the Today list, as the app's Tasks view and its
524
+ widgets show it: for "what's on today", "what should I do today" or "my
525
+ day", use today=True, not due_today. Each task in the result says which
526
+ list it is on (`list`: overdue, due_today or today, the Today list's
527
+ headings; done_today; or upcoming) and when, in the app's words (`when`:
528
+ "Due today", "2 days late", "In progress", "Fri · due Mon"). `when` is for
529
+ showing; the days are `due` and `scheduled` (YYYY-MM-DD, the user's own
530
+ local days). Several list and due filters combine as "any of"; the other
531
+ filters narrow them.
532
+
519
533
  Args:
520
- due_today: Show tasks due today and not yet overdue (a task due today
521
- becomes overdue at 5 PM). Several due filters combine as "any of".
534
+ today: The Today list: overdue tasks, tasks due today, tasks scheduled
535
+ for today or an earlier day (late to start included), and tasks in
536
+ progress unless scheduled for a later day. A deadline wins: a task
537
+ due today is on it whatever its scheduled day. In the Tasks view's
538
+ order. With all=True, the tasks done today too. Needs an fn newer
539
+ than FoldNotes for Mac 1.3.6.
540
+ upcoming: The Upcoming list: open tasks not on Today, by their
541
+ scheduled day, else their due day, soonest first. Needs an fn newer
542
+ than FoldNotes for Mac 1.3.6.
543
+ late: Tasks late to start: their scheduled day has passed and they
544
+ haven't been started. Never counted as overdue, which goes by the
545
+ due date alone. Needs an fn newer than FoldNotes for Mac 1.3.6.
546
+ scheduled: Tasks scheduled for a day (the day the user plans to do
547
+ them): today, this-week, next-week, none, or a date (tomorrow,
548
+ 2026-11-14, next monday). Needs an fn with Tasks 2.0.
549
+ due_today: Tasks due today and not yet overdue, by the due date alone
550
+ (a task due today becomes overdue at 5 PM). Not the Today list: use
551
+ today=True for that.
522
552
  due_tomorrow: Show tasks due tomorrow.
523
553
  due_this_week: Show tasks due this week (today and the next six days).
524
554
  days: Show tasks due in the next N days, counting today.
@@ -539,6 +569,14 @@ def list_tasks(
539
569
  collection: Collection name, UUID, or path.
540
570
  """
541
571
  args = ["tasks"]
572
+ if today:
573
+ args.append("--today")
574
+ if upcoming:
575
+ args.append("--upcoming")
576
+ if late:
577
+ args.append("--late")
578
+ if scheduled:
579
+ args += ["--scheduled", scheduled]
542
580
  if due_today:
543
581
  args.append("--due-today")
544
582
  if due_tomorrow:
@@ -577,6 +615,7 @@ def add_task(
577
615
  text: str,
578
616
  note: str | None = None,
579
617
  due: str | None = None,
618
+ scheduled: str | None = None,
580
619
  priority: str | None = None,
581
620
  project: str | None = None,
582
621
  context: str | None = None,
@@ -588,7 +627,11 @@ def add_task(
588
627
  text: Task description text.
589
628
  note: Target note title. Omit to add the task to the end of today's
590
629
  daily note (created if needed) — the same rule as Siri's Add Task.
591
- due: Due date (YYYY-MM-DD, 'today', 'tomorrow', 'next monday', etc.).
630
+ due: Due date, the deadline (YYYY-MM-DD, 'today', 'tomorrow',
631
+ 'next monday', etc.).
632
+ scheduled: Scheduled day, the day the user plans to do it (the same
633
+ forms as due). It puts the task on the Today list from that day.
634
+ Refused when it is after the due date. Needs an fn with Tasks 2.0.
592
635
  priority: Priority level: high, medium, low.
593
636
  project: Project name for the task.
594
637
  context: Context(s) for the task; comma-separate for several (e.g. "errand,phone").
@@ -597,6 +640,8 @@ def add_task(
597
640
  args = ["tasks", "add", text] + _note_args(note)
598
641
  if due:
599
642
  args += ["--due", due]
643
+ if scheduled:
644
+ args += ["--scheduled", scheduled]
600
645
  if priority:
601
646
  args += ["--priority", priority]
602
647
  if project:
@@ -731,6 +776,8 @@ def set_task(
731
776
  task_id: str | None = None,
732
777
  due: str | None = None,
733
778
  clear_due: bool = False,
779
+ scheduled: str | None = None,
780
+ clear_scheduled: bool = False,
734
781
  priority: str | None = None,
735
782
  clear_priority: bool = False,
736
783
  project: str | None = None,
@@ -739,7 +786,7 @@ def set_task(
739
786
  clear_context: bool = False,
740
787
  collection: str | None = None,
741
788
  ) -> str:
742
- """Amend an existing task's due date, priority, project, or context.
789
+ """Amend an existing task's due date, scheduled day, priority, project, or context.
743
790
 
744
791
  Identify the task by `task_id` (exact, preferred) or `text` (substring),
745
792
  then pass at least one field to change. Amending metadata preserves the
@@ -753,7 +800,14 @@ def set_task(
753
800
  one task; if several match, the command is refused — pass task_id.
754
801
  task_id: Exact task UUID from `list_tasks`. Preferred.
755
802
  due: New due date (YYYY-MM-DD, 'today', 'tomorrow', 'next monday', ...).
803
+ A due date before the task's scheduled day moves the scheduled day
804
+ to it.
756
805
  clear_due: Remove the due date instead of setting one.
806
+ scheduled: New scheduled day, the day the user plans to do it (the same
807
+ forms as due). Refused when it is after the due date: move the due
808
+ date first. Needs an fn with Tasks 2.0.
809
+ clear_scheduled: Remove the scheduled day (a repeating task stops
810
+ repeating, as it needs one). Needs an fn with Tasks 2.0.
757
811
  priority: New priority: high, medium, low.
758
812
  clear_priority: Remove the priority.
759
813
  project: New project name.
@@ -770,6 +824,10 @@ def set_task(
770
824
  args += ["--due", due]
771
825
  if clear_due:
772
826
  args += ["--clear-due"]
827
+ if scheduled:
828
+ args += ["--scheduled", scheduled]
829
+ if clear_scheduled:
830
+ args += ["--clear-scheduled"]
773
831
  if priority:
774
832
  args += ["--priority", priority]
775
833
  if clear_priority:
@@ -794,11 +852,12 @@ def remove_task(
794
852
  task_id: str | None = None,
795
853
  collection: str | None = None,
796
854
  ) -> str:
797
- """Delete a task line from a note.
855
+ """Delete a task from a note, with its comments and the lines indented under it.
798
856
 
799
857
  Identify the task by `task_id` (exact, preferred) or `text` (substring).
800
- This permanently removes the task line from the note body — unlike
801
- delete_note it does not go to the trash. Prefer `task_id`, and confirm with
858
+ This permanently removes the task from the note body (its line, its `> `
859
+ comments and the lines indented under it) — unlike delete_note it does not
860
+ go to the trash. Prefer `task_id`, and confirm with
802
861
  `list_tasks` first when matching by text. Surviving tasks keep their UUIDs.
803
862
 
804
863
  Args:
@@ -919,7 +978,8 @@ def daily_note(
919
978
  Args:
920
979
  date: Date (YYYY-MM-DD, 'today', 'yesterday', 'tomorrow'). Default: today.
921
980
  create: Create the daily note if it doesn't exist.
922
- tasks: Show tasks from the daily note.
981
+ tasks: Show the tasks written in that daily note. Not the Today list:
982
+ for what's on today, use list_tasks with today=True.
923
983
  collection: Collection name, UUID, or path.
924
984
  """
925
985
  args = ["daily"]
@@ -958,8 +1018,12 @@ def daily_overdue(
958
1018
  ) -> str:
959
1019
  """Insert or refresh the overdue / due-today task block in a daily note.
960
1020
 
961
- Rewrites the block in place if it is already present, so repeated calls
962
- are safe. Creates the daily note if it doesn't exist.
1021
+ The block is a snapshot written into the note: its Overdue and Due Today
1022
+ sections go by due dates alone. It is not the Today list, which also holds
1023
+ tasks scheduled for today or earlier and tasks in progress: for what's on
1024
+ today, use list_tasks with today=True. Rewrites the block in place if it
1025
+ is already present, so repeated calls are safe. Creates the daily note if
1026
+ it doesn't exist.
963
1027
 
964
1028
  Args:
965
1029
  date: Date for the daily note (default: today).
@@ -978,9 +1042,10 @@ def daily_summary(
978
1042
  ) -> str:
979
1043
  """Insert or refresh the activity summary block in a daily note.
980
1044
 
981
- Summarises the notes touched on that day. Rewrites the block in place if
982
- it is already present, so repeated calls are safe. Creates the daily note
983
- if it doesn't exist.
1045
+ Summarises the notes touched on that day: what was done, not what's on.
1046
+ For what's on today, use list_tasks with today=True. Rewrites the block in
1047
+ place if it is already present, so repeated calls are safe. Creates the
1048
+ daily note if it doesn't exist.
984
1049
 
985
1050
  Args:
986
1051
  date: Date for the daily note (default: today).
File without changes
File without changes
File without changes