Google Gemini MCP Code Not Working

I have used the exact code snippet provided in the google gemini docs to use mcp. However, it isn’t working as expected—the code execution gets stuck at await session.initialize(). Does anyone know how to resolve this issue?"

Hey @Naitik_Singhal , Just checked on my end, it seems to worked fine. Maybe try reinstalling the mcp and see if that helps.

The code is working on cloud environment such as Google idx and GitHub code spaces. But I don’t know why it is not working on my windows machine.