Skip to main content
Use MCP for clients that discover tools and the CLI for shell commands. Their credentials carry your AutoAdy access; setup is complete only after a verified tool result.

MCP server

The remote endpoint is:
OAuth-capable clients use account sign-in through OAuth 2.1. Follow Connect your own agent for the built-in recipes and Claude setup. Sign in with the intended identity and verify list_ad_accounts before allowing management tools. For clients that launch a local stdio server, use the published wrapper with a private API-key environment:
Replace the placeholder privately and follow the client’s configuration-file instructions. Do not commit a file containing the real key. MCP offers a wider tool catalog than REST. Discover it with tools/list and follow each returned input schema. Tool failures can be JSON-RPC results with isError: true, even when the transport request succeeded. Inspect content and any structuredContent; do not assume every result contains a structured block. Raw numeric reporting data, when supplied, carries its currency and applied window. For recurring reporting, check get_connected_account before interpreting old performance as proof of current delivery. Use explicit account_id and the date arguments accepted by each tool. Configure schedules in your own runner, or use AutoAdy scheduled tasks for supported read/report work. Scheduling does not unlock blocked ad writes.

Command line

The CLI requires Node.js 18 or later. Store AUTOADY_API_KEY in your private environment, then run:
For a persistent local command:
Use a returned account ID in place of the example. A --key flag exists, but an environment credential avoids placing the secret in command history and process arguments. Use --help for the installed version’s flags. For raw input, --json-body supplies the request; --json controls the output format:
The installed CLI has a known-tool manifest. If a newly published REST endpoint is rejected as an unknown tool, check the package version or call that endpoint directly over REST.

Exit codes and automation

Output goes to stdout; diagnostics go to stderr. --json returns the response envelope for structured processing. A zero exit code alone is insufficient evidence that every step of a write completed. Follow response and retry handling before automating mutations.