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
Copy file name to clipboardExpand all lines: docs/features/mcp/using-mcp-in-roo.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,31 @@ sidebar_label: Using MCP in Roo Code
7
7
8
8
Model Context Protocol (MCP) extends Roo Code's capabilities by connecting to external tools and services. This guide covers everything you need to know about using MCP with Roo Code.
9
9
10
-
> **Note:** All MCP-related settings are global across all workspaces. Any changes you make to MCP configurations will affect all your Roo Code projects.
10
+
## Configuring MCP Servers
11
11
12
-
## Installing/Editing Your MCP Servers
12
+
MCP server configurations can be managed at two levels:
13
13
14
-
MCP server configurations are stored in the `cline_mcp_settings.json` file. You can access it by:
14
+
1.**Global Configuration**: Stored in the `mcp_settings.json` file, accessible via VS Code settings (see below). These settings apply across all your workspaces unless overridden by a project-level configuration.
15
+
2.**Project-level Configuration**: Defined in a `.roo/mcp.json` file within your project's root directory. This allows you to set up project-specific servers and share configurations with your team by committing the file to version control. Roo Code automatically detects and loads this file if it exists.
15
16
16
-
1. Click the <Codiconname="server" /> icon in the top navigation of the Roo Code pane
17
+
**Precedence**: If a server name exists in both global and project configurations, the **project-level configuration takes precedence**.
18
+
19
+
### Editing MCP Settings Files
20
+
21
+
You can edit both global and project-level MCP configuration files directly from the Roo Code MCP settings view:
22
+
23
+
1. Click the <Codiconname="server" /> icon in the top navigation of the Roo Code pane.
24
+
25
+
<imgsrc="/img/using-mcp-in-roo/using-mcp-in-roo-10.png"alt="MCP Servers interface in Roo Code"width="400" />
17
26
18
-
<imgsrc="/img/using-mcp-in-roo/using-mcp-in-roo.png"alt="MCP Servers interface in Roo Code"width="400" />
19
-
2. Click the `Edit MCP Settings` button. This will open `cline_mcp_settings.json`
27
+
2. Scroll to the bottom of the MCP settings view.
28
+
3. Click the appropriate button:
29
+
***`Edit Global MCP`**: Opens the global `mcp_settings.json` file.
30
+
***`Edit Project MCP`**: Opens the project-specific `.roo/mcp.json` file. If this file doesn't exist, Roo Code will create it for you.
<imgsrc="/img/using-mcp-in-roo/using-mcp-in-roo-9.png"alt="Edit Global MCP and Edit Project MCP buttons"width="600" />
22
33
23
-
The file uses a JSON format with a `mcpServers` object containing named server configurations:
34
+
Both files use a JSON format with a `mcpServers` object containing named server configurations:
24
35
25
36
```json
26
37
{
@@ -189,6 +200,6 @@ Example: "Analyze the performance of my API" might use an MCP tool that tests AP
189
200
Common issues and solutions:
190
201
191
202
***Server Not Responding:** Check if the server process is running and verify network connectivity
192
-
***Permission Errors:** Ensure proper API keys and credentials are configured in your `cline_mcp_settings.json`
203
+
***Permission Errors:** Ensure proper API keys and credentials are configured in your `mcp_settings.json` (for global settings) or `.roo/mcp.json` (for project settings).
193
204
***Tool Not Available:** Confirm the server is properly implementing the tool and it's not disabled in settings
194
205
***Slow Performance:** Try adjusting the network timeout value for the specific MCP server
0 commit comments