浏览器登录(自动抓 Cookie)
noy_browser_loginOpens a separate Chrome profile for user sign-in, then saves the NOY_SESSION locally so tools can access noymanga.com without manual cookie copying or restarts.
Instructions
打开一个独立的 Chrome 窗口让用户自己输入账号密码,登录成功后自动读取 NOY_SESSION 并保存到本地,之后所有工具立刻可用(不用重启、不用手动复制 cookie)。 如果这个 profile 之前登录过,会直接复用、不弹窗(约 1 秒完成)——所以可以先无脑调一次 wait 试试。 用法:action=open 只开窗口(马上返回);action=wait 打开并在 timeout_seconds 内等待保存;action=cancel 关掉窗口。等待超时不会关窗口,用户登完再调一次 wait 即可。 ⚠️ 窗口是本项目专用的独立 profile(~/.noyacg-mcp/browser),不会动用户日常浏览器的登录态。 ⚠️ 只在用户明确要求「帮我登录」时调用,不要自作主张弹窗。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "noy_browser_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | open = 只打开窗口;wait = 打开并等待登录后保存;cancel = 关掉窗口 | wait |
| headless | No | 无头模式(一般只有 CI / 服务器场景需要) | |
| timeout_seconds | No | wait 的最长等待时间(秒);超时不会关窗口,可再次调用 |