docs: fix MCP header interpolation example to {env:VAR} (#31078)
Co-authored-by: wujunchen <wujunchen@baidu.com>
This commit is contained in:
parent
0875203a6c
commit
06d7840d1d
1 changed files with 4 additions and 2 deletions
|
|
@ -303,7 +303,7 @@ Special object-shaped (not callbacks): `tool: { my_tool: { ... } }`,
|
||||||
"type": "remote",
|
"type": "remote",
|
||||||
"url": "https://...",
|
"url": "https://...",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
|
"headers": { "Authorization": "Bearer {env:GITHUB_TOKEN}" }
|
||||||
},
|
},
|
||||||
"old-server": { "enabled": false }
|
"old-server": { "enabled": false }
|
||||||
}
|
}
|
||||||
|
|
@ -311,7 +311,9 @@ 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. `type` is required. Use `enabled: false` to
|
||||||
disable a server inherited from a parent config.
|
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.
|
||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue