> For the complete documentation index, see [llms.txt](https://docs.ai.neevcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ai.neevcloud.com/getting-started/mcp/connect-codex.md).

# Connect Codex

This guide explains how to connect the Codex extension for Visual Studio Code to NeevCloud using the Model Context Protocol (MCP), enabling Codex to securely access and interact with your NeevCloud resources.

***

## Prerequisites

Before you begin, ensure you have:

* Visual Studio Code installed
* The Codex extension installed in Visual Studio Code
* A NeevCloud account
* A NeevCloud Personal Access Token (PAT)

If you haven't generated a PAT yet, follow the instructions in the [Overview](https://docs.ai.neevcloud.com/getting-started/mcp/overview.md) section.

***

## Step 1: Generate the NeevCloud MCP Configuration

1. Sign in to your [NeevCloud account](https://console.ai.neevcloud.com/).
2. Navigate to Accounts → Access Tokens.
3. Create or copy your Personal Access Token (PAT).
4. Generate and copy the NeevCloud MCP configuration.

***

## Step 2: Install the Codex Extension

1. Open Visual Studio Code.
2. Go to the Extensions view.
3. Search for Codex and install the extension.
4. Sign in with your OpenAI account.

***

## Step 3: Open the MCP Configuration File

Open the Command Palette:

* macOS: `Cmd + Shift + P`
* Windows/Linux: `Ctrl + Shift + P`

Search for:

`MCP: Open User Configuration`

This opens the `mcp.json` configuration file where MCP servers are configured.

***

## Step 4: Add the NeevCloud MCP Configuration

Paste the generated NeevCloud MCP configuration into the `mcp.json` file.

Save the file.

***

## Step 5: Reload Visual Studio Code

Reload the VS Code window to apply the changes.

Open the Command Palette and run:

`Developer: Reload Window`

***

## Step 6: Verify the Connection

Open a new Codex chat and ask it to perform an action using NeevCloud.

For example:

`List the available GPUs in my NeevCloud account.`

or

`Spin up a GPU using NeevCloud.`

If the setup is successful, Codex will access the NeevCloud MCP server and execute the requested operation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ai.neevcloud.com/getting-started/mcp/connect-codex.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
