foldnotes-mcp 2.5.0__tar.gz → 2.6.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.5.0
3
+ Version: 2.6.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/
@@ -11,7 +11,7 @@ License-Expression: MIT
11
11
  License-File: LICENSE
12
12
  Keywords: claude,cli,foldnotes,mcp,model-context-protocol,notes
13
13
  Requires-Python: >=3.10
14
- Requires-Dist: mcp>=1.2.0
14
+ Requires-Dist: mcp<2,>=1.2.0
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  # FoldNotes MCP Server
@@ -12,7 +12,7 @@ license = "MIT"
12
12
  license-files = ["LICENSE"]
13
13
  authors = [{ name = "Foldsoft Pty Ltd", email = "support@foldnotes.io" }]
14
14
  keywords = ["mcp", "model-context-protocol", "foldnotes", "claude", "notes", "cli"]
15
- dependencies = ["mcp>=1.2.0"]
15
+ dependencies = ["mcp>=1.2.0,<2"] # mcp 2.x removed mcp.server.fastmcp (FastMCP → MCPServer)
16
16
 
17
17
  [project.urls]
18
18
  Homepage = "https://foldnotes.io"
@@ -26,7 +26,7 @@ Configure in Claude Desktop's claude_desktop_config.json:
26
26
  }
27
27
  """
28
28
 
29
- __version__ = "2.5.0"
29
+ __version__ = "2.6.0"
30
30
 
31
31
  import json
32
32
  import os
@@ -511,6 +511,7 @@ def list_tasks(
511
511
  no_project: bool = False,
512
512
  no_context: bool = False,
513
513
  all: bool = False,
514
+ created: str | None = None,
514
515
  collection: str | None = None,
515
516
  ) -> str:
516
517
  """List tasks across all notes with filtering.
@@ -530,6 +531,11 @@ def list_tasks(
530
531
  no_project: Only tasks with no project assigned (inline or inherited).
531
532
  no_context: Only tasks with no context assigned.
532
533
  all: Include done and cancelled tasks.
534
+ created: Show tasks created on a day: today, yesterday, or a date
535
+ (2026-11-14, last friday). A task with no created date of its own
536
+ counts as made on its note's day. Needs an fn with Tasks 2.0; each
537
+ task's day is in its `created` field, with `createdFromNote: true`
538
+ when it is the note's day.
533
539
  collection: Collection name, UUID, or path.
534
540
  """
535
541
  args = ["tasks"]
@@ -559,6 +565,8 @@ def list_tasks(
559
565
  args.append("--no-context")
560
566
  if all:
561
567
  args.append("--all")
568
+ if created:
569
+ args += ["--created", created]
562
570
  return json.dumps(run_fn(args, collection), indent=2)
563
571
 
564
572
 
@@ -808,6 +816,52 @@ def remove_task(
808
816
  return json.dumps(run_fn(["tasks", "remove"] + sel + _note_args(note), collection), indent=2)
809
817
 
810
818
 
819
+ # ---- Tasks: Move ----
820
+
821
+ @mcp.tool()
822
+ def move_task(
823
+ to: str,
824
+ note: str | None = None,
825
+ text: str | None = None,
826
+ task_id: str | None = None,
827
+ heading: str | None = None,
828
+ collection: str | None = None,
829
+ ) -> str:
830
+ """Move a task to another note, keeping it the same task.
831
+
832
+ The task's line moves with its id, its created date, its comments (the `> `
833
+ lines under it) and the lines indented under it, to the end of the `to`
834
+ note, or to the end of one of its headings' sections. Nothing of it is left
835
+ in the note it came from. Needs an fn with Move to Note (FoldNotes' Tasks
836
+ 2.0). Identify the task by `task_id` (exact, preferred) or `text`
837
+ (substring).
838
+
839
+ Args:
840
+ to: The note to move the task to: its title, filename or UUID. A daily
841
+ note can be named (its title is its date, e.g. 20261117), so a task
842
+ moved by mistake can be put back on its day.
843
+ note: Note title containing the task now. Optional — without it the
844
+ task is found across all notes, and a text match in more than one
845
+ note is refused (the error lists the candidates; pass task_id).
846
+ text: Task text to match (case-insensitive substring). Must match
847
+ exactly one task; if several match, the command is refused — pass
848
+ task_id.
849
+ task_id: Exact task UUID from `list_tasks`. Preferred.
850
+ heading: A heading in the `to` note, by its words (any level): the task
851
+ goes at the end of its section. Omit for the end of the note. A
852
+ heading the note doesn't have is refused, and the error lists the
853
+ note's headings.
854
+ collection: Collection name, UUID, or path.
855
+ """
856
+ sel = _task_selector(text, task_id)
857
+ if sel is None:
858
+ return json.dumps({"error": "Provide either text or task_id."}, indent=2)
859
+ args = ["tasks", "move"] + sel + _note_args(note) + ["--to", to]
860
+ if heading:
861
+ args += ["--heading", heading]
862
+ return json.dumps(run_fn(args, collection), indent=2)
863
+
864
+
811
865
  # ---- Tasks: Projects ----
812
866
 
813
867
  @mcp.tool()
File without changes
File without changes
File without changes