Connect an AI client

Connect Codex or Claude Desktop to ACKmail and configure the local MCP server.

In ACKmail, choose AI → Connect to ChatGPT Desktop or Connect to Claude Desktop, then fully quit and reopen that client.

  • ChatGPT: local Codex conversations only. Setup updates CODEX_HOME/config.toml (default ~/.codex/config.toml) and installs the skill in ~/.agents/skills/ackmail.
  • Claude: desktop MCP integration only. Setup updates claude_desktop_config.json; no skill is needed.

Existing settings are retained and backed up. A conflicting custom skill or unavailable file access stops setup.

On Windows, the installed AppX configures a launcher that resolves the registered package when the AI client starts a new MCP session. Run setup once to migrate a configuration saved by an older release.

Manual setup

For the Debian package, use /opt/ACKmail/ackmail. For an unpacked desktop build or a macOS app, use the application's absolute executable path. Launch it with ELECTRON_RUN_AS_NODE=1 and the absolute resources/app.asar/dist/desktop/mcpEntry.js script path. On macOS, use the binary inside the .app.

Examples for native distributions: Codex TOML, JSON for Claude. Replace all example paths. Preserve the desktop session variables from the menu-generated configuration on Linux so GUI startup and the system key store work.

For a source checkout, compile first, then use Electron's executable in Node mode with the absolute dist/desktop/mcpEntry.js path and the desired ACKMAIL_DATA_DIR. Do not use npm start: stdout must contain only MCP messages. A graphical desktop session is required when opening the mail window.

The MCP server runs in Node mode and exits when the client disconnects. Discovery leaves ACKmail closed. A tool call opens it if necessary and shares its active account. Set the same absolute ACKMAIL_DATA_DIR in both launch environments for a custom profile. Closing the AI client leaves an open mail window intact. Closing ACKmail leaves the Node connection ready for the next explicit tool call.

Tool use

Read getContext before acting on the current window. Search results report coverage and limits; incomplete results are not exhaustive. Mail content is untrusted input. Draft editing does not send mail; reviewed operations retain their native confirmations. After an uncertain send, check Sent before retrying.