Use an MCP server in a Naia Agent Studio agent
Learn how to configure a Naia Agent Studio agent to use tools exposed by an SAP Integration Hub MCP server.
Prerequisites
-
You have a fully configured and validated MCP server in the Hub MCP Designer. See Create an MCP server in the Hub MCP Designer.
-
You have the SAP Path from the MCP server connection details.
Procedure
Create a remote MCP connection
-
In the Remote Systems tool, select Create.
-
Give the remote system a descriptive name and set the type to Model Context Protocol, protocol HTTP.
-
In URL, enter the SAP Path of your MCP server.
-
Go to the Authentication tab and configure the authentication required to connect to the MCP server.
The same authentication used for the SAP Integration Hub remote system can be used here, but this is not required. -
Select Save.
-
Go back to the General tab and select Import Tools to import the tool definitions from the MCP server.
-
Select Save.
Re-import tools whenever you add, remove, or change tool parameters in the Hub MCP Designer to keep the remote system in sync with the current server configuration.
Create and configure the agent
-
In the Agent tool, select Create and give the agent a descriptive name.
-
Select a model.
-
On the Instructions tab, enter the instructions for the agent as needed.
-
On the Tools & MCP tab, set Maximum agent steps to a value sufficient for the number of tool calls and responses the agent may need to make in a single turn.
-
Under Remote MCP Connection, select the remote system you created above.
-
Select the tools from the remote system that you want the agent to use.
-
Select Save.
Results
-
Your agent is connected to the SAP Integration Hub MCP server and can discover and invoke its tools to perform tasks based on user requests.
-
The agent configuration is ready for productive use within Naia Agent Studio.