Skip to content

Commit 3621bb7

Browse files
authored
fix: MCP Error with MCP-Hub #204 (#212)
Signed-off-by: Drew Cain <[email protected]>
1 parent f80ac0e commit 3621bb7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/basic_memory/mcp/tools/project_management.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from textwrap import dedent
8+
from typing import Optional
89

910
from fastmcp import Context
1011
from loguru import logger
@@ -19,7 +20,9 @@
1920

2021

2122
@mcp.tool("list_memory_projects")
22-
async def list_memory_projects(ctx: Context | None = None) -> str:
23+
async def list_memory_projects(
24+
ctx: Context | None = None, _compatibility: Optional[str] = None
25+
) -> str:
2326
"""List all available projects with their status.
2427
2528
Shows all Basic Memory projects that are available, indicating which one
@@ -159,7 +162,9 @@ async def switch_project(project_name: str, ctx: Context | None = None) -> str:
159162

160163

161164
@mcp.tool()
162-
async def get_current_project(ctx: Context | None = None) -> str:
165+
async def get_current_project(
166+
ctx: Context | None = None, _compatibility: Optional[str] = None
167+
) -> str:
163168
"""Show the currently active project and basic stats.
164169
165170
Displays which project is currently active and provides basic information

0 commit comments

Comments
 (0)