asMcpServer
Casts this McpTargetConfiguration as a McpServer and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.McpServerTargetConfiguration value. Throws an exception if the McpTargetConfiguration is not a McpServer.