Skip to content

Commit 46c1374

Browse files
committed
updated MCP module documentation to adhere to the latest changes
1 parent 63e3068 commit 46c1374

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

content/en/docs/marketplace/genai/reference-guide/mcp-modules/mcp-client.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ If the tool resides within the same Mendix application, you can integrate it wit
2121
The current version has the following limitations:
2222

2323
* Tools and prompt messages can only return String content.
24-
* Only HTTP+SSE transport is currently supported to communicate with MCP servers.
2524

2625
{{% alert color="info" %}}
2726
Note that the MCP Client module is still in its early version, and newer 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.
@@ -52,7 +51,7 @@ See the **Example Implementations** folder inside the module containing example
5251

5352
#### Protocol Version
5453

55-
When creating an MCP client, specify a `ProtocolVersion`. On the official MCP documentation, you can review the differences between the protocol versions in the [changelog](https://modelcontextprotocol.io/specification/2025-03-26/changelog). The MCP Client module currently only supports `v2024-11-05` and the HTTP+SSE transport. MCP servers should support the same version as the client. Note that Mendix supports the capabilities provided by the MCP Java SDK.
54+
When creating an MCP client, specify a `ProtocolVersion`. On the official MCP documentation, you can review the differences between the protocol versions in the [changelog](https://modelcontextprotocol.io/specification/2025-03-26/changelog). The MCP Client module currently only supports `v2024-11-05` with the HTTP+SSE transport and `v2025-03-25` with the Streamable HTTP transport, which is the new standard transport. MCP servers should support the same version as the client. Note that Mendix supports the capabilities provided by the MCP Java SDK.
5655

5756
### Discovering Resources {#discover-resources}
5857

@@ -64,7 +63,7 @@ In general, prompts are often exposed to end-users in a chat to start or continu
6463

6564
To use a prompt from an MCP Server, you can use the `Get Prompt` action to receive one or multiple `PromptMessages` from the server associated with the `PromptResult` object. Similarly, to use a tool, you can use the `Call Tool` action to receive a `ToolResult` object that contains the return message of the tool.
6665

67-
For both actions, you can pass an `ArgumentCollection` if the prompt or tool requires arguments (the information is available from the [discovered resources](#discover-resources)). The actions `Initialize Argument Collection` and `Argument Collection: Add New Input` help you construct the input for those actions.
66+
For both actions, you can pass an `ArgumentCollection` if the prompt or tool requires arguments (the information is available from the [discovered resources](#discover-resources)). The actions `Argument Collection: Initialize` and `Argument Collection: Add New Input` help you construct the input for those actions.
6867

6968
### Using MCP Client Module with GenAI Commons and Conversational UI {#use-with-genai-commons}
7069

@@ -89,7 +88,7 @@ The **Documentation** pane displays the documentation for the currently selected
8988

9089
### MCP Client Cannot Connect to the MCP Server
9190

92-
There are several possible reasons why the client cannot connect to your server. First, check the MCP Client logs. Then, verify that the endpoint is set to the correct URL and that the server supports the same protocol version and transport method (HTTP + SSE) as the client. If authentication is required, make sure to pass the necessary information via HTTP headers.
91+
There are several possible reasons why the client cannot connect to your server. First, check the MCP Client logs. Then, verify that the endpoint is set to the correct URL and that the server supports the same protocol version and transport method (HTTP + SSE or Streamable HTTP) as the client. If authentication is required, make sure to pass the necessary information via HTTP headers.
9392

9493
## Read More
9594

content/en/docs/marketplace/genai/reference-guide/mcp-modules/mcp-server.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ The current version has the following limitations:
2323

2424
* Tools can only return String values, either directly as String type or using the `TextContent` entity.
2525
* Prompts can only return a single message.
26-
* The client connection remains active for only 15 minutes, as the Mendix runtime currently does not support async requests.
2726
* Running an MCP Server is currently only supported on single-instance environments.
28-
* The tool fails to return responses with large payloads to the client successfully. This issue is currently under investigation.
27+
* For HTTP+SSE transport (protocol version `v2024-11-05`), tool execution with large payloads are not returned successfully
2928

3029
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.
3130

@@ -39,7 +38,7 @@ If you start from a standard Mendix blank app, or have an existing project, you
3938

4039
### Create MCP Server {#create-server}
4140

42-
The `Create MCP Server` action initializes an MCP server in the Mendix runtime, creates and returns the `MCPServer` object. You can use the created `MCPServer` to add tools or prompts. The `Path` attribute determines how external systems can reach the MCP server, that means this value needs to be known to the the MCP Client (usually set in a configuration file). After the action gets triggered, the server becomes available for external clients to connect. As mentioned in the [limitations](#limitations) section above, the connection remains active for only 15 minutes.
41+
The `Create MCP Server` action initializes an MCP server in the Mendix runtime, creates and returns the `MCPServer` object. You can use the created `MCPServer` to add tools or prompts. The `Path` attribute determines how external systems can reach the MCP server, that means this value needs to be known to the the MCP Client (usually set in a configuration file). After the action gets triggered, the server becomes available for external clients to connect. Note that the path cannot be `sse` nor `mcp` and cannot end on `/sse` nor `/mcp`, because those are reserved endpoints.
4342

4443
Based on your use case, this action can be triggered manually by an admin if wrapped around a microflow accessible in the UI, via an after start-up microflow, or by any other microflow such as a scheduled event.
4544

@@ -62,7 +61,7 @@ The `User` returned in the microflow is used for all subsequent prompt and tool
6261

6362
#### Protocol Version
6463

65-
When creating an MCP server, you need to specify a `ProtocolVersion`. On the official MCP documentation, you can review the differences between the protocol versions in the [changelog](https://modelcontextprotocol.io/specification/2025-03-26/changelog). The MCP Server module currently only supports `v2024-11-05` and the HTTP+SSE transport. MCP Clients, that need to connect to a Mendix MCP server, should support the same version. Note that Mendix follows the offered capabilities of the MCP Java SDK.
64+
When creating an MCP server, you need to specify a `ProtocolVersion`. On the official MCP documentation, you can review the differences between the protocol versions in the [changelog](https://modelcontextprotocol.io/specification/2025-03-26/changelog). The MCP Server module currently only supports `v2024-11-05` with the HTTP+SSE transport and `v2025-03-25` with the Streamable HTTP transport, which is the new standard transport. MCP Clients, that need to connect to a Mendix MCP server, should support the same version. Note that Mendix follows the offered capabilities of the MCP Java SDK.
6665

6766
### Add Tools
6867

@@ -76,7 +75,7 @@ The selected microflow must adhere to the following principles:
7675
For an example, see the `Example Implementations` folder inside of the module.
7776

7877
{{% alert color="warning" %}}
79-
Function calling is a highly effective capability and should be used with caution.
78+
Function / tool calling is a highly effective capability and should be used with caution.
8079

8180
Mendix strongly recommends keeping the user in the loop (such as by using confirmation logic which is integrated into many MCP clients), if the tool microflows have a potential impact on the real world on behalf of the end-user. Examples include sending emails, posting content online, or making purchases. In such cases, evaluate the use cases and implement security measures when exposing these tools to external AI systems via MCP.
8281
{{% /alert %}}

0 commit comments

Comments
 (0)