v1.6.1

Script and MCP Tools

Last updated


How script tools and MCP tools are added and registered, and what replaced API tools.

Script tools (script_*)


Put a tool.json descriptor and a script.py (Python) or script.js (JavaScript) under ~/.config/agenvoy/tools/script/<name>/. Agenvoy auto-registers it as script_<name>. The project-local <cwd>/.config/agenvoy/tools/script/<name>/ and the bundled tools/.system/ were Removed in v1.5.0; tools load only from ~/.config/agenvoy, so a cloned repository cannot bring tools along. The former extensions/scripts/<name>/ + run.py layout is not scanned; extension-installed scripts under tools/.extension/script/ register as ext_<name>.
  1. ~/.config/agenvoy/tools/script/my_tool/
  2. ├── tool.json # name, description, parameter schema
  3. └── script.py # actual script (or script.js)

In normal mode a script tool asks for confirmation on every call unless its tool.json sets always_allow: true or its name is on the allow list ~/.config/agenvoy/allow_tool. Since v1.5.0 TUI /tool toggles a script tool on that list (a tool whose tool.json sets always_allow cannot be toggled there), as does WebUI Feature → Tools; the API offers GET /v1/tools (every script tool with allowed, always_allow and its files), GET /v1/tool/<name> and POST /v1/tool/allow with {"name": ...}, all localhost only. The per-project <cwd>/.agenvoy/allow_list was Removed in v1.5.0; use /tool or the global allow_tool.

API tools (api_*)


User-defined API tools were Removed in v1.3.2; call the endpoint with http_request, or rewrite it as a script tool. JSON descriptors under ~/.config/agenvoy/tools/api/ and tools/.extension/api/ are no longer loaded: each leftover .json file is skipped with an [Invalid] api tool warning in the log (since v1.5.0 the project-local <cwd>/.config/agenvoy/tools/api/ is not checked at all). The built-in extensions/apis/ set is gone as well; its api_public_api_list became the built-in tool public_api_list — with no category it returns the category names, with category (case-insensitive) each keyless API in it with name, description, HTTPS flag and docs URL. http_request runs a GET without confirmation; other methods go through the confirm gate.

MCP tools (mcp__*)


Tools exposed by an MCP server are auto-registered as mcp__<server>__<tool>. Since v1.3.7 the per-turn Tools list groups them by server as mcp__<server>__{a, b}, while find_tools and run_tool still take the full name, and the instructions a server sends are rendered inside the main system prompt rather than as a second system message. MCP tool output is capped at 1 MiB per call to keep tool results within provider limits.