Open History to see the last commit
1# MCP servers and skills
2
3T3 Code can add MCP servers to the agent sessions on an environment and hide skills from its
4agents. There's no settings page for this yet. Ask an agent to add a server: it asks you for any key
5in a private card, and T3 Code keeps the key in its secret store, never in settings.json. You can also edit
6the environment's `<t3-home>/userdata/settings.json` (`~/.t3/userdata/settings.json` by default)
7yourself. T3 Code reads the file as soon as it's saved. Agent sessions get the change when they
8next start.
9
10If the file isn't valid JSON or holds a value T3 Code can't read, T3 Code runs on default settings
11until the file is fixed. The server log says what it couldn't read.
12
13## MCP servers
14
15Servers go under `mcpServers`, keyed by name. A name starts with a lowercase letter and uses only
16lowercase letters, digits, `-` and `_`, up to 48 characters. Otherwise the JSON from a server's docs
17works as written. Never put a key or token in this file. Name an environment variable instead, as
18`${NAME}`, `${NAME:-default}` or `${env:NAME}`:
19
20```json
21{
22 "mcpServers": {
23 "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] },
24 "github": {
25 "url": "https://api.githubcopilot.com/mcp/",
26 "headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
27 }
28 }
29}
30```
31
32T3 Code fills in variables when an agent session starts, from the environment T3 Code runs in. On
33macOS and Linux it also reads them from your login shell, so an `export` in your shell profile works
34for the desktop app too. A server that names a variable that isn't set is left out of the session,
35and the server log says which variable.
36
37A key an agent saved shows in the file as an empty value with `"valueRedacted": true`. Leave that
38line as it is to keep the key. Keys are stored under the server's name, so after renaming a server,
39ask an agent to set its keys again. T3 Code never changes a value you write: a key typed into the
40file stays there in plain text and reaches the server as written.
41
42Most servers that sign in with OAuth need nothing more: the first agent session that uses one shows
43a notice with a **Sign in** button. Some, such as Google's, only accept a client you registered with
44them yourself. Give that client's ID and secret under `oauth`, the secret as a `${NAME}` variable or
45saved by an agent like any other key:
46
47```json
48{
49 "mcpServers": {
50 "gmail": {
51 "url": "https://gmailmcp.googleapis.com/mcp/v1",
52 "oauth": {
53 "clientId": "1234-abc.apps.googleusercontent.com",
54 "clientSecret": "${GMAIL_CLIENT_SECRET}"
55 }
56 }
57 }
58}
59```
60
61Only Claude and Codex use `oauth`; other agents connect to the server without it.
62
63Set `"enabled": false` on a server to switch it off without removing it. The names `t3-code` and
64`t3-code-direct` are taken by T3 Code's own servers.
65
66These servers come on top of the ones each agent loads from its own config, which T3 Code never
67edits. Claude, Codex, Grok Build, OpenCode and the ACP agents (such as Kiro and Antigravity) get
68them; an ACP agent that doesn't support URL servers gets only the command ones. OpenCode 1.x gets
69them only when T3 Code starts the OpenCode server, not on one set by URL. Muse Code and Pi aren't
70supported yet.
71
72## Skills
73
74`"disabledSkills": ["grill-me"]` hides those skills from agents on the environment. Use each skill's
75exact name. Only Claude, Codex and OpenCode apply it; other agents have no way to hide one skill, so they
76can still use it.
77
78## Per project
79
80Ask an agent to add a server for one project only, or to switch one off there. In the file,
81`projectSettingsOverrides`, keyed by project id, changes these for one project:
82
83```json
84{
85 "projectSettingsOverrides": {
86 "<project id>": {
87 "mcpServers": {
88 "linear": { "enabled": false },
89 "tracker": { "command": "tracker-mcp" }
90 },
91 "disabledSkills": { "grill-me": false, "prepare-pr": true }
92 }
93 }
94}
95```
96
97A server with a command or URL is added to the project, replacing an environment server of the same
98name. One with only `"enabled"` switches an environment server off or on for the project. Under
99`disabledSkills`, `true` hides a skill in the project and `false` brings back one the environment
100hides.