Add the server to your agent
With your client installed, use the matching setup below. These commands configure the MCP connection; the login step authenticates your Adraa Inbox account.- Claude Code
- Codex
- Gemini CLI
- Cursor
Add the remote server for your user account, sign in, and check its status:Inside a Claude Code session, you can also run
/mcp, select adraa-inbox, and authenticate there.To create a connection with explicit read-only inbox permissions, use this instead of the first command, then run the login command:--scope user controls where Claude Code saves the configuration. OAuth permissions are the space-separated names in oauth.scopes.See the official Claude Code MCP guide.Sign in to Adraa Inbox
- Run your client’s login command above, or select its MCP authentication action. It opens an Adraa Inbox authorization page in your browser.
- If you are not signed in, enter your Adraa Inbox email and verify the code sent to that address. Complete any additional account verification when prompted.
- Choose the workspace you want the agent to access. Your account must be an active admin of that workspace.
- Review the requested permissions and approve the connection.
- Return to your terminal or editor and refresh the MCP tool list. Ask the assistant to call
get_meto confirm the workspace wheninbox:readwas granted.
MCP sign-in is separate from signing in to Claude, Codex, Gemini, or Cursor. You use your Adraa Inbox account for the authorization page. No workspace API token or OAuth client secret is required.
If the browser does not open
Open the authorization URL printed by your client. Codex and current Claude Code versions also support an explicit manual-browser flow:If you need more permissions
Update the scopes your client requests and sign in again. For Codex, usecodex mcp login with the revised --scopes list. For Claude Code, update oauth.scopes and rerun claude mcp login adraa-inbox. For Gemini CLI, update oauth.scopes and rerun /mcp auth adraa-inbox.
The consent page shows what the new connection can do. Refreshing a token or restarting the agent does not add permissions to an existing grant. The table below lists the scope needed for each capability.
Permissions
The client requests scopes during authorization. Approve only the access needed for your task.
The existing setup and flow scopes keep their behavior. The ten inbox, contact, WhatsApp, agent, and broadcast scopes are additional permissions. When a client does not specify scopes, the default remains
setup:read flows:read.
If a tool reports insufficient scope, configure your client to request the required scope and authorize a new connection. Refreshing an existing token does not add permissions. A server update does not expand an earlier grant.
Tool reference
MCP exposes every operation in the documented public REST API, along with helpers for account selection, template status, workspace setup, and flows. Each tool uses the selected workspace and enforces its required scope.
Use list and get tools to resolve IDs before writing. Follow the returned pagination fields for additional results.
list_messages accepts conversationId to focus on one conversation; it still defaults to inbound messages, so use direction: "all" to read both directions. Read the current flow version before updating or publishing it.
update_contact merges supplied custom fields; a null value removes that field. set_contact_tags replaces the contact’s full tag set, so include every tag you want to keep. Assignment changes replace the current assignment.
Agent administration follows the public API’s protections for managed agents and the last workspace admin. remove_agent removes workspace membership. send_broadcast sends to a saved contact group; send_audience_broadcast supports the API’s audience options. Broadcasts send customer messages and can incur delivery charges, so inspect the audience and template before sending.
WhatsApp template workflow
- Call
list_whatsapp_accountsand choose the connected number for your task. - Draft the template and call
submit_whatsapp_templatewith that account infrom. Include body samples and any button samples. - Call
list_whatsapp_account_templatesfor the samefromto inspect approval status and button definitions. You can filter bystatus, such asAPPROVED. - Once approved, call
send_whatsapp_templatewith the recipient, template name, language, and variable values.
list_whatsapp_templates mirrors the public API’s approved-template list across the workspace. Use list_whatsapp_account_templates when you need a specific account’s pending or rejected templates and full component definitions.
The account-template helper returns up to limit templates per page (1–100, default 50). Pass its nextCursor as cursor to get the next page, keeping from and status unchanged. A null cursor marks the last page. If a cursor becomes invalid after the template list changes, restart the listing for the same account and filters.
For a dynamic website button, submit a URL with one {{1}} placeholder at the end and a full sample URL:
buttonParameters, separately from body parameters:
Example tool call
Your MCP client discovers tool schemas throughtools/list and invokes tools through tools/call. Let the client handle OAuth and send requests to the MCP server URL.
For example, read both directions of one conversation’s history:
list_conversations. This call requires inbox:read. Follow nextCursor to retrieve more messages.
Resources and prompts
Clients that support MCP resources can discover these withresources/list and retrieve them with resources/read:
Discover reusable prompts with
prompts/list, then call prompts/get with the named arguments:
Retrieving a resource or prompt does not submit a template, publish a flow, or send a customer message.
Errors and rate limits
The general limit is 100 requests per minute per IP. Per-operation write limits also apply. A successful send attempt does not prove recipient delivery. If a write times out, inspect the resulting messages, templates, or campaigns before retrying to avoid duplicates.
If your client cannot find the inbox tools, refresh its tool list and check that the deployment includes the extended MCP server. Granting a scope does not add tools to an older server release.
Manage connected applications
Open Settings → API → Connected AI apps to inspect each application’s workspace and permissions. Select Disconnect to revoke that application’s connection. You can authorize a new connection later.Build an MCP client
The server advertises OAuth discovery metadata at:https://api.inbox.adraa.ai/.well-known/oauth-protected-resource/mcphttps://api.inbox.adraa.ai/.well-known/oauth-authorization-server
https://api.inbox.adraa.ai/mcp throughout authorization. The server requires a state value and S256 PKCE, and supports public client registration.
For reusable agent instructions and direct REST workflows, see Agent skills. See the API reference for request fields shared with the MCP tools.