Discovery
- An unauthenticated
POST https://mcp.tronrental.com/mcpanswers401with - The protected resource metadata (RFC 9728) names the resource
https://mcp.tronrental.com/mcpand the authorization serverhttps://mcp.tronrental.com. - The authorization server metadata (RFC 8414) is at
https://mcp.tronrental.com/.well-known/oauth-authorization-server. Its endpoints are/oauth/register,/oauth/authorize,/oauth/tokenand/oauth/revokeon the same host.
Client registration
- Dynamic Client Registration (RFC 7591) at
/oauth/register. Clients are public:token_endpoint_auth_methodis alwaysnone. - Client ID Metadata Documents are accepted from supported platforms.
- Redirect URIs must be on the allowlist: loopback (
http://127.0.0.1:<any port>,http://localhost:<any port>) and the callbacks of supported platforms. Any other URI is refused withinvalid_redirect_uri. Building a web app with its own callback? Contact support to add it.
Authorization
- Authorization code flow with PKCE,
S256only. - The
resourceparameter is required and must behttps://mcp.tronrental.com/mcp; tokens are issued for this audience. scopelists the permissions the app asks for, separated by spaces, for exampleview deposit_view buy_energy. The user may grant fewer; the token response’sscopesays what was granted.withdrawdoes not exist for OAuth and is refused withinvalid_scope.- The user signs in (or signs up) on tronrental.com, picks the account, the permissions and the daily spending cap, and approves. An app not known to TronRental is shown as unverified.
Tokens
Only
authorization_code and refresh_token grants are supported; client_credentials is not — for server-to-server calls use an API key.
With an access token a connected app can call the REST API too, but only the routes listed in the tools reference; any other route answers 403 AGENT_ROUTE_CLOSED.
Revocation
- The app can revoke its tokens at
/oauth/revoke. - The user can disconnect the app in Connected apps on the API page of the dashboard: the connection and all its tokens are revoked at once, and the next call to
/mcpgets401witherror="invalid_token". - A connection is one per account and app: connecting the same app again updates its permissions and cap instead of adding a second one.