GitHub

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.

Config .agents/mcp.json · ~/.agents/mcp.json
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:

OrderPathScope
1.agents/mcp.jsonProject root
2../.agents/mcp.jsonParent directory — monorepos
3~/.agents/mcp.jsonHome 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.
  • ~/.agents is 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.json first; it is a short file.

Desktop: Connectors

  1. Open ConnectorsSettings → MCP / Connectors. Presets are there, and so is Add server.
  2. Add the serverPaste the mcpServers block from the server's own instructions, or pick it from the list.
  3. Approve the commandDesktop validates the JSON and shows the command or address before anything runs. Nothing starts until you approve it.
  4. 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.

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.json or 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.