Develop a sample agent that facilitates connecting to remote MCP servers using UiPath OAuth external applications.
The agent should demonstrate the process of retrieving an access token and using it to interact with the servers.
When the token expires, the agent should automatically request a new token from the Identity Server Authorization endpoint using the client ID and client secret.