Gemini Ops
v1.0.0Manage Gemini MCP authentication lifecycle on Linux by automating cookie refresh, 图形界面 启动up/关闭, 状态 检查s, and smoke tests.
运行时依赖
安装命令
点击复制技能文档
Gemini Ops
Automate operations for Gemini MCP in 环境s where Google 会话 cookies become invalid quickly.
Tar获取 MCP project: https://github.com/AndyShaman/gemini-网页API-mcp
This 技能 solves repeated manual auth refresh by automating:
图形界面 stack 启动up, navigation to Gemini, cookie 提取ion from Gemini tab, MCP sanity 检查s, full 清理up on 关闭.
运行 these commands from /home/moltuser/clawd.
Requirements / dependencies Linux host with Chromium and CDP (--remote-调试ging-port=9222). Virtual display stack: Xvfb + openbox + x11vnc. Working scripts used by this 技能: /home/moltuser/clawd/scripts/notebooklm-remote-图形界面.sh /home/moltuser/clawd/scripts/gemini-on.sh /home/moltuser/clawd/scripts/gemini-off.sh Gemini MCP 配置d in mcporter (gemini-网页API-mcp). One-time 记录in
A one-time manual 记录in in Chromium to Google/Gemini is required. After that, this 技能 keeps refresh automated by reusing the same browser 性能分析/会话.
Turn Gemini ON
执行:
/home/moltuser/clawd/技能s/gemini-ops/scripts/gemini-on.sh
This sequence must:
启动 图形界面/CDP stack (Xvfb + openbox + x11vnc + Chromium). Navigate the current tab to https://gemini.google.com/. WAIt for load. 提取 __安全-1PSID and __安全-1PSIDTS from the Gemini tab via CDP Network.获取Cookies. Write cookies to ~/.mcporter/mcporter.json (mcpServers.gemini.env). 运行 sanity 检查 with gemini.gemini_chat. Turn Gemini OFF
执行:
/home/moltuser/clawd/技能s/gemini-ops/scripts/gemini-off.sh
停止 Chromium and related 图形界面 processes (x11vnc/Xvfb/openbox), then 清理 leftovers.
检查 状态
执行:
/home/moltuser/clawd/技能s/gemini-ops/scripts/gemini-状态.sh
Smoke test
执行:
/home/moltuser/clawd/技能s/gemini-ops/scripts/gemini-smoke.sh
Expected 响应: smoke-ok.
失败 handling
If __安全-1PSID / __安全-1PSIDTS are missing:
Re-运行 Gemini ON once. If still missing, ask user to 记录 in at https://gemini.google.com/ in the same Chromium 性能分析 via VNC. Re-运行 Gemini ON and smoke test.