MCP servers
The Model Context Protocol lets the agent use tools from other programs, such as an issue tracker, a database or a browser. Clixad speaks it over stdio and over HTTP. This page covers configuring servers, approving them and what each one is allowed to see.
Updated .
Where servers are configured
| File | Whose it is | Starts |
|---|---|---|
~/.clixad/mcp.json | Yours, for every project | By itself |
.mcp.json in the project | The project's, often committed | After you approve it |
.clixad/mcp.json in the project | The project's | After you approve it |
Servers connect in the background once the agent has opened, so a server that is slow or broken never holds up the start. One that fails is reported as a warning.
The format
The same shape other agents use, under mcpServers:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" }
},
"docs": {
"url": "https://example.com/mcp",
"headers": { "Authorization": "Bearer ${DOCS_TOKEN}" }
}
}
}
A server with command is a program the agent starts and talks to over stdio. A server with
url is reached over HTTP; add "type": "sse" for a server that only speaks the
older SSE transport. ${VARIABLE} is replaced with the value from your environment, so a key
stays out of a file that may be committed. A variable that is not set is left written out, so a server
that fails tells you the name of what was missing.
Project servers are approved first
A project's .mcp.json arrives with whatever you cloned, and starting a server means running a
program. So a server from a project file starts only after you have seen it and said yes. When the agent
opens, it shows each such server as it would run, the command line or address and the names of the
variables it uses, and asks:
- Yes: start it, and remember the answer for this project.
- Not now: leave it off for this session. This is the default, so a stray Enter starts nothing.
- No: leave it off and remember that.
An approval is for that server in that project, exactly as its entry is written. If a later pull changes
the entry, you are asked again. /mcp approve asks about a held server later, and
/mcp approve all about all of them. Approvals are kept in
~/.clixad/mcp-approvals.json.
What a server can see
A server started from a command does not inherit your whole environment. It gets a short list of
variables that programs need to run, and whatever its own env entry names:
- On macOS and Linux:
HOME, LOGNAME, PATH, SHELL, TERM, USER, LANG, LC_ALL, LC_CTYPE, TMPDIR, TZ. - On Windows:
APPDATA, COMSPEC, HOMEDRIVE, HOMEPATH, LOCALAPPDATA, PATH, PATHEXT, PROCESSOR_ARCHITECTURE, PROGRAMFILES, SYSTEMDRIVE, SYSTEMROOT, TEMP, TMP, USERNAME, USERPROFILE, WINDIR.
So an API key you exported in your shell reaches a server only if its entry names it, as in
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" above. This applies to your own servers in
~/.clixad/mcp.json too.
Using the tools
- Every tool a server offers is asked for before it runs, one tool at a time, in every permission mode. Answering "yes, and don't ask again" applies to that tool only, not to the whole server.
- In plan mode, MCP tools are not offered at all, because a mode that promises to change nothing cannot promise that about another program.
- Tools appear to the model as
mcp__<server>__<tool>. - One call may take two minutes.
CLIXAD_MCP_TIMEOUTchanges that, in milliseconds. - A result longer than 60,000 characters is cut, and the model is told.
- MCP works in the interactive agent only.
clixad -phas nobody to approve a tool, so it does not start servers.
Each tool's description is sent to the model on every call, like the agent's own tools, so a server with dozens of tools makes every call larger. Connect the servers you use.
Checking on servers
/mcp lists each server, whether it is connected or why it is not, and the tools it offers.
A server from the project that you have not approved is listed as held, with /mcp approve
to start it.