に MCP サーバーをデプロイ AgentCore Runtime に MCP サーバーをデプロイする • 公式の bedrock-agentcore-starter-toolkit を利用する • ローカルコードと作成した Cognito User Pool を使用して「agentcore configure」コマンドを実 行し、.bedrock_agentcore.yamlとDockerfileを生成する。 Cognito でアプリケーションクライアントを作成する • AgentCore Runtime認証用のUser Poolを作成する • アプリケーションクライアントを作成し、アプリケーションタイプはM2Mにする ローカルで MCP サーバーのメインプログラムを作成する • コード内にAgentCore Code Interpreterにアクセスしコードを実行するためのMCPサーバーを実装 % agentcore configure \ --name my_mcp_server \ --entrypoint main.py \ --authorizer-config "{ \"customJWTAuthorizer\": { \"discoveryUrl\": \"https://cognito-idp.us-west-2.amazonaws.com/${COGNITO_USER_POOL_ID}/.well-known/openid-configuration\", \"allowedClients\": [\"${COGNITO_CLIENT_ID}\"] } }" \ --protocol MCP