MCP. - MCP Server Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > !Server-Operations - Commands for interacting with a running MCP server (signals, actions) >

MCP. - MCP Server Operations

!Listener-Queue

Previous Top Next


SPR Script Language

 

!Listener-Queue

Commands for managing the Listener Mode command queue.

 

Intention

 

When the MCP server is started in Listener Mode (e.g., via MCP.StartSprServer), its only job is to accept commands from TCP clients and place them into an internal, thread-safe queue. It does not execute these commands itself.

 

The commands in this section are the tools for your main SSPR script to interact with that queue. They allow you to retrieve commands, check the queue's status, clear its contents, and configure its behavior.

 

The queue can operate in two modes:

QUEUE (FIFO): First-In, First-Out. Commands are retrieved in the order they were received. This is the default.

STACK (LIFO): Last-In, First-Out. The most recently received command is retrieved first.

 

Commands in this section

 

MCP.ConfigQue - Configures the queue's behavior (FIFO or LIFO).

HTP.MCPGetQueCount - Returns the number of commands currently waiting in the queue.

HTP.MCPResetQue - Removes all commands from the queue, effectively clearing it.

HTP.MCPGetNextCommand - Retrieves the next available command from the queue.

HTP.MCPGetQueueMode - Returns the current operating mode of the queue ("QUEUE" or "STACK").

 

 

See also:

 

MCP.StartSprServer

MCP.Start