> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Claude Code is Anthropic’s agentic coding tool that reads your codebase, edits files, and runs commands from your terminal, IDE, desktop app, and browser. This page explains how to connect Claude Code to the Connect AI MCP server.

## Prerequisites

Before you can configure and use Claude Code with Connect AI Embed, you must first generate an [OAuth JWT bearer token](/en/API/Authentication-Embedded). Copy this down, as it acts as your password during authentication.

## Connect Claude Code to the Connect AI MCP

<Steps>
  <Step>
    Open PowerShell as an Administrator and run the following command:

    ```bash theme={null}
    npm install -g @anthropic-ai/claude-code
    ```
  </Step>

  <Step>
    Once the installation is done, try running the following command in your terminal to confirm the installation:

    ```bash theme={null}
    npm list -g @anthropic-ai/claude-code
    ```

    You should see something like this:

    ```bash theme={null}
    C:\Users\ConnectAIUser\AppData\Roaming\npm\
    `-- @anthropic-ai/claude-code@2.0.28
    ```
  </Step>

  <Step>
    Create a project named `Claude Code` and open it in Visual Studio Code.
  </Step>

  <Step>
    In the terminal of your project, run the following command. Replace `{Your_OAuth_JWT_Token}` with the OAuth JWT bearer token from the prerequisites.

    ```bash theme={null}
    claude mcp add --transport http connectmcp https://mcp.cloud.cdata.com/mcp --header "Authorization: Bearer {Your_OAuth_JWT_Token}"
    ```

    This creates a JSON file with your MCP Server.
  </Step>

  <Step>
    Type:

    ```bash theme={null}
    claude
    ```

    A welcome screen appears:

    <Frame>
      <img src="https://mintcdn.com/cdata/dJhcR4yZCQgD8aFQ/en/images/claudecode_client_welcome.png?fit=max&auto=format&n=dJhcR4yZCQgD8aFQ&q=85&s=7ca28064a99ed55b4f62c42615b8623d" alt="Claude Code Client Welcome" width="429" height="521" data-path="en/images/claudecode_client_welcome.png" />
    </Frame>
  </Step>

  <Step>
    Choose a text style and login method. Claude Code opens the browser to log in to Claude.
  </Step>

  <Step>
    You can now interact with the MCP server:

    <Frame>
      <img src="https://mintcdn.com/cdata/dJhcR4yZCQgD8aFQ/en/images/claudecode_client_prompt.png?fit=max&auto=format&n=dJhcR4yZCQgD8aFQ&q=85&s=f32a1cfba1c3665550e870fc1c1e2da5" alt="Claude Code Client Prompt" width="1213" height="716" data-path="en/images/claudecode_client_prompt.png" />
    </Frame>
  </Step>
</Steps>
