You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/marketplace/genai/reference-guide/mcp-server.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,10 @@ To use function calling within the same Mendix application and integrating to an
19
19
20
20
The current version has the following limitations:
21
21
22
-
* Tools can only return a `TextContent` result.
22
+
* Tools can only return String values, either directly as String type or using the `TextContent` entity.
23
+
* Prompts can only return a single message.
23
24
* The client connection remains active for only 15 minutes, as the Mendix runtime currently does not support async requests.
25
+
* Running an MCP Server is currently only supported on single-instance environments.
24
26
* User authorization can currently only be applied on request but not at the tool/prompt level. As a result, the current user is not available within tool/prompt microflows, and entity access or XPath constraints can not be enabled out of the box. This is due to the capabilities offered by the official MCP Java SDK which does not support reusing a Mendix user session in the executed tools/prompts.
25
27
26
28
Note that the MCP Server module is still in its early version and latest versions may include breaking changes. Since both the open-source protocol and the Java SDK are still evolving and regularly updated, these changes may also affect this module.
@@ -64,8 +66,8 @@ After the [Create MCP Server](#create-server) action, you can add one or multipl
64
66
65
67
The selected microflow must adhere to the following principles:
66
68
67
-
* Input needs to be the same as described in the `Schema` attribute (only primitives and/or an object of type `MCPServer.Tool` are supported)
68
-
* The return value needs to be a `TextContent` object which you can create inside of the microflow to return the relevant information to the model based on the outcome of the microflow.
69
+
* Input needs to be the same as described in the `Schema` attribute (only primitives and/or an object of type `MCPServer.Tool` are supported). If no Schema is passed in the `Add tool` action, it will be automatically created based on the microflow's input parameters.
70
+
* The return value must be either of type `String` or `TextContent`. You can create a `TextContent` object within the microflow to return the relevant information to the model based on the outcome of the microflow.
69
71
70
72
For an example, see the `Example Implementations` folder inside of the module.
71
73
@@ -99,6 +101,19 @@ The **Documentation** pane displays the documentation for the currently selected
There are several possible reasons why the client cannot connect to your server. Check the logs of the MCP host application for the hint about what might be going wrong. Additionally, if the issue occurs on the Mendix side, the MCP Server module will log relevant errors.
109
+
110
+
The error `Fatal error: SseError: SSE error: Could not convert argument of type symbol to string.` may indicate that you need to install or reinstall [Node.js](https://nodejs.org/en). After that, you may also need to clear your NPX cache by running the following command in a CLI (for example, PowerShell):
0 commit comments