Skip to content

Commit f0d02e7

Browse files
authored
Merge pull request #8021 from continuedev/docs/mcp-json-server-support
docs: Add MCP JSON server configuration support documentation
2 parents abd6619 + 9f87311 commit f0d02e7

File tree

1 file changed

+33
-34
lines changed

1 file changed

+33
-34
lines changed

docs/customize/deep-dives/mcp.mdx

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ explore available MCP server blocks
3030
Below is a quick example of setting up a new MCP server for use in your agent:
3131

3232
1. Create a folder called `.continue/mcpServers` at the top level of your workspace
33-
2. Add a file called `playwright-mcp.yaml` to this folder.
34-
3. Write the following contents to `playwright-mcp.yaml` and save.
33+
2. Add a file called `playwright-mcp.yaml` to this folder
34+
3. Write the following contents and save
3535

3636
```yaml title=".continue/mcpServers/playwright-mcp.yaml"
3737
name: Playwright mcpServer
@@ -60,6 +60,14 @@ You can set up an MCP server to search the Continue documentation directly from
6060

6161
For complete setup instructions, troubleshooting, and usage examples, see the [Continue MCP Reference](/reference/continue-mcp).
6262

63+
## Using JSON MCP Format from Claude, Cursor, Cline, etc
64+
65+
<Info>
66+
If you're coming from another tool that uses JSON MCP format configuration files (like Claude Desktop, Cursor, or Cline), you can copy those JSON config files directly into your `.continue/mcpServers/` directory (note the plural "Servers") and Continue will automatically pick them up.
67+
68+
For example, place your JSON MCP config file at `.continue/mcpServers/mcp.json` in your workspace.
69+
</Info>
70+
6371
## How to Configure MCP Servers
6472

6573
To set up your own MCP server, read the [MCP
@@ -68,38 +76,21 @@ quickstart](https://modelcontextprotocol.io/quickstart) and then [create an
6876
block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add a local MCP
6977
server block to your [config file](./configuration.md):
7078

71-
<Tabs>
72-
<Tab title="YAML">
73-
```yaml title="config.yaml"
74-
mcpServers:
75-
- name: SQLite MCP
76-
command: npx
77-
args:
78-
- "-y"
79-
- "mcp-sqlite"
80-
- "/path/to/your/database.db"
81-
82-
````
83-
</Tab>
84-
<Tab title="JSON">
85-
```json title="config.json"
86-
{
87-
"experimental": {
88-
"modelContextProtocolServers": [
89-
{
90-
"transport": {
91-
"type": "stdio",
92-
"command": "uvx",
93-
"args": ["mcp-server-sqlite", "--db-path", "/path/to/your/database.db"]
94-
}
95-
}
96-
]
97-
}
98-
}
99-
````
100-
101-
</Tab>
102-
</Tabs>
79+
```yaml title="config.yaml"
80+
# ...
81+
mcpServers:
82+
- name: SQLite MCP
83+
command: npx
84+
args:
85+
- "-y"
86+
- "mcp-sqlite"
87+
- "/path/to/your/database.db"
88+
# ...
89+
```
90+
91+
<Note>
92+
When creating a standalone block file in `.continue/mcpServers/`, remember to include the required metadata fields (`name`, `version`, `schema`) as shown in the Quick Start example above.
93+
</Note>
10394

10495
### How to Configure MCP Server Properties
10596

@@ -120,35 +111,41 @@ MCP now supports remote server connections through HTTP-based transports, expand
120111
For real-time streaming communication, use the SSE transport:
121112

122113
```yaml
114+
# ...
123115
mcpServers:
124116
- name: Name
125117
type: sse
126118
url: https://....
119+
# ...
127120
```
128121

129122
#### How to Use Standard Input/Output (`stdio`)
130123

131124
For local MCP servers that communicate via standard input and output:
132125

133126
```yaml
127+
# ...
134128
mcpServers:
135129
- name: Name
136130
type: stdio
137131
command: npx
138132
args:
139133
- "@modelcontextprotocol/server-sqlite"
140134
- "/path/to/your/database.db"
135+
# ...
141136
```
142137

143138
#### How to Use Streamable HTTP Transport
144139

145140
For standard HTTP-based communication with streaming capabilities:
146141

147142
```yaml
143+
# ...
148144
mcpServers:
149145
- name: Name
150146
type: streamable-http
151147
url: https://....
148+
# ...
152149
```
153150

154151
These remote transport options allow you to connect to MCP servers hosted on remote infrastructure, enabling more flexible deployment architectures and shared server resources across multiple clients.
@@ -161,6 +158,7 @@ With some MCP servers you will need to use API keys or other secrets. You can le
161158
as well as access hosted secrets in the Continue Hub. To leverage Hub secrets, you can use the `inputs` property in your MCP env block instead of `secrets`.
162159

163160
```yaml
161+
# ...
164162
mcpServers:
165163
- name: Supabase MCP
166164
command: npx
@@ -178,4 +176,5 @@ mcpServers:
178176
- "@modelcontextprotocol/server-github"
179177
env:
180178
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}
179+
# ...
181180
```

0 commit comments

Comments
 (0)