接続の確立
The CData Code Assist MCP for SFTP defines each connection to SFTP 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/SFTP Data Provider/".
- On macOS, configuration files are stored in "~/Library/Application Support/CData/SFTP 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.
CData Code Assist MCP for SFTP を使用すると、SFTP サーバーに接続できます。
SFTP サーバーへの接続
SFTP は、SFTP プロトコルを使用してSFTP サーバーとの間のファイル転送を行います。接続するにはRemoteHost を指定します。SFTP はUser、Password、および公開鍵認証(SSHClientCert)を使用します。 SSHAuthMode を選択し、選択に基づいて接続値を指定します。
データへの接続
次の接続プロパティを設定し、ファイルシステムのリレーショナルビューをコントロールします。
- RemotePath:現在の作業ディレクトリに設定。
- TableDepth:ビューとしてレポートするサブフォルダの深度を制御するために設定。
- FileRetrievalDepth:ファイルを再帰的に取得し、Root テーブルにリストするために設定。