You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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>
Copy file name to clipboardExpand all lines: .warp/references/settings-schema.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1462,7 +1462,7 @@
1462
1462
"properties": {
1463
1463
"file_based_mcp_enabled": {
1464
1464
"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.",
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.
10
11
@@ -95,21 +96,56 @@ To add a multiple MCP servers, you can click the **+ Add** button then paste in
95
96
96
97
### File-based MCP servers
97
98
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:
99
100
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.
| 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 |
108
114
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.
110
116
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
+

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
+
<DemoVideosrc="/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.
113
149
114
150
:::note
115
151
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.
*`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`.
0 commit comments