メインコンテンツへスキップ

Prerequisites

Before you can configure and use Claude Code with Connect AI Embed, you must first generate an OAuth JWT bearer token. Copy this down, as it acts as your password during authentication.

Connect Claude Code to the Connect AI MCP

1
Open PowerShell as an Administrator and run the following command:
npm install -g @anthropic-ai/claude-code
2
Once the installation is done, try running the following command in your terminal to confirm the installation:
npm list -g @anthropic-ai/claude-code
You should see something like this:
C:\Users\ConnectAIUser\AppData\Roaming\npm\
`-- @anthropic-ai/claude-code@2.0.28
3
Create a project named Claude code and open it in Visual Studio Code.
4
In the terminal of your project, run the following command. Note that Connect AI Embed customers should use an authorization header of Bearer {Your_OAuth_JWT_Token}.
claude mcp add --transport http connectmcp https://mcp.cloud.cdata.com/mcp --header "Authorization: Basic {Your_Base64Encoded_EMAIL:PAT}"
This creates a JSON file with your MCP Server.
5
Type:
claude
A welcome screen appears:
Claude Code Client Welcome
6
Choose a text style and login method. Claude Code opens the browser to log in to Claude.
7
You can now interact with the MCP server:
Claude Code Client Prompt