# MCP servers and skills

Fide can add MCP servers to the agent sessions on an environment and hide skills from its
agents. There's no settings page for this yet. Ask an agent to add a server: it asks you for any key
in a private card, and Fide keeps the key in its secret store, never in settings.json. You can also edit
the environment's `<t3-home>/userdata/settings.json` (`~/.t3/userdata/settings.json` by default)
yourself. Fide reads the file as soon as it's saved. Agent sessions get the change when they
next start.

If the file isn't valid JSON or holds a value Fide can't read, Fide runs on default settings
until the file is fixed. The server log says what it couldn't read.

## MCP servers

Servers go under `mcpServers`, keyed by name. A name starts with a lowercase letter and uses only
lowercase letters, digits, `-` and `_`, up to 48 characters. Otherwise the JSON from a server's docs
works as written. Never put a key or token in this file. Name an environment variable instead, as
`${NAME}`, `${NAME:-default}` or `${env:NAME}`:

```json
{
  "mcpServers": {
    "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] },
    "github": {
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
    }
  }
}
```

Fide fills in variables when an agent session starts, from the environment Fide runs in. On
macOS and Linux it also reads them from your login shell, so an `export` in your shell profile works
for the desktop app too. A server that names a variable that isn't set is left out of the session,
and the server log says which variable.

A key an agent saved shows in the file as an empty value with `"valueRedacted": true`. Leave that
line as it is to keep the key. Keys are stored under the server's name, so after renaming a server,
ask an agent to set its keys again. Fide never changes a value you write: a key typed into the
file stays there in plain text and reaches the server as written.

Most servers that sign in with OAuth need nothing more: the first agent session that uses one shows
a notice with a **Sign in** button. Some, such as Google's, only accept a client you registered with
them yourself. Give that client's ID and secret under `oauth`, the secret as a `${NAME}` variable or
saved by an agent like any other key:

```json
{
  "mcpServers": {
    "gmail": {
      "url": "https://gmailmcp.googleapis.com/mcp/v1",
      "oauth": {
        "clientId": "1234-abc.apps.googleusercontent.com",
        "clientSecret": "${GMAIL_CLIENT_SECRET}"
      }
    }
  }
}
```

Only Claude and Codex use `oauth`; other agents connect to the server without it.

Set `"enabled": false` on a server to switch it off without removing it. The names `t3-code` and
`t3-code-direct` are taken by Fide's own servers.

These servers come on top of the ones each agent loads from its own config, which Fide never
edits. Claude, Codex, Grok Build, OpenCode and the ACP agents (such as Kiro and Antigravity) get
them; an ACP agent that doesn't support URL servers gets only the command ones. OpenCode 1.x gets
them only when Fide starts the OpenCode server, not on one set by URL. Muse Code and Pi aren't
supported yet.

## Skills

`"disabledSkills": ["grill-me"]` hides those skills from agents on the environment. Use each skill's
exact name. Only Claude, Codex and OpenCode apply it; other agents have no way to hide one skill, so they
can still use it.

## Per project

Ask an agent to add a server for one project only, or to switch one off there. In the file,
`projectSettingsOverrides`, keyed by project id, changes these for one project:

```json
{
  "projectSettingsOverrides": {
    "<project id>": {
      "mcpServers": {
        "linear": { "enabled": false },
        "tracker": { "command": "tracker-mcp" }
      },
      "disabledSkills": { "grill-me": false, "prepare-pr": true }
    }
  }
}
```

A server with a command or URL is added to the project, replacing an environment server of the same
name. One with only `"enabled"` switches an environment server off or on for the project. Under
`disabledSkills`, `true` hides a skill in the project and `false` brings back one the environment
hides.
