You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can force certain tools within a `toolbox` to require user confirmation to run. This can be helpful if a tool may perform irreversible actions and should require user approval prior to its use. This is done by including the name of the tool (function) in the MCP server in the `confirm` section:
@@ -365,7 +365,7 @@ taskflow:
365
365
Finally, why are apples and oranges healthy to eat?
366
366
367
367
# taskflows can set temporary environment variables, these support the general
368
-
# "{{ envFROM_EXISTING_ENVIRONMENT}" pattern we use elsewhere as well
368
+
# "{{ env('FROM_EXISTING_ENVIRONMENT') }}" pattern we use elsewhere as well
369
369
# these environment variables can then be made available to any stdio mcp server
370
370
# through its respective yaml configuration, see memcache.yaml for an example
371
371
# you can use these to override top-level environment variables on a per-task basis
@@ -512,12 +512,12 @@ Files of types `taskflow` and `toolbox` allow environment variables to be passed
# prevent git repo operations on gh codeql executions
517
517
GH_NO_UPDATE_NOTIFIER: "disable"
518
518
```
519
519
520
-
For `toolbox`, `env` can be used inside `server_params`. A template of the form `{{ envENV_VARIABLE_NAME }}` can be used to pass values of the environment variable from the current process to the MCP server. So in the above, the MCP server is run with `GH_NO_UPDATE_NOTIFIER=disable` and passes the value of `CODEQL_DBS_BASE_PATH` from the current process to the MCP server. The templated paramater `{{ envCODEQL_DBS_BASE_PATH }}` is replaced by the value of the environment variable `CODEQL_DBS_BASE_PATH` in the current process.
520
+
For `toolbox`, `env` can be used inside `server_params`. A template of the form `{{ env('ENV_VARIABLE_NAME') }}` can be used to pass values of the environment variable from the current process to the MCP server. So in the above, the MCP server is run with `GH_NO_UPDATE_NOTIFIER=disable` and passes the value of `CODEQL_DBS_BASE_PATH` from the current process to the MCP server. The templated parameter `{{ env('CODEQL_DBS_BASE_PATH') }}` is replaced by the value of the environment variable `CODEQL_DBS_BASE_PATH` in the current process.
521
521
522
522
Similarly, environment variables can be passed to a `task` in a `taskflow`:
523
523
@@ -534,9 +534,9 @@ taskflow:
534
534
MEMCACHE_BACKEND: "dictionary_file"
535
535
```
536
536
537
-
This overwrites the environment variables `MEMCACHE_STATE_DIR` and `MEMCACHE_BACKEND` for the task only. A template `{{ envENV_VARIABLE_NAME }}` can also be used.
537
+
This overwrites the environment variables `MEMCACHE_STATE_DIR` and `MEMCACHE_BACKEND` for the task only. A template `{{ env('ENV_VARIABLE_NAME') }}` can also be used.
538
538
539
-
Note that when using the template `{{ envENV_VARIABLE_NAME }}`, `ENV_VARIABLE_NAME` must be the name of an environment variable in the current process.
539
+
Note that when using the template `{{ env('ENV_VARIABLE_NAME') }}`, `ENV_VARIABLE_NAME` must be the name of an environment variable in the current process.
0 commit comments