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

Skip to Content
AMIRILDocs

Connect an MCP server with an API key

Register a tool server that takes a fixed API key or token in a header. You enter the key once in Amiril, and the gateway adds it to every call.

Use the API key or token sign-in when the server takes one fixed value with every request. That can be an API key, a personal access token or the key a connector platform gives you. You enter the value once, and agents never see it.

Add the server

Open Tools and select Add server. Paste the server's MCP address into Server URL. It often ends in /mcp.

Under Sign-in, choose API key or token. Amiril marks it Detected when the server refuses a request without saying how to sign in.

In Header name, keep Authorization unless the vendor names another header, such as X-API-Key.

In Key or token, enter the value exactly as the server expects it in that header. Most servers want the word Bearer, a space and then the token:

Bearer sk_live_your_token

Select Test connection. Amiril signs in and lists the server's tools. Nothing is saved yet.

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.

The server and its tools now show under Tools. Next, grant the tools to an agent.

Replace the key

Open the server and select Edit. Enter the new value in Key or token and select Save changes.

Amiril saves the new key and tries it at once. It says Server updated when the server accepts it. Otherwise it says Couldn't sync. The server refused the sign-in. The refused key still replaces the old one, so agents' calls fail until you enter a key that works.

Next steps

Last updated on