Connect a Tool Server
A tool server is a service running outside Hrida.ai whose operations the model can call as tools. Hrida.ai connects to two kinds:
- MCP servers over Streamable HTTP. A server that only speaks stdio can be put behind mcpo.
- OpenAPI servers: any HTTP service that publishes an OpenAPI spec.
APIs published with API Builder are added on their own, under API Builder › Agent tools. You don't add them here.
For Everyone or Just for You
| Shared tool server | Personal tool server | |
|---|---|---|
| Added in | Admin › Settings › Integrations | Settings › Integrations |
| Who can add one | Admins | Users with the Direct Tool Servers permission (off by default) |
| Types | MCP or OpenAPI | OpenAPI only (why) |
| Calls are made from | The Hrida.ai server | The user's browser |
localhost means | The Hrida.ai server, or its container | The user's own computer |
| Who can use it | The users and groups given access | Only the user who added it |
A personal server suits tools on your own machine or tools still being tested. A shared server suits tools a team uses. It must be reachable from the Hrida.ai server.
Add a Server
-
Open Admin › Settings › Integrations, or Settings › Integrations for a personal server.
-
Next to Manage Tool Servers, click Add Connection (+).
-
Choose the Type: OpenAPI, or MCP (Streamable HTTP).
-
Enter the server's URL. For OpenAPI, also enter where the spec is (
openapi.jsonby default), or paste the spec as JSON. -
Choose how Hrida.ai signs in to the server, under Auth:
Auth What is sent None Nothing. Use it unless the server needs a key: Bearer with no key sends an empty header, which many servers reject. Bearer The key you enter, as Authorization: Bearer <key>Session The signed-in user's Hrida.ai session credentials OAuth The signed-in user's access token from their SSO sign-in OAuth 2.1 MCP only. Each user signs in to the server, and Hrida.ai registers itself as a client automatically (Dynamic Client Registration). OAuth 2.1 (Static) MCP only. Like OAuth 2.1, with a client ID and secret you created yourself. See OAuth 2.1 (Static) Setup. -
Optionally set the rest:
- Headers: a JSON object added to every request. It can include the user and chat tokens.
- Function Name Filter List: offers only some operations (
func1, func2) or hides some (!func3). - ID, Name and Description: what users see.
-
For a shared server, set Access to the users and groups who may use it.
-
Click Verify Connection, then Save.
Keys and client secrets of shared servers are stored encrypted. Adding, changing and removing a shared server is recorded in Admin › Trust › Audit.
Use It in a Chat
Tools from a shared server are off in each chat until they're turned on. Click + in the message box, open Integrations › Tools, and switch on the ones you want. A server that uses OAuth 2.1 asks each user to sign in to it the first time.
The model then calls the tools when it needs them. This works best with models that support native function calling, which is the default (Tool Calling).
To make a tool ask the user before it runs, add its name to Tool approval in Admin › Trust › Guardrails.
Several Servers Behind One mcpo
When mcpo runs several MCP servers from one config file, each is served under its own path:
http://localhost:8000/time
http://localhost:8000/memoryAdd each one as a separate connection with its full path. The root URL (http://localhost:8000) is not a tool server.
Troubleshooting
The connection fails as soon as it's added
- Check
httpandhttps. Most local tool servers don't use TLS. If the URL starts withhttps://, tryhttp://. - Check the port. It must be the port the server listens on. For example, uvicorn uses
8000by default, and Hrida Terminal uses8888. - Check the type. An MCP configuration (with
mcpServersin its JSON) entered as OpenAPI fails to load. Remove the connection and add it again as MCP.
The server runs but can't be reached
localhost depends on where the call is made from:
- Shared server: the call comes from the Hrida.ai server. Inside a Docker container,
localhostis the container itself. Usehost.docker.internal, the service name in your Compose stack, or the machine's address. See Network Diagrams. - Personal server: the call comes from your browser.
localhostworks only if the tool server runs on the computer you browse from. Otherwise use that machine's address, such ashttp://10.0.0.5:8000, and make the server listen on0.0.0.0.
To test, open the server's docs page (for example http://localhost:8000/docs) in the same browser. If it loads, the browser can reach it.
CORS errors in the browser console
A personal server is called from the browser, so it must allow requests from your Hrida.ai address. See the FAQ for a FastAPI example.
MCP-specific errors
See MCP troubleshooting.