Codex with IDrive® e2 MCP

IDrive® e2 MCP connects your IDrive® e2 object storage with AI assistants and applications using the open Model Context Protocol (MCP) standard. It enables compatible AI clients to securely access and work with your data using natural language, eliminating the need for custom integrations, scripts, or manual workflows. This guide explains how to connect Codex with IDrive® e2 storage.

Prerequisites

  1. An active IDrive® e2 account.
  2. Access to a Codex account.

Configure Codex for IDrive® e2 MCP

  1. Log in to Codex and click Settings.
  2. Navigate to Plugins > MCP.
  3. Click Add server.
    Okta Admin Console
  4. In the Add server dialog box, provide the following details and click Save.
    Okta Admin Console
    1. Choose Streamable HTTP
    2. Name for the connector: IDrive e2
    3. URL of the MCP server: https://mcp.idrivee2.com/s3
  5. Click Connect.
  6. You will be redirected to the IDrive® e2 web console. Click Sign in to IDrive® e2.
  7. Click Sign in and choose any of the following methods.
    1. Enter your IDrive® e2 account email address and password
    2. Or you can proceed with Google Sign In.
  8. Complete MFA if configured for your IDrive® e2 account.
  9. Set session timeout duration and access permission.
    Okta Admin Console
  10. Once authenticated, you will be redirected to Codex. You can now use natural language prompts to interact with IDrive® e2 storage.

Connect the IDrive® e2 MCP Server to Codex CLI

You can connect the IDrive® e2 Model Context Protocol (MCP) server to Codex CLI using OAuth authentication.

  1. Add the IDrive® e2 MCP Server by executing the following command.
    codex mcp add idrive-s3 \
    --url https://mcp.idrivee2.com/s3
  2. Authenticate with IDrive® e2

    After executing the command, Codex automatically detects that the MCP server uses OAuth authentication and initiates the sign-in flow. Your default web browser opens and you are redirected to the IDrive® e2 sign-in page.

    1. Sign in using your IDrive® e2 credentials or choose Google Sign In.
    2. Complete MFA if configured for your IDrive® e2 account.
    3. Click Authorize to grant Codex access to your IDrive® e2 account.
  3. After authorization, you are redirected back to Codex, which securely stores the OAuth credentials.

You can now start using the IDrive® e2 MCP tools from within Codex CLI.