CLI
Install and use the adcom CLI for agent-first setup, readiness checks, and local MCP bridging.
adcom is the local command line interface for Ad Computer.
It is designed for agent-first operation: a remote Codex or Claude Code session can run setup on its own machine, hand the user a browser URL, wait for approval, and finish the live Meta-first workspace bootstrap without requiring a localhost callback on the same device.
Install
npm install -g adcomCore commands
adcom setup
adcom status
adcom whoami
adcom accounts list
adcom accounts use <account-id>
adcom doctor
adcom mcp serveAgent-first setup
For remote, SSH, headless, or agent-driven usage, prefer:
adcom setup --json --no-open --print-urlThis command:
- starts a remote-safe browser approval flow
- waits for the user to sign in and approve CLI access
- waits for Meta to be connected in the app
- selects a default ad account when one is not configured
- creates
.adcom/context.yamlwhen it is missing - validates the workspace and hosted MCP reachability
The user action is limited to browser approval and Meta authentication in the app.
JSON events
adcom setup --json emits JSON lines that agents can react to directly.
Current events:
login_urllogin_completeprovider_action_requiredprovider_default_account_selectedcontext_initializedsetup_complete
For a one-shot readiness summary without an event stream, use:
adcom status --jsonManual inspection
If you need to inspect the current identity directly:
adcom whoamiUse adcom doctor for a detailed readiness breakdown, including blockers and suggested fixes.
Expose MCP over stdio
adcom mcp serveUse this when a local MCP client expects a stdio server but you still want the hosted Ad Computer MCP worker to remain the execution layer.
The local bridge also adds one convenience tool on top of the hosted surface:
review_default_account_performanceThat tool resolves the configured default Meta account, runs the 7-day review, and returns three deterministic suggested actions without making writes.
Direct hosted MCP clients should call:
meta_review_account_performanceand pass an explicit account_id.
Canonical first review
After setup is healthy, the canonical sequence is:
adcom setup
adcom status
adcom mcp serveThen ask your agent to call:
review_default_account_performanceProduct URLs
- Website:
https://ad.computer - Docs:
https://docs.ad.computer - App:
https://app.ad.computer - MCP:
https://mcp.ad.computer/mcp