MCP servers
Extra tools for the agent — where the config is read from, what the CLI trusts, how Desktop approves a server, and which transports actually work.
MCP gives the agent tools it does not ship with: Godot, Blender, Playwright, an internal API. A server exposes tools; the agent looks them up and calls them. Two things decide whether a server is available — the transport it speaks, and the scope it was configured in.
Desktop state ~/.freebuff/mcp.json (approvals, connection state)
Transports stdio · Streamable HTTP · SSE (CLI only)
Agent tools search_mcp_tools · call_mcp_tool
CLI: where the configuration comes from
Three files are read, in this order:
| Order | Path | Scope |
|---|---|---|
| 1 | .agents/mcp.json | Project root |
| 2 | ../.agents/mcp.json | Parent directory — monorepos |
| 3 | ~/.agents/mcp.json | Home directory, every project |
Later wins. When two files define a server with the same name, the
later one replaces the earlier. A global ~/.agents/mcp.json silently
overrides a project entry — the usual reason a server works in one repository and not
in another.
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["-y", "PACKAGE_NAME"],
"env": { "API_TOKEN": "$MY_API_TOKEN" }
}
}
}
$MY_API_TOKEN in env is resolved from the environment the CLI
was started in, not from the file. If the variable is missing, the server is skipped and
the log names the variable — never its value. Export it in your shell profile rather
than pasting a key into JSON.
CLI: trusting a project
A project-level MCP server is code that runs on your machine, so the CLI asks before it
starts one from .agents in the current or parent directory. The prompt shows
the command or address, and declining skips both directories for that session.
- Non-interactive runs skip untrusted directories unless you gave explicit permission — a scripted run will not quietly execute a repository's servers.
~/.agentsis yours. Servers from your home directory are trusted and never prompt.- Read before you trust. A cloned repository can ship its own server. Open
.agents/mcp.jsonfirst; it is a short file.
Desktop: Connectors
- Open ConnectorsSettings → MCP / Connectors. Presets are there, and so is Add server.
- Add the serverPaste the
mcpServersblock from the server's own instructions, or pick it from the list. - Approve the commandDesktop validates the JSON and shows the command or address before anything runs. Nothing starts until you approve it.
- Choose toolsAfter it connects, pick which tools the agent may use. Safe only leaves out the ones that change or delete things.
The tool list does not exist before the server starts or connects — that is why the approval step comes first and the tool picker second.
Desktop writes the server definition to the shared ~/.agents/mcp.json, but
keeps its own approvals and connection state separately in
~/.freebuff/mcp.json. Removing a server in Desktop also removes its entry
from the shared CLI configuration, so the two surfaces do not drift apart.
Transports
Freebuff starts a local process and talks to it over stdin and stdout. Both surfaces support this transport.
{
"mcpServers": {
"godot": {
"command": "python",
"args": ["/full/path/to/godot_mcp/server.py"]
}
}
}
Always use the absolute path to the server script, and check that python, node or npx runs in your own terminal first.
Freebuff connects to a remote endpoint. Supported on both surfaces. HTTPS is required for a remote address; plain HTTP is accepted for localhost only.
{
"mcpServers": {
"myApi": {
"type": "http",
"url": "https://api.example.com/mcp",
"headers": { "Authorization": "$API_TOKEN" }
}
}
}
An HTTP server can start without a browser. If it declares an
Authorization header, Desktop can run OAuth instead: sign-in opens in
your system browser, the token stays in memory until restart, and on Linux the
credential is stored through GNOME Keyring or KWallet rather than a plain file.
The CLI supports SSE. The Desktop app rejects an SSE entry — use Streamable HTTP there.
{
"mcpServers": {
"streamingApi": {
"type": "sse",
"url": "https://stream.example.com/mcp/events",
"headers": { "X-API-Key": "$STREAM_API_KEY" }
}
}
}
If a server offers both, prefer Streamable HTTP: it works on both surfaces and survives reconnects better.
How the agent sees the tools
The model never gets the whole tool list. It has two tools for MCP:
search_mcp_tools finds a server's tools by description, and
call_mcp_tool invokes one. Each call re-checks the permission, the
connection state and the arguments.
- Mid-turn changes apply. Turn a server off, or narrow its permissions, while a turn is running and the next call can be refused.
- Read-only is planned, not assumed. In plan mode only tools the server marks read-only are reachable, so a planning turn cannot change files through MCP.
- Approvals are per tool. A server can be connected with half its tools hidden; that is a supported state, not a bug.
If it doesn't work
- It will not start. Re-read the JSON, then the command, the arguments and the environment variables. Desktop refreshes the status after connecting; a stale badge is not a failure.
- Tools are missing in Desktop. Check that the server is running and enabled, open its connector panel, then press Refresh.
- Sign-in expired. Open the connector and press Reconnect.
- The server is listed but nothing happens. A visible name with no tools is the expected "not running" state — start it or reconnect.
- The first call fails. Common right after startup. Ask for the call again before debugging.
- Another app must be open. Some servers need the host application (Unity, Blender) and a plugin inside it.
What to keep in mind
- Scope is a directory, not a chat. A project server is available to every session in that project; a home server is available everywhere.
- Windows. Paths and launch commands differ; use absolute paths and test the command in your own terminal first.
- Cloud. Sessions in the browser do not see connectors configured on your desktop. See Desktop and Cloud.
- Credentials. Never paste a token into
mcp.jsonor into a chat. Environment variables locally; secrets for deployed Sites — see API keys.
Still stuck?
Create a ticket in the account support channel with the server name, the config you used (hide any keys), the transport, and the exact status or error you see.