MCP Commands - Functional Memory

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Functional Memory - Tool execution and security management (SLL-ONLY) >

MCP Commands - Functional Memory

MCP.SetConfirmList

PreviousTopNext


MiniRobot Language (MRL) - Functional Memory (SPR only - not in public MCP-Server)

 

⚡ SPR only - not in public MCP-Server FEATURE

This command is only available when using the MCP server as an SLL (Server-Side Library). It cannot be called via HTTP/MCP protocol.

 

MCP.SetConfirmList

Set list of tools requiring confirmation

 

Syntax

 

MCP.SetConfirmList|$$LIST

 

Parameters

 

$$LIST

A comma-separated list of function keys that should require confirmation before execution. Each key should be in the format Category::Function.

Example: "FileTools::Delete,SystemTools::Execute,RegistryTools::Write"

 

Return Value

 

None. The confirmation list is updated in the Functional Memory system.

 

Description

 

MCP.SetConfirmList sets or overwrites the entire list of tools that require user confirmation before execution. This is a batch operation that replaces any existing confirmation list.

 

When a tool on this list is called via the Functional Memory system (fm_execute), the server returns a CONFIRMATION_REQUIRED status with a confirmation token. The client must then call fm_confirm with this token to proceed with execution.

 

Examples

 

Example 1: Set a basic confirmation list

' Require confirmation for file deletion and system execution

MCP.SetConfirmList|FileTools::Delete,SystemTools::Execute

 

Example 2: Clear the confirmation list

' Remove all tools from confirmation list (empty list)

MCP.SetConfirmList|

 

Example 3: Comprehensive security setup

' Set up confirmation for all potentially dangerous operations

MCP.SetConfirmList|FileTools::Delete,FileTools::Write,FileTools::Move,SystemTools::Execute,SystemTools::KillProcess,RegistryTools::Write

 

SLL Implementation

 

SLL Function: MCP_FM_SetConfirmList

Source File: MCP_FuncMem_Subs.inc

 

Remarks

 

• This command is SPR only - not in public MCP-Server and cannot be called via the MCP HTTP protocol

• This command replaces the entire existing confirmation list

• Confirmation tokens expire after 60 seconds

• Use MCP.SetFunctionState to modify individual tool states instead of the entire list

• The confirmation mechanism adds an extra security layer for sensitive operations

 

See also:

 

MCP.SetFunctionState - Set individual tool state

MCP.GetList - View current confirmation list

MCP.EnableWhitelist - Enable whitelist mode