lanhu_set_cookie
Set the Lanhu authentication cookie manually when automatic refresh fails, persisting it to ~/.lanhu/cookie for server access. Provide the full cookie string containing session and user_token.
Instructions
设置蓝湖认证 Cookie(并持久化到 ~/.lanhu/cookie)。
一般无需手动调用:Cookie 文件由 scripts/refresh_cookie.py 自动维护, MCP 启动时自动读取。仅在自动刷新不可用时,才需要从浏览器手动复制: DevTools → Network → 任一 lanhuapp.com 请求 → Request Headers → 复制完整 Cookie 头(须含 session 和 user_token)→ 传给本工具。 设置后可调用 lanhu_get_teams 验证是否生效。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookie | Yes | 浏览器 Cookie 字符串,必须包含 session 和 user_token 两项,例如: session=.eJy...; user_token=eyJ... |