|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Logging & Security - Logging and access control > MCP Commands - Logging & Security |
MiniRobot Language (MRL) - MCP Logging & Security Commands
MCP.EnableWhitelist
Enable or Disable Whitelist Checking
Purpose
The MCP.EnableWhitelist command controls whether the whitelist feature is active. When enabled, permission requests for actions that match whitelist entries are automatically approved without user interaction.
The whitelist provides a mechanism to streamline operations by pre-approving specific actions that are deemed safe or necessary for automated workflows.
Syntax
MCP.EnableWhitelist|$$ENABLED
Parameters
$$ENABLED - Enable or disable whitelist checking. Valid values: 1, 0, TRUE, FALSE, ON, OFF (case-insensitive).
Return Value
OK - Whitelist setting was updated
ERROR - Invalid parameter value
Examples
' Example 1: Enable whitelist auto-approval
MCP.EnableWhitelist|1
' Example 2: Disable whitelist (require manual approval)
MCP.EnableWhitelist|0
' Example 3: Using TRUE keyword
MCP.EnableWhitelist|TRUE
Remarks
When the whitelist is enabled, actions that match entries in the whitelist are automatically approved when requested via MCP.Permission. This is useful for automating workflows where certain actions are routinely performed and manual approval would be inefficient.
Use MCP.SetWhitelist to configure which actions are included in the whitelist.
Error Conditions
The command will fail with a parameter error if:
• The enabled parameter is missing
• An invalid value is specified (not 1, 0, TRUE, FALSE, ON, or OFF)
See also:
• MCP.GetWhitelist - Get Whitelist
• MCP.SetWhitelist - Set Whitelist
• MCP.Permission - Request Permission