|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Server Lifecycle - Commands for managing the MCP server lifecycle (init, start, stop) > MCP. - Model Context Protocol |
MCP.Init |
Top |
MiniRobotLanguage (MRL)
MCP.Init
Initialize the MCP server
Intention
The MCP.Init command initializes the Model Context Protocol (MCP) server with optional configuration. This must be called before using other MCP commands.
Syntax
MCP.Init[|$$CONFIG_FILE]
P1 - $$CONFIG_FILE (optional) - Path to configuration file. If omitted, default configuration is used.
Example
' Initialize MCP with default configuration
MCP.Init
' Initialize with custom config file
MCP.Init|C:\Config\mcp_config.json
Related Commands
MCP.Start - Start the MCP server listener
MCP.Stop - Stop the MCP server
MCP.WriteConfig - Create default configuration file