arcade-mcp/arcade/tests/core
Eric Gustin 1bd8eac6ed
Add Ability to Disable Tools (#215)
# PR Description
This PR introduces a new environment variable `ARCADE_DISABLED_TOOLS`.
Tools that are added to this env var are not added to the worker's
`ToolCatalog`. In effect, they are disabled for the worker.

## How to use the `ARCADE_DISABLED_TOOLS` environment variable
* Each tool is separated by a comma.
* For each tool, specify the toolkit name in camel case and the tool
name in camel case.
* Do not include versions. (This is a simple implementation. We can add
disabling specific versions in the future if needed)
* Separate the toolkit name and the tool name with your environment's
tool name separator. By default, the tool name separator is `.`, but you
can override this with the `ARCADE_TOOL_NAME_SEPARATOR` environment
variable.

Correct: `export
ARCADE_DISABLED_TOOLS="Math.Add,Spotify.GetAvailableDevices,Math.Sqrt"`
Incorrect: `export
ARCADE_DISABLED_TOOLS="Math.Add@0.1.0,Spotify.get_available_devices,Sqrt`
2025-01-21 15:56:40 -08:00
..
utils Fix CI: config errors, Python 3.11 union type errors (#45) 2024-09-19 12:07:28 -07:00
test_catalog.py Add Ability to Disable Tools (#215) 2025-01-21 15:56:40 -08:00
test_executor.py Remove arcade.core from all examples (#121) 2024-10-24 17:08:04 -07:00
test_output.py Fix Github.CountStargazers and add tests (#92) 2024-10-04 16:09:08 -07:00
test_parse.py Pass ToolContext and CLI cleanup (#13) 2024-08-13 15:40:08 -07:00
test_schema.py Lint all toolkits (#183) 2024-12-20 09:49:45 -08:00
test_telemetry.py Rename actor to worker (#174) 2025-01-03 14:28:04 -08:00