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 Lifecycle - Commands for managing the MCP server lifecycle (init, start, stop) >

MCP. - Model Context Protocol

MCP.SetTimeouts

Top


MiniRobotLanguage (MRL)

 

MCP.SetTimeouts

Set MCP server timeouts

 

Intention

 

The MCP.SetTimeouts command configures various timeout values for the MCP server operations. Use -2 for any parameter to leave it unchanged.

 

Syntax

 

MCP.SetTimeouts|$$EXEC_S[|$$SYNC_S|$$HND_S|$$STRT_S]

 

P1 - $$EXEC_S - Execution timeout in seconds (script execution timeout)

P2 - $$SYNC_S (optional) - Synchronization timeout in seconds

P3 - $$HND_S (optional) - Handle timeout in seconds

P4 - $$STRT_S (optional) - Startup timeout in seconds

 

Note: Use -2 to leave a timeout parameter unchanged from its current value.

 

Example

 

' Set all timeouts

MCP.SetTimeouts|300|60|30|120

 

' Set only execution timeout, leave others unchanged

MCP.SetTimeouts|600|-2|-2|-2

 

' Using alias

MCP.scto|300|60|30|120

 

Related Commands

 

MCP.SetScriptTimeout - Set script execution timeout

MCP.Init - Initialize MCP server