Skip to content

Commit 8907e48

Browse files
jope-bmclaude
andcommitted
Revert trailing slash removal from project list client path
The trailing slash on /v2/projects/ is required because the FastAPI route is defined as @router.get("/"). Removing it caused 307 redirects that broke call_get (which doesn't follow redirects), failing all project management tests in CI. The cloud proxy's defense-in-depth filtering already handles both slash variants via rstrip("/"), so the trailing slash was never causing a filtering bypass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Joe P <joe@basicmemory.com>
1 parent d6855c5 commit 8907e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic_memory/mcp/clients/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async def list_projects(self) -> ProjectList:
5555
"""
5656
response = await call_get(
5757
self.http_client,
58-
"/v2/projects",
58+
"/v2/projects/",
5959
)
6060
return ProjectList.model_validate(response.json())
6161

0 commit comments

Comments
 (0)