MCP. - Model Context Protocol

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Server Operations - Server control and execution >

MCP. - Model Context Protocol

MCP.WriteConfig

Top


MiniRobotLanguage (MRL)

 

MCP.WriteConfig

Create default MCP configuration file

 

Intention

 

The MCP.WriteConfig command creates a default configuration file if one does not already exist. This is useful for setting up the MCP server with standard defaults.

 

Syntax

 

MCP.WriteConfig[|$$RET_CODE]

 

P1 - $$RET_CODE (optional) - Variable to receive result code:

0 = Configuration file created successfully

1 = Configuration file already exists

-1 = Error creating configuration file

 

Example

 

' Create default configuration file

MCP.WriteConfig|$$Result

 

' Check result

IF $$Result = 0 THEN

 DBP.Config file created successfully

ELSEIF $$Result = 1 THEN

 DBP.Config file already exists

ELSE

 DBP.Error creating config file

END IF

 

Related Commands

 

MCP.Init - Initialize MCP server with configuration

MCP.Start - Start the MCP server listener