Create and connect an agent
An agent is a machine identity. It has no password and cannot sign in to the web interface. Its authority comes from mailbox grants, narrowed by the scopes on each token.
Create the agent
Section titled “Create the agent”- Open Agents and create an agent with a descriptive name.
- Open the new agent and add a mailbox grant.
- Choose
operatorfor the usual agent workflow: read mail, work with drafts, and create approval requests without deciding them. - Mint a token. Leave its scope list empty to avoid narrowing the grant, or provide an explicit subset.
- Copy the token immediately. Alcarta stores only its digest and cannot show it again.
Connect through MCP
Section titled “Connect through MCP”Configure the client with:
URL: https://your-alcarta.example/mcpAuthorization: Bearer <token shown once>Transport: Streamable HTTPAfter initialization, call get_identity. It returns the visible mailboxes, folder roles, limits,
and effective capabilities. See Connect over MCP for the full handshake.
Connect through REST
Section titled “Connect through REST”curl --fail-with-body \ --header "Authorization: Bearer $ALCARTA_TOKEN" \ https://your-alcarta.example/api/v1/identityNever place a bearer token in a URL, command history committed to source control, screenshot, or support bundle.
Rotate or revoke access
Section titled “Rotate or revoke access”Token rotation creates a new token with the same scope list and can keep the previous token in a short grace period. Disabling is reversible; revocation is terminal. Disabling or deleting the agent rejects all of its tokens.