Tosca Cloud MCPサーバーに接続してください。
Set up a connection between your AI assistant and the Tosca Cloud Model Context Protocol (MCP) server to access Tosca Cloud functionality directly from your development environment.This enables you to use natural language commands for your test automation tasks.
開始する前に
Tosca Cloud MCP サーバーに接続する前に、以下を必ず準備してください。
-
お使いのTosca Cloud テナントへのアクセス
-
システムに Node.js がインストールされていること
-
互換性のある AI アシスタント(Cursor AI または Visual Studio Code)がインストールされていること
-
Visual Studio Code を使用している場合は、組織で chat.mcp.enabled 設定が有効になっていることを確認してください。
MCP サーバーは通信にポート 56874 を使用します。このポートを変更すると接続エラーが発生します。
AIアシスタントを設定してください。
AIアシスタントを設定し、Tosca Cloud MCP サーバーに接続してください。設定手順は、ご使用の AI アシスタントによって異なります。
Cursor AI でTosca CloudMCP サーバー接続を設定するには、次の手順に従います。
-
Cursor AIの設定を開いてください。
-
MCPツールセクションに移動してください。
-
Select New MCP Server to open a new mcp.json file.
-
Add the ToscaCloudMcpServer configuration to your mcp.json file:
コピー{
"mcpServers": {
"ToscaCloudMcpServer": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://<your tenant name>.my.tricentis.com/default/_mcp/api/mcp",
"56874",
"--host",
"127.0.0.1",
"--static-oauth-client-info",
"{\"client_id\":\"MCPServer\"}",
"--static-oauth-client-metadata",
"{\"scope\":\"tta\"}"
]
}
}
}If you want to connect to a different ワークスペース, replace default in the URL with your ワークスペース ID.
-
ファイルを保存してください。
-
先ほど設定したMCPサーバーを有効にしてください。
-
Tosca Cloudにサインインし、認証を完了してください。
-
Cursor AI に戻り、MCP サーバー設定で緑色の円と利用可能なツール一覧を確認してください。
Visual Studio Code でTosca CloudMCP サーバー接続を設定するには、次の手順に従ってください。
-
Visual Studio Code の構成ファイルを開いてください。
-
Add the following configuration to your settings.json file:
コピー"chat.mcp.enabled": true,
"mcp": {
"servers": {
"ToscaCloudMcpServer": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://<your tenant name>.my.tricentis.com/default/_mcp/api/mcp",
"56874",
"--host",
"127.0.0.1",
"--static-oauth-client-info",
"{\"client_id\":\"MCPServer\"}",
"--static-oauth-client-metadata",
"{\"scope\":\"tta\"}"
]
}
}
}If you want to connect to a different ワークスペース, replace default in the URL with your ワークスペース ID.
-
設定ファイルを保存してください。
-
Tosca Cloudにサインインし、認証を完了してください。
接続のセットアップを確認してください。
ここで MCP 接続を確認し、期待どおりに動作しない場合は簡単な修正方法を見つけてください。
MCP接続が正しく機能しているか確認するために、以下の手順に従ってください。
-
AIアシスタントを開いてください。
-
次のような簡単なコマンドで会話を開始してください: 「利用可能なワークスペースをすべて表示してください」
-
接続が成功すると、ご利用のTosca Cloudのワークスペース一覧が表示されます。
Tosca Cloud MCP サーバーに接続できない場合は、次の点を確認してください。
|
問題 |
対処方法 |
|---|---|
|
Port error: Cannot read properties of null (reading 'port') |
AI アシスタントを再起動するか、新しい接続を妨げる可能性のある実行中の npx プロセスを終了してください。 |
|
Visual Studio Code says chat.mcp.enabled is blocked. |
管理者に依頼して、GitHub 組織で MCP を有効にしてください。 |
|
認証に失敗しました。 |
ブラウザーのキャッシュをクリアして、再試行してください - Make sure you have access to the correct ワークスペース MCP URL が正しいことを確認してください |
|
Fatal error: SyntaxError error when setting up the Tosca Cloud MCP server connection on Windows |
引用符をバックスラッシュでエスケープしてください。 コピー
|
利用可能な MCP アクション
接続後、以下のMCPアクションを使用して、Tosca Cloud とやり取りできます。
Action | Prompt examples |
|---|---|
Scaffold test case | Create test case for user registration flow Scaffold regression test case |
Analyze test case items | Improve my User registration test case Show errors in the User registration test steps |
Rename test case items | Rename steps to standard naming Clean up test step labels |
Search artifacts | Find all regression test cases Search all steps made in the registration form |
Get modules summary | List all modules Show my active modules |
Get failed test steps of failed cases | Show failed steps from last run 今週の失敗手順一覧 |
以下の操作でテストプレイリストを構築・レビュー・監視します:
|
アクション |
プロンプトの例 |
|---|---|
|
プレイリストを追加します。 |
すべての回帰テスト用のプレイリストを作成します。 スモークテストのためのプレイリストを作成します。 |
|
名前からプレイリストIDを取得します |
ユーザー登録フロープレイリストのIDを表示します 回帰テストのプレイリストを見つけます |
|
最近のプレイリスト実行ログを取得します。 |
最新回帰テストログ表示 最新プレイリスト結果一覧 |
次は何ですか
これで、Tosca CloudMCP に接続されたので、AI とのやり取りを最大限に活用するために MCP プロンプトのベストプラクティスを確認できます。