|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Status & Configuration - Server status and features > MCP Commands - Server Status |
MiniRobot Language (MRL) - MCP Server Status Commands
MCP.GetStatus / MCP.Status
Get Server Status Information
Purpose
The MCP.GetStatus command retrieves detailed status information about the MCP server, including its current state, loaded features, and operational parameters. This command provides a comprehensive overview of the server's health and configuration.
This command is useful for:
• Checking if the MCP server is running and responsive
• Retrieving the current server configuration
• Monitoring server health and resource usage
• Debugging connection issues
Syntax
MCP.GetStatus|$$RETURN_VAR
MCP.Status|$$RETURN_VAR
Parameters
$$RETURN_VAR - The variable that will receive the status information as a formatted string or structured data.
Return Value
Returns a status string or structured data containing:
• Server state (running, stopped, initializing)
• Current feature set enabled
• Port number and listening status
• Version information
• Error state if any
Examples
' Example 1: Basic status check
MCP.GetStatus|$$Status
PRT.MCP Server Status: $$Status
' Example 2: Check if server is running
MCP.GetStatus|$$Status
SCH.$$Status|RUNNING|$$IsRunning
IVV.$$IsRunning!0
PRT.Server is running
ELS.
PRT.Server is not running
EIF.
Remarks
MCP.GetStatus and MCP.Status are aliases for the same command. You can use either form interchangeably.
If the MCP server is not running or not accessible, this command will return an error status indicating the connection failure.
Error Conditions
The command will fail with an error if:
• The return variable parameter is missing
• Too many parameters are provided
• The MCP server is not accessible
See also:
• MCP.IsRunning - Check if Server is Running
• MCP.GetStatusByte - Get Status Byte
• MCP.Start - Start MCP Server