Antigravity CLI Use
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Antigravity CLI Use use secondary Antigravity accounts to add tests and run them in parallel"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Antigravity CLI Use
MCP server và skill giúp AI điều phối giao việc cho các tài khoản Antigravity phụ: chạy song song, quản lý phụ thuộc, tiếp tục hội thoại và thu kết quả gọn.
AI tự lập kế hoạch theo yêu cầu; MCP thực thi. Không cần người dùng viết workflow JSON, không có pipeline hay mẫu website làm sẵn.
Dự án cộng đồng, không phải sản phẩm chính thức của Google hoặc OpenAI. Chỉ sử dụng tài khoản bạn được phép dùng và tuân thủ điều khoản của nhà cung cấp. Không tự tạo tài khoản hay vượt quota.
Có gì?
Worker được xác minh email đăng nhập từ log trước khi khôi phục credential chính; không dựa vào một khoảng sleep cố định.
Một worker hoạt động trên mỗi tài khoản; phần việc còn lại được xếp hàng theo tài khoản/quota khả dụng.
DAG với
depends_on, phân tích critical path và ưu tiên nhánh dài.Khai báo file đọc/ghi để điều phối worker không giẫm lên nhau.
Job bất đồng bộ, warm session nhiều lượt, kết quả giới hạn độ dài và thống kê token theo tài khoản.
wait_workflowchờ theo sự kiện với revision cursor. Chưa có cầu nối tự đánh thức AI sau khi lượt chat kết thúc.Skill tự nhận diện các yêu cầu “Antigravity CLI”, “agy”, “agy-worker-pool”, “tài khoản phụ” để chọn MCP đã kết nối.
Related MCP server: Antigravity MCP Bridge
Yêu cầu
Node.js 20+, Git; Codex CLI nếu dùng lệnh setup Codex.
Antigravity CLI
agyđã cài và đăng nhập. Baseline đã thử: 1.3.5. Xem hướng dẫn chính thức.Account vault riêng đã có tài khoản và session hợp lệ. Không có tài khoản/credential trong repo. Xem chuẩn bị vault.
Windows x64: .NET Runtime 10 cho helper đi kèm; chỉ cần SDK 10 nếu tự build helper.
Adapter macOS/Linux đã viết nhưng chưa kiểm chứng với tài khoản thật trên hai nền tảng đó; xem giới hạn.
Cài nhanh — Windows / Codex
Chạy trong PowerShell, ở nơi bạn muốn lưu công cụ:
git clone https://github.com/wanzdoan/antigravity-cli-use.git
cd antigravity-cli-use
npm ci
npm run setup:codexLệnh setup cài skill vào $CODEX_HOME/skills hoặc ~/.codex/skills, rồi đăng ký MCP bằng đường dẫn tuyệt đối của Node và repo vừa clone. Không đổi workspace của task và không sửa cấu hình MCP khác. Nếu skill có chỉnh sửa riêng hoặc đăng ký cũ trỏ sang nơi khác, setup sẽ dừng và hướng dẫn cách xử lý.
Khởi động lại/kết nối lại Codex sau khi công việc đang chạy đã kết thúc. Đường dẫn đăng ký đúng không có nghĩa tiến trình MCP cũ đã được nạp lại.
Kiểm tra bằng CLI:
node src/cli.js health
node src/cli.js accounts
node src/cli.js modelsTrong Codex, yêu cầu gọi health_check: phiên bản kết nối phải khớp package.json. Danh sách account/model không đồng nghĩa một worker đã thực thi thành công; cần chạy một task nhỏ trong workspace thử nghiệm để xác nhận.
Hướng dẫn cài thủ công, client khác, cập nhật và gỡ cài đặt.
Cách dùng
Ví dụ prompt:
Dùng Antigravity CLI qua MCP để kiểm tra dự án hiện tại và bổ sung bộ test
cho phần xử lý dữ liệu. Bạn tự xác định các trường hợp biên, chia việc cho
tài khoản phụ khi hữu ích, chạy test và sửa lỗi nằm trong phạm vi yêu cầu.
Không sửa file không liên quan. Báo lại những gì đã xác minh và job ID.Hoặc gọi skill rõ ràng:
$antigravity-cli-use Dùng các tài khoản phụ thực hiện yêu cầu sau: ...Skill hỗ trợ chọn đúng công cụ, không bảo đảm mọi model sẽ tự chọn đúng trong mọi tình huống. Nếu không thấy skill/tool, kiểm tra kết nối rồi restart client; không cần đi tìm một CLI khác trên web.
Workspace, file và giám sát
AI phải truyền cwd tuyệt đối của phiên gọi trong
workspace; không dùng đường dẫn cài MCP làm nơi tạo sản phẩm. Cùng một MCP có thể phục vụ task ở các project khác nhau.write_paths/read_pathslà đường dẫn cụ thể, không phải glob. Bỏwrite_pathsnghĩa là giữ độc quyền toàn workspace;[]khai báo read-only hợp tác.AI tự tạo
depends_oncho quan hệ đầu vào/đầu ra thật. Scheduler tự chạy các task đủ điều kiện; không cần AI khởi động lại từng stage.wait_workflow: mặc định 60 giây, tối đa 300 giây nếu timeout client cho phép. Hết thời gian chờ không phải job thất bại. Chờ lại cùng ID với revision mới.Resource notification là tùy chọn của client, không phải push tự đánh thức mọi AI. Cơ chế chờ hiện tại được giữ nguyên.
Tài liệu
Phát triển
npm ci
npm test
npm run check
npm audit --omit=dev
npm pack --dry-runTest tự động dùng dữ liệu giả và thư mục tạm, không cần tài khoản thật. Script scripts/validate-parallel-workflow.mjs là smoke test chủ động tiêu quota, chỉ chạy khi bạn muốn thử worker thật; không phải template sản phẩm.
Build lại helper Windows từ source:
npm run build:helper:windowsGiới hạn
Windows x64 là môi trường đã thử end-to-end. macOS cần
security; Linux cầnsecret-toolvà một Secret Service khả dụng. CI không thay thế kiểm chứng keyring/tài khoản thật.CLI có thể thay đổi định dạng log xác thực. Không xác minh được đúng tài khoản thì worker dừng, không giả định thành công.
File reservation điều phối khai báo, không chặn worker ở mức hệ điều hành. Worker vi phạm scope hoặc editor bên ngoài vẫn có thể gây xung đột.
Ưu tiên một scheduler sống lâu cho mỗi state directory; lịch sử job dạng file chưa phải cơ sở dữ liệu phân tán.
Không hứa thời gian hoàn thành cố định; startup, quota, model và phụ thuộc thật vẫn ảnh hưởng latency.
MIT License. Không kèm Antigravity CLI, tài khoản hay token.
Available Tools
21 toolsanalyze_workflowA
Inspect a DAG before execution: parallel stages, critical-path estimate, redundant edges and file conflicts. Does not run workers or modify files.
Inputs: tasks (required), workspace (required), name, model, +3 more.
cancel_jobA
Cancel a queued or running job and terminate its complete process tree.
Inputs: job_id (required).
cli_executeB
Execute any non-interactive Antigravity CLI argv for full CLI coverage. Mutating management commands require allow_mutating=true.
Inputs: args (required), workspace (required), account, timeout_sec, +1 more.
close_sessionA
Gracefully close a warm session, or force-kill its process tree.
Inputs: session_id (required), force.
continue_jobC
Continue a completed conversation on the same account, preserving session affinity.
Inputs: job_id (required), prompt (required), model, effort, +2 more.
get_account_usageC
Return locally measured token totals and recent jobs for one account.
Inputs: account (required).
get_job_resultB
Get a terminal result or long-poll for up to 60 seconds. max_chars controls main-agent token usage.
Inputs: job_id (required), wait_ms, max_chars.
get_job_statusA
Get compact state and progress for one job without returning the full response.
Inputs: job_id (required).
get_workflow_statusB
Get one compact snapshot of the entire workflow, revisions, file blockers and measured timings, without model response bodies.
Inputs: workflow_id (required).
health_checkB
Inspect server, CLI, vault, and supported orchestration capabilities.
Inputs: no named parameters.
list_accountsB
List accounts without exposing credentials, including cached quota and live worker state.
Inputs: no named parameters.
list_jobsC
List recent jobs, optionally filtered by state or workflow.
Inputs: limit, state, workflow_id.
list_modelsC
Discover exact model ids accepted by the installed Antigravity CLI.
Inputs: include_raw.
list_sessionsB
List live warm sessions and their bound accounts.
Inputs: no named parameters.
open_sessionC
Open a verified warm stream-json session on one account for low-latency multi-turn work.
Inputs: workspace (required), agent, model, effort, +9 more.
refresh_account_usageA
Refresh live quota for one or all accounts. Runs as zero-token /usage jobs and can return immediately or wait.
Inputs: account, wait_ms.
session_turnA
Send one prompt to a warm session. The full result is saved locally while max_chars bounds MCP context usage.
Inputs: prompt (required), session_id (required), max_chars, timeout_sec.
submit_batchB
Queue independent tasks for quota-aware parallel execution across distinct accounts.
Inputs: tasks (required), workspace (required), timeout_sec, permission_mode.
submit_jobB
Queue one asynchronous Antigravity task in the caller current workspace. Returns immediately with a job id.
Inputs: prompt (required), workspace (required), role, agent, +13 more.
submit_workflowB
Queue a DAG with critical-path priority and file conflict reservations. Independent tasks with disjoint write_paths run in parallel. Returns analysis and a workflow resource URI.
Inputs: tasks (required), workspace (required), name, model, +3 more.
wait_workflowA
Event-driven wait for the entire workflow. Reuse after_revision to suppress old completions. Default 60s; up to 300s only when the client request timeout exceeds wait_ms. Cancellation stops waiting, not workers.
Inputs: workflow_id (required), wait_ms, wake_on, after_revision.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools have distinct purposes (e.g., jobs vs sessions vs workflows), but some overlap exists: `get_job_status` and `get_job_result` could be confused, and `refresh_account_usage` vs `get_account_usage` have subtle differences. Descriptions clarify boundaries, but the set is dense with similar-sounding operations.
Predominantly consistent verb_noun pattern (list_jobs, cancel_job, submit_job) with minor deviations like `cli_execute` (noun_verb) and `session_turn` (noun_noun). Still mostly predictable and readable.
21 tools is on the heavy side for a CLI orchestration server, bordering the 16-25 'heavy' range. Some tools feel like thin wrappers (e.g., health_check, list_models), but the domain is broad enough to justify many.
Covers job lifecycle (submit, cancel, status, result), session management (open, turn, close, list), workflow orchestration (analyze, submit, wait, status), and account/model discovery. Minor gaps: no explicit delete or update operations for jobs/workflows, but core workflows are well-covered.
Maintenance
Related MCP Connectors
AI work orchestration for plans, tasks, teams, and coding-agent dispatch.
Design, build and run teams of AI agents with checked handoffs between them.
Task manager for AI agents. Orchestrate agents to achieve large goals in unified control plane.
Task coordination for AI agents. Exclusive locks, shared files, handoffs, per-agent spending limits.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables multiple CLI-based AI agents to collaborate as a coordinated team through shared task queues, shared memory, and a message bus, with DAG orchestration, rate-limit avoidance, parallel dispatching, and long-task management.633MIT
- AlicenseNot gradedqualityBmaintenanceEnables Codex or Claude Code to orchestrate persistent Antigravity CLI workers as independent implementers and testers within restricted workspace roots. It supports asynchronous task dispatch, progress polling, result inspection, follow-up messages, and cancellation with bounded, audited local event logging.5MIT
- FlicenseNot gradedqualityAmaintenanceEnables a primary AI coding assistant to delegate tasks to multiple specialized CLI-based sub-agents in parallel, share project context, and synthesize their responses into a single result. It supports using existing subscriptions and local tools without extra markup.-
- AlicenseCqualityBmaintenanceEnables Claude Code to act as a tech lead over headless Antigravity CLI sub-agents: spawning parallel workers in isolated git worktrees, running verify commands server-side with automatic fix loops, flagging stalls and loops, and merging results safely with conflict prediction. Workers return compact structured reports delivered once, and optional Orca IDE integration lets you watch logs and review diffs live.8MIT