Skip to main content
Glama
personal-charming

personal-charming

by K0848

Personal Browser Assistant

在自己选定的 Chrome 配置里,让 MCP 客户端读取页面、操作控件,并核对操作结果。助手可以在后台打开标签页。任务需要持续操作同一页面时,显式传入 tabId;点击后效果不明确时,先根据回执核验,再决定是否继续。

安装与连接

需要 Node.js 22 或更新版本,以及支持加载解压扩展的 Chrome 116 或更新版本。在本仓库根目录运行:

npm ci
node src/cli.js extension

在需要连接的 Chrome 配置中访问 chrome://extensions,打开开发者模式,选择「加载已解压的扩展程序」,再选中命令输出的 extension 目录。回到终端执行:

npm run doctor
node src/cli.js call tabs '{"action":"list"}'

doctor 会启动或连接本机桥,并确认扩展是否在线和版本是否一致。断线可先在扩展弹窗中点「重连」。更新源码后请在 chrome://extensions 重新加载扩展。需要观察桥接日志时,使用 node src/cli.js bridge --foreground。

Related MCP server: chrome-bridge

接入 MCP

MCP 服务器使用 stdio。以下是 Codex 的 TOML 配置示例,把路径改成此仓库中 src/cli.js 的绝对路径;PowerShell 中可运行 (Resolve-Path src/cli.js).Path 获取。

[mcp_servers.personal-charming]
command = "node"
args = ["C:/projects/personal-browser-assistant/src/cli.js", "mcp", "--client", "codex"]

其他 MCP 宿主同样可以用 node 启动该入口。测试连接时,可从 tabs 列出测试窗口,再用 snapshot 查看标签里的控件。act.verify 支持在操作结束后逐项核对表单状态。

可选的 Jobfill 草稿填写

浏览器功能可独立运行。需要填写网申草稿时,可把 Jobfill Skill 安装到本仓库旁边。在两个仓库的父目录执行:

git clone https://github.com/K0848/jobfill-skill.git jobfill

已有其他安装位置时,把 JOBFILL_SKILL_ROOT 设为 Jobfill 仓库的绝对路径。若通过 MCP 使用,把同一个环境变量加到宿主的 MCP 服务配置里。检测到 Jobfill 时,MCP 提供 jobfill_draft 工具,参数 requestFile 指向用户授权并选定的本机 JSON 请求文件。也可通过以下命令运行:

node src/cli.js jobfill --request-file "C:/private/draft-request.json"

字段写入后读回核验。网站保存、附件上传和最终投递由用户处理。请求格式和可执行范围见 Jobfill Skill。

本机数据与权限

  • 桥只监听 127.0.0.1:18999。扩展使用它所在 Chrome 配置的登录状态。只在希望授予助手控制权限的 Chrome 配置中加载扩展。

  • 桥接凭据、操作日志和站点经验默认保存在 ~/.personal-charming。可通过 PERSONAL_CHARMING_HOME 指定仓库外的独立目录,同一安装的 CLI 和 MCP 进程使用同一目录。

  • 标签列表、页面快照和部分操作回执可能包含页面地址或个人信息。个人资料与草稿 JSON 保存在版本库外,只把经用户选定的路径提供给工具。

验证与来源

运行 npm test 验证本地桥、MCP 调用、点击回执和扩展控件核验。测试使用模拟扩展和页面控件。

浏览器实现源于 huashu-chrome 1.2.0。原作者署名与 MIT 许可见 LICENSE.browser-upstream。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP clients to drive a real, logged-in Chrome browser for web automation tasks like navigation, clicking, typing, and screenshotting.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to directly operate your existing logged-in Chrome profiles, including cookies and extensions, without re-authentication or a headless browser. It provides tools for managing tabs, navigating, reading pages, clicking, typing, and launching profiles.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to control a local Chrome browser, including tabs, navigation, reading, clicking, typing, screenshots, and exclusive per-task control with user-stop capabilities.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to control an existing Chrome browser session through a local extension and native bridge, exposing tabs, navigation, DOM interaction, screenshots, network inspection, cookies, storage, bookmarks, history, downloads, and related browser capabilities.
      MIT