mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
docs: clarify MCP server configuration
Fix the grammar, and clarify that `localmcp` and `remotemcp` are not fixed fields within the schema, but instead just example names of MCP servers.
This commit is contained in:
parent
b7446cd7b9
commit
296cb16b21
1 changed files with 4 additions and 4 deletions
|
@ -17,13 +17,13 @@ You can define MCP servers in your opencode config under `mcp`.
|
|||
|
||||
### Local
|
||||
|
||||
Add a local MCP servers under `mcp.localmcp`.
|
||||
Add local MCP servers under `mcp` with `type` set to `local`, e.g.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"mcp": {
|
||||
"localmcp": {
|
||||
"mylocalmcp": {
|
||||
"type": "local",
|
||||
"command": ["bun", "x", "my-mcp-command"],
|
||||
"environment": {
|
||||
|
@ -36,13 +36,13 @@ Add a local MCP servers under `mcp.localmcp`.
|
|||
|
||||
### Remote
|
||||
|
||||
Add a remote MCP servers under `mcp.remotemcp`.
|
||||
Add remote MCP servers under `mcp` with `type` set to `remote`, e.g.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"mcp": {
|
||||
"remotemcp": {
|
||||
"myremotemcp": {
|
||||
"type": "remote",
|
||||
"url": "https://my-mcp-server.com"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue