接続の確立
The CData Code Assist MCP for SugarCRM defines each connection to SugarCRM 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/SugarCRM Data Provider/".
- On macOS, configuration files are stored in "~/Library/Application Support/CData/SugarCRM 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.
SugarCRM への接続
SugarCRM への接続を確立するには、URL をhttp://{sugar crm instance}.com の形式でSugarCRM アカウントに紐付いているURL に設定します。
SugarCRM への認証
本製品 をSugarCRM に認証するには、以下を設定します。
- User:SugarCRM アカウントのユーザー。
- Password:SugarCRM ユーザーに紐付けられたパスワード。
- Platform(オプション):認証中にログインの競合が発生した場合は、SugarCRM UI で作成したプラットフォームのいずれかに設定。
デフォルトでは、SugarCRM は"sugar" クライアントId を認証に使用しますが、ユーザーはオプションでカスタムアプリのクライアントId とクライアントシークレットの値を指定することができます。詳しくは、カスタムOAuth アプリケーションの作成 を参照してください。
- OAuthClientId:カスタムOAuth アプリのクライアントId。
- OAuthClientSecret:カスタムOAuth アプリのクライアントシークレット。
SugarCRM メタデータのキャッシュ
SugarCRM メタデータの取得は高負荷になる可能性があることに注意してください。メタデータのキャッシュ で説明しているように、メタデータをローカルに格納することをお勧めします。