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
Currently custom tools can be configured using the [Model Context Protocol](https://modelcontextprotocol.io/introduction), a standard proposed by Anthropic to unify prompts, context, and tool use.
12
+
As AI systems get better, they're still held back by their training data and
13
+
can't access real-time information or specialized tools. The [Model Context
14
+
Protocol](https://modelcontextprotocol.io/introduction) (MCP) fixes this by
15
+
letting AI models connect with outside data sources, tools, and environments.
16
+
This allows smooth sharing of information and abilities between AI systems and
17
+
the wider digital world. This standard, created by Anthropic to bring together
18
+
prompts, context, and tool use, is key for building truly useful AI experiences
19
+
that can be set up with custom tools.
13
20
14
-
MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can explore available MCP server blocks [here](https://hub.continue.dev/explore/mcp).
21
+
## How it works
22
+
23
+
Currently custom tools can be configured using the Model Context
24
+
Protocol standard to unify prompts, context, and tool use.
25
+
26
+
MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can
27
+
explore available MCP server blocks
28
+
[here](https://hub.continue.dev/explore/mcp).
15
29
16
30
:::info
17
31
MCP can only be used in the **agent** mode.
18
32
:::
19
33
20
-
To set up your own MCP server, read the [MCP quickstart](https://modelcontextprotocol.io/quickstart) and then [create an `mcpServers` block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add the following to your [config file](./configuration.md):
34
+
## Quick Start
35
+
36
+
Below is a quick example of setting up a new MCP server for use in your assistant:
37
+
38
+
1. Create a folder called `.continue/mcpServers` at the top level of your workspace
39
+
2. Add a file called `playwright-mcp.yaml` to this folder.
40
+
3. Write the following contents to `playwright-mcp.yaml` and save.
MCP blocks follow the established syntax for blocks, with a few additional properties specific to MCP servers.
107
+
108
+
- `name` (**required**): A display name for the MCP server.
109
+
- `command` (**required**): The command to run to start the MCP server.
110
+
- `type` (optional): The type of the MCP server: `sse`, `stdio`, `streamable-http`
111
+
- `args` (optional): Arguments to pass to the command.
112
+
- `env` (optional): Secrets to be injected into the command as environment variables.
113
+
114
+
### Transport Types
115
+
116
+
MCP now supports remote server connections through HTTP-based transports, expanding beyond the traditional local stdio transport method. This enables integration with cloud-hosted MCP servers and distributed architectures.
117
+
118
+
#### Server-Sent Events (SSE) Transport
119
+
120
+
For real-time streaming communication, use the SSE transport:
121
+
122
+
```yaml
123
+
mcpServers:
124
+
- name: Name
125
+
type: sse
126
+
url: https://....
127
+
```
128
+
129
+
#### Standard Input/Output (stdio)
130
+
131
+
For local MCP servers that communicate via standard input and output:
132
+
133
+
```yaml
134
+
mcpServers:
135
+
- name: Name
136
+
type: stdio
137
+
command: npx
138
+
args:
139
+
- "@modelcontextprotocol/server-sqlite"
140
+
- "/path/to/your/database.db"
141
+
```
142
+
143
+
#### Streamable HTTP Transport
144
+
145
+
For standard HTTP-based communication with streaming capabilities:
146
+
147
+
```yaml
148
+
mcpServers:
149
+
- name: Name
150
+
type: streamable-http
151
+
url: https://....
152
+
```
153
+
154
+
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.
155
+
156
+
For detailed information about transport mechanisms and their use cases, refer to the official MCP documentation on [transports](https://modelcontextprotocol.io/docs/concepts/transports#server-sent-events-sse).
157
+
158
+
### Working with Secrets
159
+
160
+
With some MCP servers you will need to use API keys or other secrets. You can leverage locally stored environments secrets
161
+
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