Connect an agent
Give an AI agent access to your organization through MCP.
An agent connects to the Gateway with the Model Context Protocol (MCP). You create a key for the agent in Basement and paste it into the agent’s MCP settings.
Create a key
In Basement, open Agents and click Connect agent. Keep AI agent selected, give the agent a name, and select its access level.
The access level decides what the agent can read, write and use. If you are not sure, start with Researcher: it reads everything in Basement and writes nothing. See Keys and access levels.
Basement shows the key one time. Copy it now.
Add the Gateway to your agent
Paste the key into the MCP settings of your agent. Most MCP clients read a JSON file like this one:
In Claude Code, one command does the same:
For other clients, and for clients that sign in with OAuth, see Connect an MCP client.
What happens next
- The agent sees only the tools its access level allows. See Tools.
- Each call the agent makes is in Agents, Activity. See Activity log.
- To stop an agent, open it in Agents, Connected and click Revoke. The key stops working immediately.