Revert a non working initalized call again.

This commit is contained in:
esus 2025-10-14 15:44:38 +13:00
parent 67f41e5a81
commit 6c7a54a83e
1 changed files with 1 additions and 5 deletions

View File

@ -238,11 +238,7 @@ class MCPBrowser:
# Initialize if needed for other requests # Initialize if needed for other requests
if not self._initialized: if not self._initialized:
await self.initialize() await self.initialize()
# After initalization we MUST return notfications iniitialized
return {
"jsonrpc": "2.0",
"method": "notifications/initialized"
}
# Check if this is a virtual tool call # Check if this is a virtual tool call
if jsonrpc_object.get("method") == "tools/call": if jsonrpc_object.get("method") == "tools/call":
tool_name = jsonrpc_object.get("params", {}).get("name") tool_name = jsonrpc_object.get("params", {}).get("name")