deploy.sh)vpc-stack.yaml)cognito-m2m-stack.yaml)aurora-postgres-stack.yaml)dynamodb-stack.yaml)mcp-server-stack.yaml)gateway-stack.yaml)agent-server-stack.yaml)❌ {initializationError}
+Please check your CloudFormation stack configuration
+Initializing agent...
+
+ {JSON.stringify(toolBlock.input, null, 2)}
+
+
+ {formattedResult}
+
+ You can close this window and return to your terminal.
+ + + + """) + elif "error" in query_params: + # Error occurred + error = query_params.get("error", ["unknown"])[0] + error_description = query_params.get("error_description", [""])[0] + + self.callback_result["error"] = error + self.callback_result["error_description"] = error_description + self.callback_result["success"] = False + + # Send error response + self.send_response(400) + self.send_header("Content-type", "text/html") + self.end_headers() + self.wfile.write( + f""" + +Error: {error}
+Description: {error_description}
+You can close this window and return to your terminal.
+ + + """.encode() + ) + else: + # Unexpected request + self.send_response(400) + self.send_header("Content-type", "text/html") + self.end_headers() + self.wfile.write(b"