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
Add a tool server
Register the MCP server where your agents' tools live and choose how Amiril signs in to it. Then grant its tools to agents on their Access tab.
Connect an MCP server with OAuth user sign-in
Register a tool server where a person must sign in at the vendor. You approve the login once, and Amiril renews it for the agents that use the server.
Grant tools to an agent
Turn on the tools an agent may call, give it a gateway token and point its MCP client at the Amiril gateway. Then revoke the tools it stops using.
Last updated on