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
Set of projects that provide Java SDK and Spring Framework integration for the [Model Context Protocol](https://modelcontextprotocol.org/docs/concepts/architecture).
4
+
Set of projects that provide Java SDK integration for the [Model Context Protocol](https://modelcontextprotocol.org/docs/concepts/architecture).
5
5
It enables Java applications to interact with AI models and tools through a standardized interface, supporting both synchronous and asynchronous communication patterns.
6
6
7
7
## 📚 Reference Documentation
8
-
For comprehensive guides and API documentation, visit the [Spring AI MCP Reference Documentation](https://docs.spring.io/spring-ai-mcp/reference/overview.html).
Java implementation of the Model Context Protocol specification. It includes:
19
20
- Synchronous and asynchronous [MCP Client](https://docs.spring.io/spring-ai-mcp/reference/mcp.html#_mcp_client) and [MCP Server](https://docs.spring.io/spring-ai-mcp/reference/mcp.html#_mcp_server) implementations
20
21
- Standard MCP operations support (tool discovery, resource management, prompt handling, structured logging). Support for request and notification handling.
21
22
-[Stdio](https://spec.modelcontextprotocol.io/specification/2024-11-05/basic/transports/#stdio) and [SSE](https://spec.modelcontextprotocol.io/specification/2024-11-05/basic/transports/#http-with-sse) transport implementations.
22
23
23
-
### MCP Transports
24
+
### MCP Spring
24
25
25
26
#### Core Transports
26
27
- Stdio-based (`StdioClientTransport`, `StdioServerTransport`) for process-based communication
@@ -32,13 +33,6 @@ Java implementation of the Model Context Protocol specification. It includes:
32
33
-[WebMvc SSE Transport](https://github.com/modelcontextprotocol/java-sdk/tree/main/mcp-spring/mcp-spring-webmvc) - Spring MVC based HTTP SSE transport (Server only).
33
34
You can use the core `HttpClientSseClientTransport` transport as a SSE client.
34
35
35
-
### [Spring AI MCP](https://docs.spring.io/spring-ai-mcp/reference/spring-mcp.html)
36
-
37
-
The Spring integration module provides Spring-specific functionality:
38
-
- Integration with Spring AI's function calling system
39
-
- Spring-friendly abstractions for MCP clients
40
-
- Auto-configurations (WIP)
41
-
42
36
43
37
## Installation
44
38
@@ -64,24 +58,6 @@ Add the following dependencies to your Maven project:
64
58
</dependency>
65
59
```
66
60
67
-
This is a milestone release, not available on Maven Central.
68
-
Add this repository to your POM:
69
-
70
-
```xml
71
-
<repositories>
72
-
<repository>
73
-
<id>spring-milestones</id>
74
-
<name>Spring Milestones</name>
75
-
<url>https://repo.spring.io/milestone</url>
76
-
<snapshots>
77
-
<enabled>false</enabled>
78
-
</snapshots>
79
-
</repository>
80
-
</repositories>
81
-
```
82
-
83
-
Reffer to the [Dependency Management](https://docs.spring.io/spring-ai-mcp/reference/dependency-management.html) page for more information.
84
-
85
61
## Example Demos
86
62
87
63
Explore these MCP examples in the [spring-ai-examples/model-context-protocol](https://github.com/spring-projects/spring-ai-examples/tree/main/model-context-protocol) repository:
Copy file name to clipboardExpand all lines: docs/docs/mcp-overview.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ description: Overview of the Model Context Protocol (MCP) architecture and key c
7
7
8
8
Java SDK implementation of the [Model Context Protocol](https://modelcontextprotocol.io/introduction), enabling seamless integration with language models and AI tools.
9
9
10
-

11
-

10
+

11
+

12
12
13
13
## Features
14
14
@@ -43,7 +43,7 @@ The SDK follows a layered architecture with clear separation of concerns:
43
43
44
44
Following class diagram illustrates the layered architecture of the MCP SDK, showing the relationships between core interfaces (McpTransport, McpSession), their implementations, and the client/server components. It highlights how the transport layer connects to sessions, which in turn support both synchronous and asynchronous client/server implementations.
45
45
46
-

46
+

Copy file name to clipboardExpand all lines: docs/docs/overview.mdx
+4-28Lines changed: 4 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -3,36 +3,12 @@ title: Overview
3
3
description: Introduction to the Model Context Protocol (MCP) Java SDK
4
4
---
5
5
6
-
# Java & Spring MCP
6
+
# MCP Java SDK
7
7
8
-
Java SDK and Spring Framework integration for the [Model Context Protocol](https://modelcontextprotocol.org/docs/concepts/architecture), enabling standardized interaction with AI models and tools through both synchronous and asynchronous communication.
8
+
Java SDK for the [Model Context Protocol](https://modelcontextprotocol.org/docs/concepts/architecture), enabling standardized interaction with AI models and tools through both synchronous and asynchronous communication.
9
9
10
-

11
-

12
-
13
-
## Core Components
14
-
15
-
### [MCP Java SDK](/docs/mcp)
16
-
Core implementation of the Model Context Protocol specification, providing:
17
-
18
-
- Synchronous and asynchronous [Client](/docs/mcp#mcp-client) and [Server](/docs/mcp#mcp-server) implementations
19
-
- Tool discovery and execution
20
-
- Resource management with URI templates
21
-
- Prompt handling and management
22
-
- Structured logging
23
-
- Request and Notification handling
24
-
25
-
### MCP Transports
26
-
27
-
#### Core Transports
28
-
- Stdio-based (`StdioClientTransport`, `StdioServerTransport`) for process-based communication
- Servlet-based SSE server (`HttpServletSseServerTransport`) for HTTP SSE Server streaming using traditional Servlet API
31
-
32
-
#### Optional SSE Transports
33
-
-[WebFlux SSE Transport](https://github.com/modelcontextprotocol/java-sdk/tree/main/mcp-spring/mcp-spring-webflux) - Reactive HTTP streaming with Spring WebFlux (Client & Server)
34
-
-[WebMvc SSE Transport](https://github.com/modelcontextprotocol/java-sdk/tree/main/mcp-spring/mcp-spring-webmvc) - Spring MVC based SSE transport (Server only).
35
-
You can use the core `HttpClientSseClientTransport` transport as a SSE client.
0 commit comments