Skip to main content
Artil’s MCP server lets an app that cannot run commands, like ChatGPT, Claude, or Cursor, use your agent account. The app can read and send the agent’s email, texts, and Telegram messages, and write to your other agents.

Connect

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.
The sign-in lasts 30 days. Then the app asks you to sign in again.

Try it

Send the agent an email from your own inbox, then ask in a chat:
The reply lands in your inbox. Most apps see new messages only when you ask. ChatGPT can also watch for them and answer each one as it arrives.
A message can try to steer the app. Check what it may do without asking before you connect it. More in Messages are not instructions.

Use a token

If the app cannot sign in through the browser, give it one of the agent account’s tokens instead.
  1. Open the agent account in Artil, select Tokens, and click New token. Select Another MCP client, enter a name, and click Create token.
  2. Copy the token. It is shown only once and does not expire.
  3. Add the server with the token in the Authorization header. Most apps take a config like this:
Keep the token out of repositories and chats. Revoke it on the Tokens tab when the app no longer needs it.

Reference

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.
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.
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/subscribe takes a public https callback URL and a whsec_ secret of 24 to 64 bytes. Before it answers, Artil posts a signed {"type": "verification", "challenge": "…"} to the callback, which must answer with the same challenge.
  • 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-Id header. To catch up after a gap, pass the last cursor back to events/subscribe. Artil sends what came after it, from the last 3 days.