用途:面向餐厅经理、店长等用户,通过 Membrane CLI 与 7shifts 排班与劳动力管理平台交互,管理公司相关数据。
主要能力:可操作公司、地点、用户(员工)、角色、部门、班次、打卡记录、请假请求等。资料列出的常见动作包括 list-companies、get-company、list-locations、get-location、create-location、list-users、get-user、create-user、update-user、deactivate-user、list-shifts、get-shift、create-shift、update-shift、delete-shift、list-time-punches、create-time-punch、list-time-off、list-roles、list-departments 等。
使用方式:先安装 CLI:npm install -g @membranehq/cli@latest;再执行 membrane login --tenant --clientName=<agentType> 登录(无头环境会输出授权 URL,需用户浏览器打开,完成后运行 membrane login complete <code>)。连接用 membrane connection ensure "https://7shifts.com" --json;若状态为 BUILDING 可用 npx @membranehq/cli connection get <id> --wait --json 轮询。搜索动作用 membrane action list --connectionId=CONNECTION_ID --intent "QUERY" --limit 10 --json,运行动作用 membrane action run <actionId> --connectionId=CONNECTION_ID --input '{"key": "value"}' --json。当现有动作不足时,可用 membrane request CONNECTION_ID /path/to/endpoint 直接调用 7shifts API 代理。
适用场景:适合在终端或 AI 代理中自动化管理餐厅排班、员工、打卡与劳动力数据。
限制:具体动作的参数结构、返回字段与配额等细节资料未提供;认证由 Membrane 服务端管理,不应向用户索取 API 密钥。