Revert a non working initalized call again.
This commit is contained in:
parent
67f41e5a81
commit
6c7a54a83e
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue