mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-30 05:43:31 +00:00
fix(core): correct MCP environment field in built-in skill (#39175)
This commit is contained in:
parent
8e8d38c3cd
commit
8dc539b4ae
1 changed files with 4 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ Every field is optional.
|
|||
"type": "local",
|
||||
"command": ["npx", "-y", "@playwright/mcp"],
|
||||
"enabled": true,
|
||||
"env": {}
|
||||
"environment": {}
|
||||
},
|
||||
"remote-thing": {
|
||||
"type": "remote",
|
||||
|
|
@ -371,7 +371,7 @@ Special object-shaped (not callbacks): `tool: { my_tool: { ... } }`,
|
|||
"type": "local",
|
||||
"command": ["npx", "-y", "@playwright/mcp"],
|
||||
"enabled": true,
|
||||
"env": { "BROWSER": "chromium" }
|
||||
"environment": { "BROWSER": "chromium" }
|
||||
},
|
||||
"github": {
|
||||
"type": "remote",
|
||||
|
|
@ -384,7 +384,8 @@ Special object-shaped (not callbacks): `tool: { my_tool: { ... } }`,
|
|||
}
|
||||
```
|
||||
|
||||
`command` is an array of strings. `type` is required. Use `enabled: false` to
|
||||
`command` is an array of strings. `environment` sets environment variables for
|
||||
a local MCP server. `type` is required. Use `enabled: false` to
|
||||
disable a server inherited from a parent config. String values such as header
|
||||
tokens support `{env:VAR}` interpolation (and `{file:path}`); the shell-style
|
||||
`${VAR}` is not substituted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue