@shinyaz

AgentCore Gateway ターゲットのデプロイ時に MCP サーバーへの接続確認が行われる

Gateway ターゲットに到達不能な MCP サーバーの URL を指定して agentcore deploy したら、CloudFormation が ROLLBACK した。

Output
CDK deploy failed: ❌ AgentCore-MyProject-default failed: ToolkitError:
The stack named AgentCore-MyProject-default failed creation, it may need to
be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler
returned message: "GatewayTarget XXXXX failed to stabilize, status: FAILED,
reason: Failed to connect and fetch tools from the provided MCP target server.
Error - Apache transport request failed"

Gateway ターゲットの作成時に、AgentCore が MCP サーバーに実際に接続してツール一覧を取得しようとする。サーバーが落ちていたり、URL が間違っていると、CloudFormation スタック全体が ROLLBACK する。

失敗したスタックは ROLLBACK_COMPLETE 状態で残るため、手動で削除が必要になる場合がある。

Terminal
aws cloudformation delete-stack \
  --stack-name AgentCore-MyProject-default \
  --region ap-northeast-1

外部 MCP サーバーの可用性がデプロイの成否に直結するので、信頼性の高いエンドポイントを選ぶ必要がある。

共有する

田原 慎也

田原 慎也

ソリューションアーキテクト @ AWS

AWS ソリューションアーキテクトとして金融業界のお客様を中心に技術支援を行っています。クラウドアーキテクチャや AI/ML に関する学びをこのサイトで発信しています。このサイトの内容は個人の見解であり、所属企業の公式な意見や見解を代表するものではありません。