|
<< 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.GetWhitelist
Retrieve Current Whitelist Entries
Purpose
The MCP.GetWhitelist command retrieves the current list of whitelisted actions. These are the actions that will be automatically approved when whitelist checking is enabled and a permission request is made.
This command is useful for reviewing current security settings and verifying which actions are pre-approved before executing sensitive operations.
Syntax
MCP.GetWhitelist|$$RETURN_VAR
Parameters
$$RETURN_VAR - The variable that will receive the whitelist entries as a delimited list.
Return Value
Returns a delimited string containing all whitelisted action identifiers. If the whitelist is empty, returns an empty string.
Examples
' Example 1: Get current whitelist
MCP.GetWhitelist|$$CurrentWhitelist
PRT.Current whitelist: $$CurrentWhitelist
' Example 2: Check if specific action is whitelisted
MCP.GetWhitelist|$$Whitelist
STR.Contains|$$Whitelist|FileDelete|$$IsWhitelisted
Remarks
The returned whitelist format is typically a comma-separated or pipe-separated list of action identifiers. The exact delimiter depends on the MCP server implementation.
Use MCP.SetWhitelist to modify the whitelist contents.
Error Conditions
The command will fail with a parameter error if:
• The return variable parameter is missing
• Too many parameters are provided
See also:
• MCP.SetWhitelist - Set Whitelist
• MCP.EnableWhitelist - Enable Whitelist
• MCP.Permission - Request Permission