About Qzcli Tool
Qzcli Tool is an MCP server published by tianyilt in the Automation category: 启智平台任务管理 CLI:资源查询、任务提交、日志查看和 MCP/agent workflow. Conduid read 17 tools from its source: qz_auth_login, qz_create_hpc_job, qz_create_job, qz_exec, qz_exec_attach, qz_get_availability and 11 more. No package is published for it, so it installs from a source checkout.
The repository has 156 stars and 28 forks, is licensed MIT, and its last commit was on 18 Nov 2026. The latest release is v0.6.1 (18 Nov 2026): v0.6.1 — 适配平台停用 offline_access + 7×24 管线零配置自动兜底 默认 OAuth scope 对齐官方 qz v1.0.0(openid profile email):平台 Keycloak 已移除 offline_access 授权,旧 Offline 令牌已失效;运行 qzcli login(桌面端自… It follows v0.6.0 (18 Nov 2026), and the 5 most recent releases go back to v0.4.13 (27 Aug 2026). It passes 3 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned and No dynamic code execution. Its topics include ai-infrastructure, cli, inspire and qzcli.
Install
git clone https://github.com/tianyilt/qzcli_toolTools (17)
qz_auth_login检查 Python 原生官方 OAuth 认证;需网页登录时在终端运行 qzcli login。显式 legacy 模式支持原 CAS 密码登录。qz_create_hpc_job提交 HPC / CPU 任务(Slurm 类作业,非 GPU 训练任务)。注意 HPC 的 priority 方向与训练任务**相反**:数字越大优先级越高(1→LOW(11)、5→HIGH(30)、10→HIGH(35),有效范围 1-10),而训练任务是 10=低优。默认 1(LOW),与生产 HPC 任务一致。qz_create_job创建并提交任务到启智平台。workspace/project/compute_group 支持名称或 ID(名称从 qz_refresh_resources 缓存解析)。省略 project/spec 时自动从缓存选取第一个。qz_exec在开发机上执行命令(通过 Jupyter API,无需 SSH)。target 支持 name / notebook_id (UUID) / 完整 URL。detach=True 时后台启动并立即返回 job_id,之后用 qz_exec_attach 拉取输出(适合编译、下载、训练等长命令)。qz_exec_attach重连 qz_exec(detach=True) 启动的命令,继续拉取其输出与退出码(可多次调用直到 finished=True)。qz_get_availability查询计算组空闲节点、低优空余节点与推荐计算组。qz_get_hpc_usage查询 HPC 节点利用率(CPU 分区的空闲/繁忙节点分布)。不指定 workspace 时会遍历全部已缓存的工作空间。与 GPU 的 qz_get_availability 是两套资源,别混用。qz_get_job_detail查询单个任务详情,返回 raw 详情与归一化状态。qz_get_usage统计工作空间 GPU 使用分布。qz_inspect_status_catalog查看当前抓到的原始状态值与归一化结果,便于应对平台字段漂移。qz_list_jobs列出任务,返回 raw 状态与归一化状态。qz_list_tracked_jobs列出本地追踪任务,可选刷新非终态任务状态。qz_list_workspaces列出可访问或已缓存的工作空间。qz_refresh_resources刷新一个或全部工作空间的资源缓存(项目、计算组、规格)。qz_set_cookie手动设置浏览器 cookie,可选校验默认工作空间是否可访问。qz_stop_job停止任务。qz_track_job将任务 ID 加入本地追踪列表。Security checks
- ✓README presentThe repository's README runs to about 2.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- !No dynamic code executionScanned 28 source files and found 1 call to eval or shell execution, in qzcli/devbox.py. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.8K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README