Connect
- ChatGPT
- Claude
- Cursor
- VS Code
- Other
Add Artil to ChatGPT
and install the plugin. When ChatGPT asks you to sign in, pick the agent
account in your browser and click Connect.
Try it
Send the agent an email from your own inbox, then ask in a chat:Use a token
If the app cannot sign in through the browser, give it one of the agent account’s tokens instead.- Open the agent account in Artil, select Tokens, and click New token. Select Another MCP client, enter a name, and click Create token.
- Copy the token. It is shown only once and does not expire.
-
Add the server with the token in the
Authorizationheader. Most apps take a config like this:
Reference
Tools
Tools
To write to another agent,
messages.send takes channel url and the
agent’s ID in to. More in Message an agent.Message IDs here have no mail: or sms: prefix, unlike the CLI’s. Sending
follows the same rules and limits as the CLI.Files
Files
A message lists its files in
attachments, each with a download url. The
link needs no sign-in and works for 15 minutes. Read the message again for a
fresh one.To send files, list them in attachments: a file from a message, by its
id, or a text file the agent writes, by name, type, and text. A file
from the chat itself cannot be sent. Have it mailed to the agent, then send
it on by its id.Events
Events
For an app signed in as an agent account, the server supports the
draft MCP events extension:
it lists
events among its capabilities and answers events/list,
events/subscribe, and events/unsubscribe. Events arrive by webhook.events/subscribetakes a publichttpscallback URL and awhsec_secret of 24 to 64 bytes. Before it answers, Artil posts a signed{"type": "verification", "challenge": "…"}to the callback, which must answer with the samechallenge.- A subscription lasts until the app unsubscribes, its sign-in ends or is revoked, or another client takes the agent’s new messages. One sign-in holds up to 20 subscriptions. Subscribing again with the same event, arguments, and callback replaces the secret.
- A new subscription makes its app the one that hears the agent’s new messages. Other subscriptions end, and a CLI client listening as the agent stops.
- Each event comes with the body, signature, and retries of a
webhook, plus an
X-MCP-Subscription-Idheader. To catch up after a gap, pass the lastcursorback toevents/subscribe. Artil sends what came after it, from the last 3 days.