To get started, first ensure that the plugin is installed, by visiting the Plugin Window. Then, enable the plugin if it’s not already done.
All blueprints nodes explained in the following manual can be found in MCP Server category.
InGame MCP Server main class is NOT a Singleton. To CREATE a new instance use Create MCPServer anywhere in your blueprin. As it name means, this function will create the MCP Server instance and you will need to store it in a variable of the MCP server type. After that, you can retrieve this instance where you want using your variable.
Once you have this instance, you can configure it using the Configure Server function. This function needs :
Port as integer: this is the port on which the MCP Server will start listening. There is no port by default, you will need to define one. You just need to be sure that this port is not already used (or will not be) on the computer.
Server Name as String: this is the server send when a MCP connect to the server for the first time. This is the name of the server for the MCP Client. You can set it to what you want, it doesn't have a lot of importance.
The server needs to be properly stopped. You must use the StopServer function (in the EndPlay event for instance) to do this job and avoid further issues.
At this step, you should be able to access to your UWS by navigating at http://127.0.0.1:8080 (assuming 8080 is the server port) in a web browser. Because you don’t have set any web file or URI handler, the response will be “404 Not found”.
(Image de la création et de l'initialisation du server)