There was an error while loading. Please reload this page.
1 parent d775f7b commit 581b7b1Copy full SHA for 581b7b1
2 files changed
src/basic_memory/mcp/tools/build_context.py
@@ -16,8 +16,6 @@
16
memory_url_path,
17
)
18
19
-type StringOrInt = str | int
20
-
21
22
@mcp.tool(
23
description="""Build context from a memory:// URI to continue conversations naturally.
@@ -39,7 +37,7 @@
39
37
async def build_context(
40
38
url: MemoryUrl,
41
project: Optional[str] = None,
42
- depth: Optional[StringOrInt] = 1,
+ depth: str | int | None = 1,
43
timeframe: Optional[TimeFrame] = "7d",
44
page: int = 1,
45
page_size: int = 10,
src/basic_memory/mcp/tools/write_note.py
@@ -28,7 +28,7 @@ async def write_note(
28
content: str,
29
folder: str,
30
31
- tags=None,
+ tags: list[str] | str | None = None,
32
entity_type: str = "note",
33
context: Context | None = None,
34
) -> str:
0 commit comments