update the docs
This commit is contained in:
parent
79d74977d3
commit
a2b62aafc6
3 changed files with 19 additions and 3 deletions
|
|
@ -110,6 +110,7 @@ MCP blocks follow the established syntax for blocks, with a few additional prope
|
|||
- `type` (optional): The type of the MCP server: `sse`, `stdio`, `streamable-http`
|
||||
- `args` (optional): Arguments to pass to the command.
|
||||
- `env` (optional): Secrets to be injected into the command as environment variables.
|
||||
- `cwd` (optional): Working directory to run the command in. Can be absolute or relative path.
|
||||
|
||||
### Transport Types
|
||||
|
||||
|
|
@ -132,12 +133,22 @@ For local MCP servers that communicate via standard input and output:
|
|||
|
||||
```yaml
|
||||
mcpServers:
|
||||
- name: Name
|
||||
- name: SQLite Server
|
||||
type: stdio
|
||||
command: npx
|
||||
args:
|
||||
- "@modelcontextprotocol/server-sqlite"
|
||||
- "/path/to/your/database.db"
|
||||
- "./database.db"
|
||||
cwd: "/path/to/project"
|
||||
|
||||
- name: Local Project Server
|
||||
command: npm
|
||||
args:
|
||||
- "run"
|
||||
- "mcp-server"
|
||||
cwd: "./my-project"
|
||||
env:
|
||||
NODE_ENV: "production"
|
||||
```
|
||||
|
||||
#### Streamable HTTP Transport
|
||||
|
|
|
|||
|
|
@ -384,6 +384,7 @@ prompts, context, and tool use. Continue supports any MCP server with the MCP co
|
|||
- `command` (**required**): The command used to start the server.
|
||||
- `args`: An optional array of arguments for the command.
|
||||
- `env`: An optional map of environment variables for the server process.
|
||||
- `cwd`: An optional working directory to run the command in. Can be absolute or relative path.
|
||||
- `connectionTimeout`: An optional connection timeout number to the server in milliseconds.
|
||||
|
||||
**Example:**
|
||||
|
|
@ -395,7 +396,10 @@ mcpServers:
|
|||
args:
|
||||
- mcp-server-sqlite
|
||||
- --db-path
|
||||
- /Users/NAME/test.db
|
||||
- ./test.db
|
||||
cwd: /Users/NAME/project
|
||||
env:
|
||||
NODE_ENV: production
|
||||
```
|
||||
|
||||
### `data`
|
||||
|
|
|
|||
|
|
@ -288,6 +288,7 @@ docs:
|
|||
- `command` (**required**): The command used to start the server.
|
||||
- `args`: An optional array of arguments for the command.
|
||||
- `env`: An optional map of environment variables for the server process.
|
||||
- `cwd`: An optional working directory to run the command in. Can be absolute or relative path.
|
||||
|
||||
**Before**
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue