|
dolibarr 25.0.0-alpha
|
Admin page to configure which MCP tools are available per context. More...
Go to the source code of this file.
Functions | |
| aiToolIsWrite ($handler, $name) | |
| Whether a tool writes. | |
Variables | |
| if( $action=='addrights'||$action=='delrights') if($action=='apply_preset' &&!empty($toolcontext) &&!empty($mode) | $help_url ) = '' |
| ACTIONS. | |
Admin page to configure which MCP tools are available per context.
Two independent allow-lists are managed here: AI_ASSISTANT_ALLOWED_TOOLS — tools visible to the private chat assistant AI_MCP_SERVER_ALLOWED_TOOLS — tools visible to external MCP clients
System tools (isSystem() = true) are always shown as locked-on and are never written into the allow-list constants — McpHandler forces them through at runtime.
Constant semantics (same for both constants): '' → not yet configured → all non-system tools are allowed (default open) 'NONE' → admin explicitly disabled every non-system tool else → comma-separated list of allowed tool names (explicit allow-list)
Definition in file configure_tools.php.
| aiToolIsWrite | ( | $handler, | |
| $name ) |
Whether a tool writes.
A tool that asks for confirmation is a write whatever its name (the API bridge names its writes api_<endpoint>_create); otherwise the naming convention of ai/tools/* applies.
| McpHandler | $handler | Handler with the tools loaded |
| string | $name | Tool name |
Definition at line 84 of file configure_tools.php.
References McpTool\NO_WRITE.