foldnotes-mcp 2.3.0__tar.gz → 2.4.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.4
2
2
  Name: foldnotes-mcp
3
- Version: 2.3.0
3
+ Version: 2.4.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.3.0"
29
+ __version__ = "2.4.0"
30
30
 
31
31
  import json
32
32
  import os
@@ -457,6 +457,8 @@ def list_tasks(
457
457
  note: str | None = None,
458
458
  project: str | None = None,
459
459
  context: str | None = None,
460
+ no_project: bool = False,
461
+ no_context: bool = False,
460
462
  all: bool = False,
461
463
  collection: str | None = None,
462
464
  ) -> str:
@@ -471,6 +473,8 @@ def list_tasks(
471
473
  note: Filter by note title.
472
474
  project: Filter by project name.
473
475
  context: Filter by context (tasks carrying this context).
476
+ no_project: Only tasks with no project assigned (inline or inherited).
477
+ no_context: Only tasks with no context assigned.
474
478
  all: Include done and cancelled tasks.
475
479
  collection: Collection name, UUID, or path.
476
480
  """
@@ -491,6 +495,10 @@ def list_tasks(
491
495
  args += ["--project", project]
492
496
  if context:
493
497
  args += ["--context", context]
498
+ if no_project:
499
+ args.append("--no-project")
500
+ if no_context:
501
+ args.append("--no-context")
494
502
  if all:
495
503
  args.append("--all")
496
504
  return json.dumps(run_fn(args, collection), indent=2)
@@ -818,6 +826,47 @@ def daily_append(
818
826
  return json.dumps(run_fn(args, collection), indent=2)
819
827
 
820
828
 
829
+ @mcp.tool()
830
+ def daily_overdue(
831
+ date: str | None = None,
832
+ collection: str | None = None,
833
+ ) -> str:
834
+ """Insert or refresh the overdue / due-today task block in a daily note.
835
+
836
+ Rewrites the block in place if it is already present, so repeated calls
837
+ are safe. Creates the daily note if it doesn't exist.
838
+
839
+ Args:
840
+ date: Date for the daily note (default: today).
841
+ collection: Collection name, UUID, or path.
842
+ """
843
+ args = ["daily", "overdue"]
844
+ if date:
845
+ args += [date]
846
+ return json.dumps(run_fn(args, collection), indent=2)
847
+
848
+
849
+ @mcp.tool()
850
+ def daily_summary(
851
+ date: str | None = None,
852
+ collection: str | None = None,
853
+ ) -> str:
854
+ """Insert or refresh the activity summary block in a daily note.
855
+
856
+ Summarises the notes touched on that day. Rewrites the block in place if
857
+ it is already present, so repeated calls are safe. Creates the daily note
858
+ if it doesn't exist.
859
+
860
+ Args:
861
+ date: Date for the daily note (default: today).
862
+ collection: Collection name, UUID, or path.
863
+ """
864
+ args = ["daily", "summary"]
865
+ if date:
866
+ args += [date]
867
+ return json.dumps(run_fn(args, collection), indent=2)
868
+
869
+
821
870
  # ---- Collections ----
822
871
 
823
872
  @mcp.tool()
File without changes
File without changes
File without changes