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
* feat(java): Update the Java SDK to 0.8.0
- Update Java SDK version from 0.7.0 to 0.8.0
- Refactor transport layer to use transportProvider pattern
- Rename registrations to specifications in server API
- Add exchange parameter to callback functions
- Add breaking changes note
- Enhance MCP Java SDK documentation with sampling
* Add documentation for sampling capabilities in MCP Server
* Expand documentation for Tool, Resource, and Prompt specifications
* Add Spring AI integration to the client/server docs
Signed-off-by: Christian Tzolov <[email protected]>
* refactor(java-sdk): improve API usage example
- Replace Content builder pattern with direct TextContent constructor
- Replace ModelHint builder pattern with static factory method
Signed-off-by: Christian Tzolov <[email protected]>
---------
Signed-off-by: Christian Tzolov <[email protected]>
Copy file name to clipboardExpand all lines: sdk/java/mcp-client.mdx
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@ The MCP Client is a key component in the Model Context Protocol (MCP) architectu
15
15
- Prompt system interactions
16
16
- Optional features like roots management and sampling support
17
17
18
+
<Tip>
19
+
The [Spring-AI MCP Client](https://docs.spring.io/spring-ai/reference/api/mcp/mcp-client-boot-starter-docs.html) integration extends the MCP Java SDK to
20
+
provide auto-configuration for MCP client functionality in Spring Boot applications and integrating with Spring AI’s [tool execution framework](https://docs.spring.io/spring-ai/reference/api/tools.html).
21
+
</Tip>
22
+
18
23
The client provides both synchronous and asynchronous APIs for flexibility in different application contexts.
19
24
20
25
<Tabs>
@@ -182,7 +187,6 @@ The roots capability allows servers to:
182
187
- Receive notifications when the roots list changes
183
188
- Understand which directories and files they have access to
184
189
185
-
186
190
### Sampling Support
187
191
188
192
Sampling enables servers to request LLM interactions ("completions" or "generations") through the client:
@@ -209,7 +213,6 @@ This capability allows:
209
213
- Support for both text and image-based interactions
210
214
- Optional inclusion of MCP server context in prompts
Copy file name to clipboardExpand all lines: sdk/java/mcp-overview.mdx
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@ description: Introduction to the Model Context Protocol (MCP) Java SDK
6
6
Java SDK for the [Model Context Protocol](https://modelcontextprotocol.org/docs/concepts/architecture)
7
7
enables standardized integration between AI models and tools.
8
8
9
+
<Note>
10
+
### Breaking Changes in 0.8.0 ⚠️
11
+
**Note:** Version 0.8.0 introduces several breaking changes including a new session-based architecture.
12
+
If you're upgrading from 0.7.0, please refer to the [Migration Guide](https://github.com/modelcontextprotocol/java-sdk/blob/main/migration-0.8.0.md) for detailed instructions.
13
+
</Note>
14
+
9
15
## Features
10
16
11
17
- MCP Client and MCP Server implementations supporting:
@@ -25,6 +31,10 @@ enables standardized integration between AI models and tools.
25
31
- WebMVC SSE transport for servlet-based HTTP streaming
26
32
- Supports Synchronous and Asynchronous programming paradigms
27
33
34
+
<Tip>[Spring AI MCP](https://docs.spring.io/spring-ai/reference/api/mcp/mcp-overview.html) extends the MCP Java SDK with Spring Boot integration,
35
+
providing both [Client](https://docs.spring.io/spring-ai/reference/api/mcp/mcp-client-boot-starter-docs.html) and [Server](https://docs.spring.io/spring-ai/reference/api/mcp/mcp-server-boot-starter-docs.html) Boot Starters.
36
+
You can bootstrap your AI Spring applications using the [Spring Initializer](https://start.spring.io/).</Tip>
37
+
28
38
## Architecture
29
39
30
40
The SDK follows a layered architecture with clear separation of concerns:
0 commit comments