接続の確立
The CData Code Assist MCP for SAP Cloud for Customer defines each connection to SAP Cloud for Customer as a named configuration that an MCP Client (such as Claude Desktop) can use when sending natural language queries.
You create and manage these configurations using the CData Code Assist MCP Configuration Tool. The tool automatically handles formatting, storage, and registration with MCP clients.
Understanding Connection Configurations
Each connection configuration is stored in a .mcp file. This file includes the details needed to initialize the connector when an MCP Client starts a session.
- On Windows, configuration files are stored in "~/AppData/Roaming/CData/SAP Cloud for Customer Data Provider/".
- On macOS, configuration files are stored in "~/Library/Application Support/CData/SAP Cloud for Customer Data Provider/".
The .mcp file is a text file that contains a list of connection properties and a timestamp. For example:
#Tue May 20 15:48:40 EDT 2025 AuthScheme=Basic User=myUser Password=myPassword Security Token=myToken
The configuration tool handles these settings automatically. Each saved configuration enables an MCP client to launch a dedicated MCP server instance with the correct connector and options. Manual file editing is not required.
SAP Cloud for Customer への接続
SAP Cloud for Customer インスタンスを識別するために以下を設定します。- Tenant:SAP Cloud for Customer テナントのフルドメイン名。
- URL:使用するSAP Cloud for Customer インスタンスに対応するURL。デフォルトのサービス"c4codata" と異なる場合は、これを指定する必要があります。そうでなければ、この接続プロパティは省略します。
SAP Cloud for Customer への認証
ユーザー資格情報
AuthScheme をBasic に設定し、以下を指定します。
Azure AD
AuthScheme をAzureAD に設定します。
カスタム拡張機能の設定
この設定には、SAP Hybris のカスタム拡張機能が必要です。この拡張機能はyempty ツールを使用して作成できます。
接続設定
カスタム拡張機能を設定したのち、以下を設定して認証します。
- InitiateOAuth: GETANDREFRESH。
- OAuthClientId:アプリ登録の概要セクションにある、コネクタアプリケーションのアプリケーションId。
- OAuthClientSecret:コネクタアプリケーションのクライアントシークレット値。新しいクライアントシークレットを作成すると、Azure AD にこれが表示されます。
- CallbackURL:コネクタアプリケーションのリダイレクトURI。例:https://localhost:33333
- SSOProperties:以下の追加プロパティを、カンマ区切りでA=B;C=D; のような形式で設定。
- Resource:使用している環境のURL。
- AzureTenant:アプリケーションが登録されているAzure AD テナントのId。