Skip to content

Commit eb5ed3d

Browse files
vkodithalaoz-agentrachaelrenk
authored
Update file-based MCP server docs (#10)
* Update file-based MCP server docs Co-Authored-By: Oz <oz-agent@warp.dev> * fix: Remove 'suggested demos' section * refactor: More neatly, into subsections with updated screenshots and demo * docs: streamline file-based MCP servers section - Simplify intro sentence, remove word repetition, unbold Settings - Extract auto-spawn procedure into numbered steps - Replace 'allow' with direct language throughout - Simplify providers table, move shared behavior to prose - Tighten dense paragraphs and reduce noun repetition - Make /agent-add-mcp intro more direct and actionable Co-Authored-By: Oz <oz-agent@warp.dev> --------- Co-authored-by: Oz <oz-agent@warp.dev> Co-authored-by: Rachael Rose Renk <91027132+rachaelrenk@users.noreply.github.com>
1 parent ef1e600 commit eb5ed3d

7 files changed

Lines changed: 47 additions & 11 deletions

File tree

.warp/references/settings-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@
14621462
"properties": {
14631463
"file_based_mcp_enabled": {
14641464
"default": false,
1465-
"description": "Whether third-party file-based MCP servers are automatically detected.",
1465+
"description": "Whether global file-based MCP servers from third-party agents are automatically spawned. Warp-managed global MCP servers auto-spawn regardless of this setting, and project-scoped servers must be started manually.",
14661466
"type": "boolean"
14671467
}
14681468
},
11.1 MB
Binary file not shown.
48.2 KB
Loading
218 KB
Loading
-124 KB
Binary file not shown.

src/content/docs/agent-platform/capabilities/mcp.mdx

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: >-
55
custom tools and data sources through a standardized interface.
66
---
77
import { Tabs, TabItem } from '@astrojs/starlight/components';
8+
import DemoVideo from '@components/DemoVideo.astro';
89

910
MCP servers extend Warp's [local agents](/agent-platform/local-agents/interacting-with-agents/) in a modular, flexible way by exposing custom tools or data sources through a standardized interface — essentially acting as plugins for Warp. Warp supports a variety of connection protocols, including Streamable HTTPS and SSE, along with custom headers and environment variables.
1011

@@ -95,21 +96,56 @@ To add a multiple MCP servers, you can click the **+ Add** button then paste in
9596

9697
### File-based MCP servers
9798

98-
Warp detects MCP server configurations managed by supported third-party agents and can automatically spawn them alongside your manually configured servers.
99+
Compared to manually adding a server in the Warp settings, file-based servers are defined in config files that Warp detects and can spawn automatically. They offer a few additional benefits:
99100

100-
To enable, go to **Settings** > **Agents** > **MCP servers** and toggle **File-based MCP Servers** on.
101+
* **Configurable directly with an agent** - Use the [bundled skill](#using-agent-add-mcp) `/agent-add-mcp` so Warp's agent can add or update an MCP server without leaving the conversation.
102+
* **Inherited across providers and repos** - Warp reads `.warp/.mcp.json` files and also picks up config from third-party agent providers (Claude Code, Codex, and others). The same server definition follows you across tools and repos.
101103

102-
![File-based MCP Servers toggle](/assets/agent-platform/file-based-mcp-toggle.gif)
104+
#### Supported providers
103105

104-
When enabled:
106+
Warp reads MCP server definitions from the following providers:
105107

106-
* **Global/user-scoped servers** - spawned on Warp startup and available in any session.
107-
* **Project-scoped servers** - spawned when you enter a repo containing a supported config file, and available within that project only.
108+
| Provider | Global config | Project-scoped config | Auto-spawn |
109+
| -------- | ------------- | --------------------- | ---------- |
110+
| Warp | `~/.warp/.mcp.json` | `.warp/.mcp.json` at project root | On by default |
111+
| Claude Code | `~/.claude.json` | `.mcp.json` at project root | Requires toggle |
112+
| Codex | `~/.codex/config.toml` | `.codex/config.toml` at project root | Requires toggle |
113+
| Other agents | `~/.agents/.mcp.json` | `.agents/.mcp.json` at project root | Requires toggle |
108114

109-
Supported providers:
115+
Global Warp servers auto-spawn by default. Global servers from all other providers auto-spawn only when **Auto-spawn servers from third-party agents** is enabled. Project-scoped servers from any provider require explicit approval.
110116

111-
* **Claude Code** - reads user-scoped config (`~/.claude.json`) and project-scoped config (`.mcp.json` at project root). See [user scope](https://code.claude.com/docs/en/mcp#user-scope) and [project scope](https://code.claude.com/docs/en/mcp#project-scope) in the Claude Code docs.
112-
* **Codex** - reads global config (`~/.codex/config.toml`) and project-scoped config (`.codex/config.toml` at project root). See [Codex MCP docs](https://developers.openai.com/codex/mcp/#connect-codex-to-an-mcp-server).
117+
For provider-specific setup, see the [Claude Code MCP docs](https://code.claude.com/docs/en/mcp#user-scope) and [Codex MCP docs](https://developers.openai.com/codex/mcp/#connect-codex-to-an-mcp-server).
118+
119+
#### Auto-spawn behavior
120+
121+
Global Warp servers auto-spawn by default. Third-party agent servers require you to enable auto-spawn first.
122+
123+
To auto-spawn global servers from third-party agents:
124+
125+
1. In the Warp app, go to **Settings** > **Agents** > **MCP servers**.
126+
2. Toggle **Auto-spawn servers from third-party agents** on.
127+
128+
![Toggle to auto-spawn global file-based MCP servers](/assets/agent-platform/file-based-mcp-setting.png)
129+
130+
Project-scoped servers from any provider must be toggled on individually from the MCP servers page. These are session-scoped — after restarting Warp, toggle them on again if you still trust the repo.
131+
132+
#### Using `/agent-add-mcp`
133+
134+
The built-in `/agent-add-mcp` skill lets Warp's agent create or update file-based MCP server definitions. Choose whether to save globally or in the current project — the skill writes the server definition to the matching file:
135+
136+
* **Global:** `~/.warp/.mcp.json`
137+
* **Project-scoped:** `{repo_root}/.warp/.mcp.json`
138+
139+
<DemoVideo src="/assets/agent-platform/file-based-mcp-demo.mp4" label="Using the agent-add-mcp skill to create a file-based MCP server configuration" />
140+
141+
The demo shows how to use `/agent-add-mcp` to add an MCP server, choose where Warp saves the file-based configuration, and review the generated `.warp/.mcp.json` file before using the server.
142+
143+
#### Security mitigations
144+
145+
MCP config files can start local commands and send data to external tools. Warp adds approval gates around file-based MCP servers to reduce the risk of untrusted config changes:
146+
147+
* **Config edits require approval** - Warp prevents edits to MCP config files unless you explicitly approve the change. This keeps an agent or automation from silently adding a server that can run commands or access data.
148+
* **Project-scoped servers never auto-spawn** - Warp detects project-scoped MCP config files in cloned repos, but requires you to start each server manually. This prevents a cloned repo from automatically starting an MCP server that runs arbitrary local commands.
113149

114150
:::note
115151
File-based servers that require OAuth show an authentication modal on their first spawn. Credentials are saved for future spawns, the same as manually configured MCP servers.

src/content/docs/terminal/settings/all-settings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Settings for Warp's agents, including model behavior, permissions, knowledge, MC
267267

268268
**Section**: `[agents.mcp_servers]`
269269

270-
* `file_based_mcp_enabled` — Whether third-party file-based MCP servers are automatically detected. Type: boolean. Default: `false`.
270+
* `file_based_mcp_enabled` — Whether global file-based MCP servers from third-party agents are automatically spawned. Warp-managed global MCP servers auto-spawn regardless of this setting, and project-scoped servers must be started manually. Type: boolean. Default: `false`.
271271

272272
### Profiles (permissions)
273273

0 commit comments

Comments
 (0)