Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/basic_memory/man/man3/bm-find(3).md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The shell counterpart is find(1).
## PARAMETERS

- **project** (string, required) — Required project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). Paths are relative to this project; a qualified path must agree with it.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' addresses another project.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' must agree with the project parameter.
- **name** (string | null, optional, default: None) — File-name glob, e.g. '*.md'. Not with `filters`.
- **filters** (object | null, optional, default: None) — Frontmatter filters as {field: condition}. Nested fields use dot notation ("schema.confidence"). A condition is a value for equality ({"status": "draft"}), null for absent-or-null ({"owner": null}), a list for contains-all ({"tags": ["a", "b"]}), or an operator object with $gt, $gte, $lt, $lte, $in, $between, $contains or $exists, e.g. {"priority": {"$in": ["high"]}}. Several operators on one field AND together.
- **fields** (array | null, optional, default: None) — Frontmatter fields to return per note (dot paths allowed), e.g. ["title", "priority"]. Needs `filters`.
Expand Down
2 changes: 1 addition & 1 deletion src/basic_memory/man/man3/bm-list(3).md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The shell counterpart is ls(1).
## PARAMETERS

- **project** (string, required) — Required project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). Paths are relative to this project; a qualified path must agree with it.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' addresses another project.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' must agree with the project parameter.
- **glob** (string | null, optional, default: None) — File-name glob, e.g. '*.md' or '*meeting*'.
- **sort** (string | null, optional, default: None) — File order. Folders always come first.
- **page** (integer, optional, default: 1) — Page number.
Expand Down
4 changes: 2 additions & 2 deletions src/basic_memory/mcp/project_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,8 +1859,8 @@ async def resolve_project_path_route(
)
raise ProjectPrefixConflictError(
f"path names project '{detected}' but project '{explicit}' was passed — "
f"use '{detected}/<path>' alone, or project='{explicit}' with a "
"project-relative path"
f"use project='{detected}' with a project-relative path, or "
f"project='{explicit}' with a project-relative path"
)

if detected is not None:
Expand Down
2 changes: 1 addition & 1 deletion src/basic_memory/mcp/tool_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
validation_alias=AliasChoices("path", "dir_name", "folder"),
description=(
"A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the "
"project root; '<project>/path' addresses another project."
"project root; '<project>/path' must agree with the project parameter."
),
),
]
Expand Down
4 changes: 2 additions & 2 deletions tests/mcp/test_project_path_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ async def test_conflicting_prefix_raises_naming_both(multi_project_config):

assert str(excinfo.value) == (
"path names project 'second-project' but project 'My Research' was passed — "
"use 'second-project/<path>' alone, or project='My Research' with a "
"project-relative path"
"use project='second-project' with a project-relative path, or "
"project='My Research' with a project-relative path"
)


Expand Down