Tool Configurations
A tool configuration gives an agent the tools of an MCP server. The platform injects the MCP server's URL and API key into the agent as environment variables at runtime, with the values for each environment, so the agent code never contains them.
The MCP servers that you can select are the ones registered for the organization or the project. For instructions on registering one, see MCP Servers.
Open the Tool Configurations tab
- Open the agent from the breadcrumb at the top of the Console.
- In the left navigation, under Agent lifecycle, click Configure.
- On the Configure Agent page, click the Tool Configurations tab.
The tab lists the agent's tool configurations with their Name and when they were Created. Use the search box to find a configuration by name or description.
Add a tool configuration
-
On the Tool Configurations tab, click Add tool configuration. The Add Tool Configuration panel opens.
-
Select the MCP server for the agent. Use Search MCP servers to find a server by name. Each server shows its context and version.
-
Under Configuration Name, enter a Name for the configuration. The name defaults to the handle of the MCP server, for example
new-mcp-server. -
Under Environment Variable Names, review the names of the environment variables that the platform injects into the agent. For example, for an MCP server named
New-MCP-Server:Variable Name Description NEW_MCP_SERVER_URLBase URL of the MCP server endpoint NEW_MCP_SERVER_API_KEYAPI key for authenticating with the MCP server endpoint These names are shared across all environments, and the platform injects the actual URL and API key values at runtime for each environment. In environments that the MCP server is not configured for, the values are empty. Change a name, up to 128 characters, only if your agent code uses a different one.
-
Click Save.
The configuration is listed on the Tool Configurations tab.
Tool configuration details
On the Tool Configurations tab, click a configuration to open its details page. The page shows:
- MCP Server: the name, context, and version of the MCP server. Click the external link icon to open the MCP server.
- Tools: the tools of the MCP server, and the Status of each tool, for example Allowed.
Use the tool configuration in agent code
On the configuration's details page, click Environment Variables & Integration Guide. The panel shows:
- Environment Variables References: the environment variable names, which you can rename if your code already uses different names. Save the configuration after you rename them.
- Integration Guide: a pattern to copy into your agent code, which loads the MCP tools through the injected URL and API key.
Read the values from the environment variables, and do not hardcode them.
Delete a tool configuration
On the Tool Configurations tab, click the delete icon of the configuration.
Was this page helpful?