Skip to content

Commit 06d7840

Browse files
fancivewujunchen
andauthored
docs: fix MCP header interpolation example to {env:VAR} (anomalyco#31078)
Co-authored-by: wujunchen <wujunchen@baidu.com>
1 parent 0875203 commit 06d7840

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/core/src/plugin/skill/customize-opencode.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,17 @@ Special object-shaped (not callbacks): `tool: { my_tool: { ... } }`,
303303
"type": "remote",
304304
"url": "https://...",
305305
"enabled": true,
306-
"headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
306+
"headers": { "Authorization": "Bearer {env:GITHUB_TOKEN}" }
307307
},
308308
"old-server": { "enabled": false }
309309
}
310310
}
311311
```
312312

313313
`command` is an array of strings. `type` is required. Use `enabled: false` to
314-
disable a server inherited from a parent config.
314+
disable a server inherited from a parent config. String values such as header
315+
tokens support `{env:VAR}` interpolation (and `{file:path}`); the shell-style
316+
`${VAR}` is not substituted.
315317

316318
## Permissions
317319

0 commit comments

Comments
 (0)