Need more detail? Connect your coding agent to the full docs.

Skip to Content
AMIRILDocs

Connect an MCP server with OAuth client credentials

Register a tool server with the client ID and secret of an app you set up at the vendor. Amiril trades them for an access token and renews it before it expires.

With the OAuth client credentials sign-in, Amiril signs in to the server as an app you registered at the vendor. It gets each access token with the app's client ID and secret, and fetches a new one before the old one expires.

Before you start

Register an app at the vendor that may use the OAuth client credentials grant. Note its client ID and client secret. Vendors often call this a service account, a machine-to-machine app or an API client.

Add the server

Open Tools and select Add server. Paste the server's MCP address into Server URL.

Under Sign-in, choose OAuth client credentials. Amiril marks it Detected when the server's login service offers it and no user sign-in.

Enter the app's Client ID and Client secret. If the form also shows Token URL, the server did not say where to get tokens. Copy that address from the vendor's documentation.

If the vendor's documentation names scopes for this server, enter them in Scopes with a space between each. Otherwise leave the field empty.

Select Test connection. Check the Name, the Slug and each tool's Access. Add a tool server explains each one. Then select the button that adds the tools, such as Add 2 tools.

Next, grant the tools to an agent.

Reconnect with a new secret

When the vendor stops accepting the secret, the server reads Reconnect needed and agents cannot use its tools. Open the server and select Reconnect. Enter the client ID and the new client secret, then select Save changes. To change the secret before it stops working, select Edit instead and enter the same two fields. Grants are not touched, so every agent keeps its tools.

Next steps

Last updated on