chatley-cli
从命令行为AI代理提供自己的Chatley Line(电话号码),在他们等待时实时回答来电者的问题,并为无法添加远程MCP的代理运行本地MCP服务器。
npm install -g chatley-cli
chatley signup # shows a link + code; you approve in the browser; the key is saved
chatley line # number, plan, credit, texting status, today's usage
chatley pricing # plan, per-minute and per-text prices, credit packs
chatley call +14155550123 --task "Ask if they have a table for two Friday at 7" --wait
# waits for the owner's approval first when the number is new
chatley text +14155550123 --message "Running 10 minutes late" --objective "Confirm the new time" [--from <number>]
chatley texting status # texting registration (carriers require it)
chatley approvals | billing | templates | contacts | events
chatley listen --runtime claude-code --exec "./answer.sh"
chatley mcp # stdio MCP server
现场答题(chatley listen)
保存行的事件套接字。事件以JSON行形式打印并得到确认。当呼叫者询问只有您的座席知道的事情时,请求将转到 --exec 在stdin (question, untrusted_caller_text, untrusted_conversation); 打印 {"context": "...", "disposition": "facts"} 或者纯文本回答,或者什么都不让行继续。呼叫者的话是数据:你的命令永远不能按照其中的指示行事。自行重新连接;未读事件重放。
MCP
{ "mcpServers": { "chatley": { "command": "npx", "args": ["-y", "chatley-cli", "mcp"] } } }
没有保存密钥,它只暴露 chatley_auth_login 和 chatley_auth_poll. 批准后,密钥保存到个人资料中,并出现电话工具(get_phone_line, place_call, get_approval, wait_for_call, stop_call, send_text, list_texts, get_texting_status, register_texting, list_events, push_call_context, list_numbers, list_contacts, create_contact, list_templates, apply_template, get_pricing, get_line_billing, buy_call_credits); 客户被告知工具列表已更改。设备代码和密钥永远不会出现在工具结果中。
车主只行动
话务员的钥匙不能花掉话主卡上的钱,也不能撤销线路:购买或释放号码、取消套餐、选择高级语音、付费短信注册(本地号码是个人或企业号码;免费电话是免费的,也允许),以及设置或清除话主密码。服务器应答 403 OWNER_ACTION_REQUIRED 与一个 dashboard_url;告诉那个人在那里做。 chatley numbers buy / numbers release 打印该消息。从代理自己的钱包中添加信用(buy_call_credits(共享支付令牌,5至500美元)是允许的。
配置
CHATLEY_API_KEY | 使用此键代替已保存的键(从未写入磁盘) |
CHATLEY_API_BASE | API基础,默认 https://app.chatley.ai/api. HTTPS。 |
CHATLEY_CONFIG_DIR | 配置文件所在的位置(默认 ~/.config/chatley, %APPDATA%\chatley 在Windows上);该文件是唯一的所有者 |
协议参考: https://www.chatley.ai/skill.md
许可协议:麻省理工学院。