build: complete upgrade to fastapi 0.141, mcp sdk v2, fastmcp 4 and httpx2

This commit is contained in:
lda
2026-09-06 12:17:15 +07:00 Verified
parent 5b901557bd
commit 6d5b6741fb
42 changed files with 946 additions and 737 deletions
+4 -4
View File
@@ -61,17 +61,17 @@ class FakeStatefulClient:
self.page_open = True
return CallToolResult(
content=[],
structuredContent={"content": "opened"},
structured_content={"content": "opened"},
)
if tool_name == "browser_snapshot" and self.page_open:
return CallToolResult(
content=[],
structuredContent={"content": "snapshot"},
structured_content={"content": "snapshot"},
)
return CallToolResult(
content=[],
structuredContent={"message": "No open page"},
isError=True,
structured_content={"message": "No open page"},
is_error=True,
)
async def close(self) -> None: