How to integrate Cody MCP with Codex

Connect Codex to Cody MCP. Summarize key findings from q2 reports, find policy details on employee benefits, and more using natural language, with authentication handled for you.

Cody logoCody
Api Key

Cody is an AI assistant built for businesses, trained on your company's knowledge and data. It delivers instant answers and insights, tailored for your team.

21 Tools

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With the Cody MCP integration, Codex can send messages to your bots, manage conversations, add documents from files and webpages, and organize knowledge folders, all without leaving the terminal or the app, whichever you prefer.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Cody with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1800+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Cody MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

Try it

Ask Codex for a Cody task. The first time, Composio asks you to connect your Cody account.

For example, ask it to:

  • "Summarize key findings from Q2 reports"
  • "Find policy details on employee benefits"
  • "Draft onboarding checklist for new hires"

What is the Cody MCP server, and what's possible with it?

The Cody MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Cody account. It provides structured and secure access to your bots, conversations, messages, documents, and folders, so your agent can manage knowledge, start conversations, send messages, review responses, and organize content on your behalf.

  • Bot discovery: Have your agent list available bots and search for the right assistant for a specific task.
  • Conversation management: Let the agent start conversations with your chosen bot and find existing conversations by bot or keyword.
  • AI messaging: Direct your agent to send questions to Cody and receive responses informed by your business knowledge.
  • Knowledge document management: Instruct your agent to create documents from text, HTML, or public webpages, browse existing documents, and delete content you no longer need.
  • Message and folder retrieval: Have your agent review messages from a conversation and find folders by keyword to locate relevant knowledge.

Conclusion

You've successfully integrated Cody with Codex using Composio's MCP server. Now you can interact with Cody directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Cody operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1800+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Cody operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities
TOOLS

Supported Tools

Every Cody action and event your agent gets out of the box.

Create Conversation

Tool to create a new conversation with a specified bot.

Create Document

Tool to create a new document with text or HTML content in Cody AI.

Create Document From File

Create a Cody knowledge-base document from a previously uploaded file key in a destination folder.

Create Document from Webpage

Tool to create a document from a publicly accessible webpage URL.

Create Folder

Tool to create a new folder in Cody AI for organizing content.

Delete Conversation

Tool to delete a conversation by its ID.

Delete Document

Tool to delete a document by id.

Get Conversation

Fetch details of a Cody AI conversation by its ID.

Get Document

Tool to retrieve a specific document by its identifier from Cody AI.

Get Folder

Tool to retrieve a specific folder by its identifier.

Get Message

Tool to fetch a specific message by its ID from Cody AI.

Get Upload Signed URL

Tool to get an AWS S3 signed upload URL for file uploads.

List Bots

List a page of bots in a Cody account, optionally filtering by keyword.

List Conversations

List a page of conversations, optionally filtering by bot or name keyword and including document associations.

List Documents

List a page of documents from a Cody AI account, optionally filtered by folder, conversation, or keyword.

List Folders

List a page of folders in the account, optionally filtered by keyword, with pagination metadata.

List Messages

Tool to retrieve a paginated list of messages from Cody, optionally filtered by conversation.

Send Message

Tool to send a message to Cody AI and receive an AI-generated response.

Send Message for Stream

Tool to send a message to Cody AI and receive a Server-Sent Events (SSE) stream URL for the AI response.

Update Conversation

Update a conversation by ID with its name and bot ID, optionally setting document IDs to limit the bot's knowledge base.

Update Folder

Tool to update a folder by its ID.

FAQ

Frequently asked questions

Start with Cody.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Cody tool your agent needs.Free to start.

Start building