Skip to main content
Glama

@useatom/cli

用于 Atom 的 CLI + MCP 服务器 — 在 Slack 中接收 GitHub 拉取请求通知,按 PR 组织成线程。

npm install -g @useatom/cli
atom init

要配合编码代理使用?请将其指向 useatom.dev/llms-install.md。

命令

命令

功能

atom init

交互式设置:登录 → 工作区 → 连接 GitHub + Slack → 映射仓库。可恢复。

atom login

通过浏览器进行 GitHub 登录。--with-token(环境变量 ATOM_TOKEN/标准输入)用于 CI,--manual 用于 SSH。

atom logout / atom whoami

清除 / 显示会话。

atom status

工作区概览:连接、计划、映射。

atom connect github|slack

运行一个连接步骤(打开浏览器,等待完成)。

atom map [repo] [channel]

将仓库的 PR 映射到频道。不带参数时进入交互模式。

atom unmap [repo]

移除映射(使用 --yes 跳过确认)。

atom repos / atom channels

列出仓库(含映射) / 机器人可以发布的频道。

atom reminders [list]

列出 PR 提醒配置。

atom reminders set --channel #x

创建或更新提醒(--time、--tz、--days、--repos;repos 默认使用频道的映射)。

atom reminders delete --channel #x

移除频道的提醒。

atom standup status|enable|disable

管理站会(enable --channel #x --nudge 09:30 --post 11:00 --tz Zone --days mon,fri)。

atom standup add-user|remove-user <login>

添加或移除参与者(仅限主动加入)。

atom invite / atom join <code>

邀请队友 / 加入工作区。

atom mcp

在 stdio 上运行 MCP 服务器。

每个命令都支持 --json 以便脚本化;大多数命令还接受 -w, --workspace <id>。

Related MCP server: MCP PR Workflow Server

MCP

claude mcp add atom -- atom mcp
# or with no global install:
claude mcp add atom -- npx -y @useatom/cli mcp

14 个工具:atom_status、list_repos、list_channels、list_mappings、 map_repo、unmap_repo、get_invite_link、list_reminders、set_reminder、 delete_reminder、get_standup、set_standup、add_standup_participant、 remove_standup_participant。需要先执行 atom login —— 服务器会读取 相同的 ~/.useatom/config.json。

环境变量

变量

用途

ATOM_API_URL

覆盖 API 基础 URL(本地开发:http://localhost:8500)。

ATOM_TOKEN

会话令牌覆盖 —— 由 login --with-token 和无头运行使用。

ATOM_CONFIG_DIR

配置目录覆盖(测试/CI)。默认 ~/.useatom。

开发

npm install
npm run build       # tsup → dist/
npm test            # vitest: config unit tests + MCP protocol test (needs a build)
npm run typecheck

Related MCP Connectors

Related MCP Servers