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
docs: clarify MCP YAML examples need context or block metadata
- Add ellipsis (...) to YAML examples to indicate they're part of a larger config file
- Add explicit note about required metadata fields when creating standalone block files
- This prevents confusion when users try to copy snippets directly into .continue/mcpServers/
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <[email protected]>
Copy file name to clipboardExpand all lines: docs/customize/deep-dives/mcp.mdx
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,15 +77,21 @@ block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add a lo
77
77
server block to your [config file](./configuration.md):
78
78
79
79
```yaml title="config.yaml"
80
+
# ...
80
81
mcpServers:
81
82
- name: SQLite MCP
82
83
command: npx
83
84
args:
84
85
- "-y"
85
86
- "mcp-sqlite"
86
87
- "/path/to/your/database.db"
88
+
# ...
87
89
```
88
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>
94
+
89
95
### How to Configure MCP Server Properties
90
96
91
97
MCP blocks follow the established syntax for blocks, with a few additional properties specific to MCP servers.
@@ -105,35 +111,41 @@ MCP now supports remote server connections through HTTP-based transports, expand
105
111
For real-time streaming communication, use the SSE transport:
106
112
107
113
```yaml
114
+
# ...
108
115
mcpServers:
109
116
- name: Name
110
117
type: sse
111
118
url: https://....
119
+
# ...
112
120
```
113
121
114
122
#### How to Use Standard Input/Output (`stdio`)
115
123
116
124
For local MCP servers that communicate via standard input and output:
117
125
118
126
```yaml
127
+
# ...
119
128
mcpServers:
120
129
- name: Name
121
130
type: stdio
122
131
command: npx
123
132
args:
124
133
- "@modelcontextprotocol/server-sqlite"
125
134
- "/path/to/your/database.db"
135
+
# ...
126
136
```
127
137
128
138
#### How to Use Streamable HTTP Transport
129
139
130
140
For standard HTTP-based communication with streaming capabilities:
131
141
132
142
```yaml
143
+
# ...
133
144
mcpServers:
134
145
- name: Name
135
146
type: streamable-http
136
147
url: https://....
148
+
# ...
137
149
```
138
150
139
151
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.
@@ -146,6 +158,7 @@ With some MCP servers you will need to use API keys or other secrets. You can le
146
158
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`.
0 commit comments