接続の確立
The CData Code Assist MCP for Redis defines each connection to Redis 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/Redis Data Provider/".
- On macOS, configuration files are stored in "~/Library/Application Support/CData/Redis 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.
Redis への接続
Server 接続プロパティをRedis インスタンスが実行されているサーバーの名前またはアドレスに設定します。
Redis サーバーがデフォルト(6379)以外のポートで起動している場合、Port プロパティでポートを指定できます。
Redis への認証
本製品 はパスワードおよびACL 認証をサポートします。また、パスワード保護されていないRedis インスタンスへの接続もサポートされています。
認証なし
AuthScheme プロパティをNone に設定します。この場合Redis インスタンスはパスワード保護を受けません (設定ファイルでrequirepass ディレクティブを使用している場合)。
パスワード
AuthScheme プロパティをPassword に設定し、Password プロパティを、パスワード保護されたRedis インスタンスへの、Redis AUTH コマンドを使用した認証に使用されるパスワードに設定します。
ACL(アクセスコントロールリスト)
接続するには以下を設定します。
- AuthScheme:ACL に設定。
- User:Redis ACL へ認証するために使用するユーザー名に設定。
- Password:Redis ACL へ認証するために使用するパスワードに設定。
セキュアなRedis への接続
UseSSL を設定すると、接続時にSSL/TLS 暗号化をネゴシエートできます。