XgenPlusXgenPlusHelp Center

Connect Cursor to XgenPlus Mail

To connect Cursor, make your token, then add the XgenPlus server to ~/.cursor/mcp.json for all projects, or .cursor/mcp.json for one project. Use the block below and replace <TOKEN> with your token. Cursor then shows the XgenPlus tools in its MCP settings, and the agent can use them in chat.

For: EveryoneWebAI

How to connect Cursor

  1. Create an agent password in webmail under Settings › Security › AI Agents (MCP) and copy its token, or make your token.
  2. Open ~/.cursor/mcp.json for all projects, or create .cursor/mcp.json in one project.
  3. Paste the block below and replace <TOKEN> with your token.
  4. Open Cursor's MCP settings and check that xgenplus is on and lists its tools.
  5. Test the connection: ask the assistant to "Call get_mailbox_profile". If it lists your permissions, the token works. If it fails with a sign-in problem, the token is wrong or the mailbox is blocked. If it says the agent can't sign in right now, check the agent in webmail: it may be paused, expired or have Login unticked.

When to use it

Rohit keeps release notes in Cursor. He asks the agent to collect this month's customer feedback mails and add a summary to the notes file.

Configuration

Making your token
  1. In XgenPlus webmail, go to Settings › Security › AI Agents (MCP) and click Create agent password.
  2. On Your agent is ready, copy the Token for AI apps. It is already encoded, so paste it where this guide says <TOKEN>, after Bearer with one space.

Chose your own password, or need to make the token again? It is your email address and agent password joined by a colon, with no spaces, in base64. Replace the sample values with yours, run the command on your own computer, and copy the line it prints.

Windows (PowerShell):
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes('you@xgenplus.com:AGENT_PASSWORD'))
Mac or Linux (Terminal):
printf '%s' 'you@xgenplus.com:AGENT_PASSWORD' | base64 | tr -d '\n'

For example, you@xgenplus.com:AGENT_PASSWORD becomes eW91QHhnZW5wbHVzLmNvbTpBR0VOVF9QQVNTV09SRA==. Base64 is not encryption: keep the token as secret as a password. Never paste it into a chat with the AI, a shared file or a code repository, and never use online base64 encoder websites, because they would receive your agent password. If your agent password contains a single quote ('), these commands break, so create a new agent password without one. More help: Make your MCP token.

{
  "mcpServers": {
    "xgenplus": {
      "url": "https://mcp.xgenplus.com/mcp",
      "headers": { "Authorization": "Bearer <TOKEN>" }
    }
  }
}

Good to know

  • Never commit a project .cursor/mcp.json that contains your token. Use the environment variable form instead.
  • The ${env:XGENPLUS_TOKEN} form works only if Cursor starts where that variable is set. On Windows, run setx XGENPLUS_TOKEN "<TOKEN>" and then restart Cursor. Otherwise the header is sent empty and the server asks you to authenticate.

Common questions

How do I keep the token out of the file?

Put it in an environment variable, such as XGENPLUS_TOKEN, and write "Authorization": "Bearer ${env:XGENPLUS_TOKEN}" in the file. Cursor fills it in when it starts, so set the variable first. On Windows, run setx XGENPLUS_TOKEN "<TOKEN>" and restart Cursor; on Mac or Linux, export it in your shell profile and start Cursor from there.

Was this page helpful? Updated 2026-11-02