Connect tools and services
Agents act through tools. CLIO has a small set of built-in tools, and everything else comes from MCP servers. MCP, the Model Context Protocol, is an open standard for giving AI applications tools, data, and reusable prompts. Any server that speaks it can be connected to CLIO.
For a service CLIO knows, such as ParaView or Burette, turn on its connector instead: it asks for what it needs on one card.
Built-in tools
Section titled “Built-in tools”CLIO ships two built-in tool servers:
- File system tools, such as
fs_read_file,fs_write_fileandfs_edit_file. - Shell tools, such as
shell_bash.
Domain tools are not built in. They come from MCP servers: the ones an agent’s plugins declare, clio-kit servers for scientific data, and servers you add yourself. The installer provisions clio-kit for you when uv is available, and plugins start its servers with commands such as clio-kit mcp-server geo. Each clio-kit server is also a connector in Discover, and its tools are downloaded when you enable it, not at install.
A tool’s name starts with its server’s name. A server named geo that offers a geocoding tool shows up as geo_geocode. For that reason, a server name can only contain lowercase letters, digits, and hyphens, with no underscores.
Whether a tool needs your approval depends on the permissions in force, not on where the tool came from.
Add a server from the interface
Section titled “Add a server from the interface”-
Open Settings and choose MCP tools.
-
Choose Connect MCP.
-
Give the service a name, then choose a Connection type: Remote service takes a service address, and Local command takes an executable, its arguments, and optional environment variables.
-
Leave Available in every conversation checked to give its tools to every conversation’s agent. Clear it to give them only to a conversation that asks for that service.
-
Choose Connect MCP to confirm. CLIO saves the service, checks it, and says whether it answered.
A saved service stays across restarts. Your MCP services lists each one with the command or address it uses and whether every conversation gets it. Remove takes it away from new conversations; one that is using it keeps it until its turn ends.
A server that uvx or npx downloads and builds on its first start can take a minute to answer the first time. CLIO waits for it and, if it still has not answered, saves it and says the launcher may still be preparing it, so you can check again shortly.
Add a server from a terminal
Section titled “Add a server from a terminal”clio-agent mcp manages the same saved services, on the machine that runs CLIO. Everything after -- is the server’s own command line:
clio-agent mcp add colab -- uvx git+https://github.com/googlecolab/colab-mcpclio-agent mcp add catalog --url https://tools.example.org/mcpclio-agent mcp add lab-data --env LAB_STATE=/data/lab -- uvx lab-data-mcp serveclio-agent mcp check colabclio-agent mcp listclio-agent mcp remove colabcheck starts the server and lists its tools. --only-when-asked saves a service without giving it to every conversation.
Add a server in mcp.yaml
Section titled “Add a server in mcp.yaml”You can also declare servers in a file. The file has one top-level key, mcp_servers, that maps a server name to how to reach it.
mcp_servers: weather: uvx weather-mcp serve notion: https://mcp.notion.com/mcpThe short form is a single string:
- A command, split on spaces into a program and its arguments, starts a local server over standard input and output. Quote arguments that contain spaces.
- A URL starting with
http://orhttps://connects to a remote server.
Environment variables
Section titled “Environment variables”${VAR} is replaced with the value of an environment variable, and ${VAR:-default} uses default when the variable is unset or empty. A variable with no default that is unset marks that server as invalid, with a message naming the variable, and the other servers are not affected.
mcp_servers: files: npx -y @modelcontextprotocol/server-filesystem ${DATA_DIR:-/data}Expansion applies to the command, its arguments, env values, the URL, and header values.
Mapping form
Section titled “Mapping form”Use a mapping when a server needs environment variables, headers, or other settings.
A local server:
mcp_servers: lab-data: command: uvx args: [lab-data-mcp, serve] env: LAB_API_TOKEN: ${LAB_API_TOKEN} timeout: 60000A remote server:
mcp_servers: catalog: url: https://tools.example.org/mcp headers: Authorization: Bearer ${CATALOG_TOKEN}The keys:
| Key | Applies to | Meaning |
|---|---|---|
command |
Local | The program to run. Required for a local server. |
args |
Local | A list, or a single string that is split on spaces. |
env |
Local | A mapping of environment variables for the server process. |
url |
Remote | The service address. Required for a remote server. |
headers |
Remote | A mapping of HTTP headers. |
auth |
Remote | An OAuth block, with type: oauth and client_metadata. |
type |
Both | stdio, http, streamable-http, or sse. If omitted, a mapping with a url and no command is remote and any other mapping is local. |
timeout |
Both | A time limit in milliseconds. |
probe_timeout_retries |
Both | How many times to retry when the first check of the server times out. A whole number, 0 or more. |
always_load |
Both | true to load the server’s tools up front. alwaysLoad also works. |
Where servers are declared
Section titled “Where servers are declared”The same server name can be declared in several places. They are merged by name, and the first of these wins:
- The workspace file,
<workspace>/.clio/mcp.yaml. - The user file,
mcp.yamlin your CLIO configuration folder. - The servers of the conversation’s plugins, declared in each plugin’s
mcp.json. - The built-in tools.
Directorymy-workspace/
Directory.clio/
- mcp.yaml servers for this workspace only
- hooks.json
Put a server in the workspace file when only one project needs it, and in the user file when you want it everywhere. A file that cannot be read is skipped with a warning, and the rest still load.
Servers from plugins
Section titled “Servers from plugins”A plugin lists the servers it needs in its mcp.json file, in the Agent Plugins format. See Agents and plugins. Every agent that carries the plugin can use the tools those servers provide. A server starts the first time one of its tools is used, in the session workspace. Two plugins in one conversation cannot declare servers with the same name. A plugin from a marketplace you added starts its servers only after the trust step.
Lifecycle
Section titled “Lifecycle”Workspace tools can start their servers on demand, and idle workspace clients can be recycled. An accepted task has a longer lifetime: CLIO retains its task connection while submission, input or result observation still needs it. This includes a local stdio server carrying active task work.
The built-in Shell and connected-storage task servers belong to the running CLIO service. An idle workspace client or a stopped agent response does not shut down their accepted background work. During service shutdown, CLIO settles its owned local work before closing those servers. An external server may keep its jobs running independently; reconnection uses their original identities and does not repeat the original tool call. See Tools and sources for recovery limits, including memory-backed work that cannot survive shutdown.
If a local server fails to start, CLIO reports the cause when it can, such as a command that is not on your PATH or a working directory that does not exist. Install the program, or give the full path in command, and reconnect the server.
If a server will not connect, see Troubleshooting.