Skip to content

Commit c8fa5b2

Browse files
committed
review_comments
1 parent 1c31c51 commit c8fa5b2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

posts/2026-03-10-26.0.0.3-beta.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The link:{url-about}[Open Liberty] 26.0.0.3-beta includes the following beta fea
2525
* <<encoders, Encode responses with ContentEncoder and ToolResponseEncoder>>
2626
* <<requestid, Access the request ID from a tool>>
2727

28+
The link:https://modelcontextprotocol.io/docs/getting-started/intro[Model Context Protocol (MCP)] is an open standard that enables AI applications to access real-time information from external sources. The Liberty MCP Server feature (`mcpServer-1.0`) allows developers to expose the business logic of their applications, allowing it to be integrated into agentic AI workflows.
29+
2830
See also link:{url-prefix}/blog/?search=beta&key=tag[previous Open Liberty beta blog posts].
2931

3032
// // // // DO NOT MODIFY THIS COMMENT BLOCK <GHA-BLOG-TOPIC> // // // //
@@ -34,14 +36,12 @@ See also link:{url-prefix}/blog/?search=beta&key=tag[previous Open Liberty beta
3436
[#encoders]
3537
== Encode responses with ContentEncoder and ToolResponseEncoder
3638

37-
The link:https://modelcontextprotocol.io/docs/getting-started/intro[Model Context Protocol (MCP)] is an open standard that enables AI applications to access real-time information from external sources. The Liberty MCP Server feature (`mcpServer-1.0`) allows developers to expose the business logic of their applications, allowing it to be integrated into agentic AI workflows.
38-
3939
When a client calls a tool, the object that is returned by the tool method is converted to a `ToolResponse`, which usually contains one or more `Content` objects. The `ToolResponse` maps directly to the result returned in the response.
4040

4141
If you need more control over the response from your tool, you can return a `ToolResponse` or `Content` object directly. Now it is also possible to register encoders to control how other objects are converted into a response.
4242

4343
* Use `ToolResponseEncoder` to convert an object into a `ToolResponse`, which gives you complete control over the whole response.
44-
* Use `ContentEncoder` only when you need to convert an object into a `Content` that is included in the response. You can also return a list of objects, and each object is individually converted into a `Content` and included in the response.
44+
* Use `ContentEncoder` when you only need to convert an object into a `Content` that is included in the response. You can also return a list of objects, and each object is individually converted into a `Content` and included in the response.
4545

4646
If a tool method returns an object for which no encoder is provided, JSON-B encodes the object as JSON, which is returned as text content.
4747

0 commit comments

Comments
 (0)